41 #ifndef GETTEXT_DOMAIN 42 # define GETTEXT_DOMAIN PACKAGE 47 # define GETTEXT_DOMAIN "" 51 #define UNUSEDNOWARN [[maybe_unused]] 52 #elif defined(__GNUCC__) || defined(__clang__) || defined(__MINGW32__) 53 #define UNUSEDNOWARN __attribute__((unused)) 60 std::string
dgettext(
const char* domain,
const char* msgid);
62 std::string
dsgettext(
const char * domainname,
const char *msgid);
64 std::string
dsngettext(
const char * domainname,
const char *singular,
const char *plural,
int n);
74 void bind_textdomain(
const char* domain,
const char* directory,
const char* encoding);
80 int compare(
const std::string& s1,
const std::string& s2);
83 int icompare(
const std::string& s1,
const std::string& s2);
85 std::string
strftime(
const std::string&
format,
const std::tm* time);
87 bool ci_search(
const std::string& s1,
const std::string& s2);
95 UNUSEDNOWARN inline static std::string
_n(
const char* str1,
const char* str2,
int n)
98 #define gettext_noop(String) String 99 #define N_(String) gettext_noop (String) void bind_textdomain(const char *domain, const char *directory, const char *)
int compare(const std::string &s1, const std::string &s2)
Case-sensitive lexicographical comparison.
void set_language(const std::string &language, const std::vector< std::string > *)
std::string dsngettext(const char *domainname, const char *singular, const char *plural, int n)
std::string dgettext(const char *domain, const char *msgid)
std::string dsgettext(const char *domainname, const char *msgid)
std::string strftime(const std::string &format, const std::tm *time)
static UNUSEDNOWARN std::string _(const char *str)
static UNUSEDNOWARN std::string _n(const char *str1, const char *str2, int n)
void set_default_textdomain(const char *domain)
static UNUSEDNOWARN std::string gettext(const char *str)
std::string egettext(char const *msgid)
bool ci_search(const std::string &s1, const std::string &s2)
Some defines: VERSION, PACKAGE, MIN_SAVEGAME_VERSION.
#define GETTEXT_DOMAIN
How to use gettext for wesnoth source files:include this header file in the .cpp filemake sure...
int icompare(const std::string &s1, const std::string &s2)
Case-insensitive lexicographical comparison.
static UNUSEDNOWARN std::string sgettext(const char *str)
static UNUSEDNOWARN std::string sngettext(const char *str1, const char *str2, int n)
static map_location::DIRECTION n