The Battle for Wesnoth  1.13.10+dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Functions
translation Namespace Reference

Functions

std::string dgettext (const char *domain, const char *msgid)
 
std::string egettext (const char *)
 
std::string dsgettext (const char *domainname, const char *msgid)
 
std::string dsngettext (const char *domainname, const char *singular, const char *plural, int n)
 
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)
 
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 &language, const std::vector< std::string > *alternates)
 
void init ()
 Some tasks to run on startup. More...
 
int compare (const std::string &s1, const std::string &s2)
 Case-sensitive lexicographical comparison. More...
 
int icompare (const std::string &s1, const std::string &s2)
 Case-insensitive lexicographical comparison. More...
 
std::string strftime (const std::string &format, const std::tm *time)
 

Function Documentation

void translation::bind_textdomain ( const char *  domain,
const char *  directory,
const char *  encoding 
)
int translation::compare ( const std::string &  s1,
const std::string &  s2 
)
std::string translation::dgettext ( const char *  domain,
const char *  msgid 
)

Definition at line 363 of file gettext_boost.cpp.

References get_locale().

Referenced by dsgettext(), and gettext().

std::string translation::dsgettext ( const char *  domainname,
const char *  msgid 
)

Definition at line 372 of file gettext_boost.cpp.

References dgettext().

Referenced by _(), sgettext(), t_string_base::str(), and vgettext().

std::string translation::dsngettext ( const char *  domainname,
const char *  singular,
const char *  plural,
int  n 
)

Definition at line 385 of file gettext_boost.cpp.

References get_locale().

Referenced by _n(), sngettext(), t_string_base::str(), and vngettext().

std::string translation::egettext ( const char *  msgid)

Definition at line 367 of file gettext_boost.cpp.

References get_locale(), and gettext().

Referenced by attack_type::attack_type().

static UNUSEDNOWARN std::string translation::gettext ( const char *  str)
inlinestatic
int translation::icompare ( const std::string &  s1,
const std::string &  s2 
)

Case-insensitive lexicographical comparison.

Definition at line 426 of file gettext_boost.cpp.

References compare().

Referenced by gui2::dialogs::campaign_selection::sort_campaigns(), and mp::lobby_info::sort_users().

void translation::init ( )

Some tasks to run on startup.

Definition at line 437 of file gettext_boost.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 406 of file gettext_boost.cpp.

References LOG_G.

Referenced by test_utils::game_config_manager::game_config_manager(), and init_locale().

void translation::set_language ( const std::string &  language,
const std::vector< std::string > *  alternates 
)
static UNUSEDNOWARN std::string translation::sgettext ( const char *  str)
inlinestatic
static UNUSEDNOWARN std::string translation::sngettext ( const char *  str1,
const char *  str2,
int  n 
)
inlinestatic

Definition at line 68 of file gettext.hpp.

References dsngettext(), and GETTEXT_DOMAIN.

std::string translation::strftime ( const std::string &  format,
const std::tm *  time 
)