The Battle for Wesnoth  1.15.1+dev
Namespaces | Macros | Functions
gettext.cpp File Reference
#include "global.hpp"
#include "gettext.hpp"
#include "log.hpp"
#include "filesystem.hpp"
#include <algorithm>
#include <iomanip>
#include <iostream>
#include <iterator>
#include <fstream>
#include <locale>
#include <mutex>
#include <boost/locale.hpp>
#include <set>
#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)
 

Macro Definition Documentation

◆ DBG_G

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

Definition at line 39 of file gettext.cpp.

◆ ERR_G

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

Definition at line 42 of file gettext.cpp.

Referenced by translation::compare(), and translation::icompare().

◆ LOG_G

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

◆ WRN_G

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

Definition at line 41 of file gettext.cpp.