#include "global.hpp"
#include "gettext.hpp"
#include "log.hpp"
#include <stdlib.h>
#include <libintl.h>
#include <cstring>
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 *encoding) |
void | translation::set_default_textdomain (const char *domain) |
void | translation::set_language (const std::string &slocale, const std::vector< std::string > *alternates) |
void | translation::init () |
#define DBG_G LOG_STREAM(debug, lg::general) |
Definition at line 33 of file gettext.cpp.
#define ERR_G LOG_STREAM(err, lg::general) |
Definition at line 36 of file gettext.cpp.
Referenced by translation::bind_textdomain(), and translation::set_language().
#define LOG_G LOG_STREAM(info, lg::general) |
Definition at line 34 of file gettext.cpp.
Referenced by translation::set_language().
#define WRN_G LOG_STREAM(warn, lg::general) |
Definition at line 35 of file gettext.cpp.
Referenced by translation::set_language().