26void G::gettext_init(
const std::string & localedir ,
const std::string & appname )
28 if( !appname.empty() )
30 std::setlocale( LC_MESSAGES ,
"" ) ;
31 std::setlocale( LC_CTYPE ,
"" ) ;
32 if( !localedir.empty() )
33 bindtextdomain( appname.c_str() , localedir.c_str() ) ;
34 textdomain( appname.c_str() ) ;
39const char *
G::gettext(
const char * p )
noexcept
const char * gettext(const char *) noexcept
Returns the message translation in the current locale's codeset, eg.
void gettext_init(const std::string &localedir, const std::string &name)
Initialises the gettext() library.