The Battle for Wesnoth  1.13.4+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 (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)
 

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 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().

static UNUSEDNOWARN std::string translation::gettext ( const char *  str)
inlinestatic
void translation::init ( )
void translation::set_default_textdomain ( const char *  domain)
void translation::set_language ( const std::string slocale,
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.