The Battle for Wesnoth  1.17.17+dev
Namespaces | Macros | Functions
gettext.cpp File Reference
#include "gettext.hpp"
#include "log.hpp"
#include "filesystem.hpp"
#include <algorithm>
#include <iomanip>
#include <iterator>
#include <fstream>
#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.




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


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


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

Definition at line 38 of file gettext.cpp.


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

Definition at line 41 of file gettext.cpp.


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

Definition at line 39 of file gettext.cpp.


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

Definition at line 40 of file gettext.cpp.