The Battle for Wesnoth  1.19.7+dev
Namespaces | Macros | Functions
gettext.cpp File Reference
#include "gettext.hpp"
#include "log.hpp"
#include "filesystem.hpp"
#include <algorithm>
#include <iterator>
#include <locale>
#include <map>
#include <boost/locale.hpp>
#include <set>
#include <type_traits>
#include "spirit_po/spirit_po.hpp"
Include dependency graph for gettext.cpp:

Go to the source code of this file.

Namespaces

 translation
 

Macros

#define DBG_G   LOG_STREAM(debug, lg::general())
 
#define LOG_G   LOG_STREAM(info, lg::general())
 
#define WRN_G   LOG_STREAM(warn, lg::general())
 
#define ERR_G   LOG_STREAM(err, lg::general())
 

Functions

std::string translation::dgettext (const char *domain, const char *msgid)
 
std::string translation::egettext (char const *msgid)
 
std::string translation::dsgettext (const char *domainname, const char *msgid)
 
std::string translation::dsngettext (const char *domainname, const char *singular, const char *plural, int n)
 
void translation::bind_textdomain (const char *domain, const char *directory, const char *)
 
void translation::set_default_textdomain (const char *domain)
 
void translation::set_language (const std::string &language, const std::vector< std::string > *)
 
int translation::compare (const std::string &s1, const std::string &s2)
 Case-sensitive lexicographical comparison. More...
 
int translation::icompare (const std::string &s1, const std::string &s2)
 Case-insensitive lexicographical comparison. More...
 
std::string translation::strftime (const std::string &format, const std::tm *time)
 
bool translation::ci_search (const std::string &s1, const std::string &s2)
 
const boost::locale::info & translation::get_effective_locale_info ()
 A facet that holds general information about the effective locale. More...
 

Macro Definition Documentation

◆ DBG_G

#define DBG_G   LOG_STREAM(debug, lg::general())

Definition at line 36 of file gettext.cpp.

◆ ERR_G

#define ERR_G   LOG_STREAM(err, lg::general())

Definition at line 39 of file gettext.cpp.

◆ LOG_G

#define LOG_G   LOG_STREAM(info, lg::general())

Definition at line 37 of file gettext.cpp.

◆ WRN_G

#define WRN_G   LOG_STREAM(warn, lg::general())

Definition at line 38 of file gettext.cpp.