Functions | |
std::string | dgettext (const char *domain, const char *msgid) |
std::string | egettext (char const *msgid) |
std::string | dsgettext (const char *domainname, const char *msgid) |
std::string | dsngettext (const char *domainname, const char *singular, const char *plural, int n) |
void | bind_textdomain (const char *domain, const char *directory, const char *encoding) |
void | set_default_textdomain (const char *domain) |
void | set_language (const std::string &slocale, const std::vector< std::string > *alternates) |
void | init () |
static UNUSEDNOWARN std::string | gettext (const char *str) |
static UNUSEDNOWARN std::string | sgettext (const char *str) |
static UNUSEDNOWARN std::string | sngettext (const char *str1, const char *str2, int n) |
int | compare (const std::string &s1, const std::string &s2) |
void translation::bind_textdomain | ( | const char * | domain, |
const char * | directory, | ||
const char * | encoding | ||
) |
Definition at line 105 of file gettext.cpp.
References ERR_G.
Referenced by t_string::add_textdomain(), test_utils::game_config_manager::game_config_manager(), and init_locale().
int translation::compare | ( | const std::string & | s1, |
const std::string & | s2 | ||
) |
Definition at line 270 of file gettext_boost.cpp.
Referenced by lua_common::impl_tstring_eq(), lua_common::impl_tstring_le(), and lua_common::impl_tstring_lt().
std::string translation::dgettext | ( | const char * | domain, |
const char * | msgid | ||
) |
Definition at line 39 of file gettext.cpp.
Referenced by dsgettext(), gettext(), and vgettext().
std::string translation::dsgettext | ( | const char * | domainname, |
const char * | msgid | ||
) |
Definition at line 48 of file gettext.cpp.
References dgettext().
Referenced by _(), sgettext(), and t_string_base::str().
std::string translation::dsngettext | ( | const char * | domainname, |
const char * | singular, | ||
const char * | plural, | ||
int | n | ||
) |
Definition at line 91 of file gettext.cpp.
Referenced by _n(), and sngettext().
std::string translation::egettext | ( | char const * | msgid | ) |
Definition at line 43 of file gettext.cpp.
References gettext().
Referenced by attack_type::attack_type().
|
inlinestatic |
Definition at line 64 of file gettext.hpp.
References dgettext(), and GETTEXT_DOMAIN.
Referenced by about::add_lines(), add_status(), mp::configure::configure(), egettext(), help::unit_topic_generator::operator()(), game_launcher::play_multiplayer(), about::set_about(), unit_hp(), and default_map_generator::user_config().
void translation::init | ( | ) |
Definition at line 189 of file gettext.cpp.
Referenced by test_utils::game_config_manager::game_config_manager(), and init_locale().
void translation::set_default_textdomain | ( | const char * | domain | ) |
Definition at line 121 of file gettext.cpp.
Referenced by test_utils::game_config_manager::game_config_manager(), and init_locale().
void translation::set_language | ( | const std::string & | slocale, |
const std::vector< std::string > * | alternates | ||
) |
Definition at line 126 of file gettext.cpp.
References ERR_G, i, LOG_G, pos, and WRN_G.
Referenced by test_utils::game_config_manager::game_config_manager(), get_locale(), game_launcher::init_language(), gui2::tlanguage_selection::post_show(), set_language(), and config_cache_fixture::~config_cache_fixture().
|
inlinestatic |
Definition at line 66 of file gettext.hpp.
References dsgettext(), and GETTEXT_DOMAIN.
Referenced by events::menu_handler::ai_formula(), MAKE_ENUM(), reformat(), and events::menu_handler::user_command().
|
inlinestatic |
Definition at line 68 of file gettext.hpp.
References dsngettext(), and GETTEXT_DOMAIN.