#include <PVLE/Config.h>
#include <PVLE/Export.h>
#include <boost/filesystem/path.hpp>
#include <osgText/String>
Go to the source code of this file.
Namespaces | |
namespace | I18N |
Internationalization (I18N) and localization (L10N) functions. | |
Defines | |
#define | _(String) (String) |
#define | N_(String) String |
#define | textdomain(Domain) |
#define | bindtextdomain(Package, Directory) |
Functions | |
void | I18N::init (const std::string &, const boost::filesystem::path &) |
void | I18N::changeDomain (const std::string &) |
void | I18N::setLocale (const std::string &) |
void | I18N::setEncoding (const std::string &domainName, const osgText::String::Encoding encoding) |
osgText::String::Encoding | I18N::getEncoding (const std::string &domainName) |
void | I18N::setEncoding (const osgText::String::Encoding encoding) |
osgText::String::Encoding | I18N::getEncoding () |
osgText::String | _osgText (const char *const msgid) |
Convenience function equivalent to osgText::String(_(msgid), I18N::getEncoding()). |
Please note that these are only wrappers to gettext functions, not a (strictly speaking) library inclusion.
Definition in file I18N.h.
#define _ | ( | String | ) | (String) |
osgText::String _osgText | ( | const char *const | msgid | ) | [inline] |
Convenience function equivalent to osgText::String(_(msgid), I18N::getEncoding()).
Definition at line 89 of file I18N.h.
References _, and I18N::getEncoding().