2 This program is free software; you can redistribute it and/or modify it
3 under the terms of the GNU Library General Public License as published
4 by the Free Software Foundation; either version 2, or (at your option)
7 This program is distributed in the hope that it will be useful,
8 but WITHOUT ANY WARRANTY; without even the implied warranty of
9 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10 Library General Public License for more details.
12 You should have received a copy of the GNU Library General Public
13 License along with this program; if not, write to the Free Software
14 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
19 #include "tinygettext/tinygettext.hpp"
21 extern TinyGetText::DictionaryManager dictionary_manager;
23 static inline const char* _(const char* message)
25 return dictionary_manager.get_dictionary().translate(message);
28 static inline std::string _(const std::string& message)
30 return dictionary_manager.get_dictionary().translate(message);
33 static inline const char* N_(const char* id, const char* id2, int num)
35 return dictionary_manager.get_dictionary().translate(id, id2, num).c_str();
38 #endif /* _LIBGETTEXT_H */