#include "config.h"
#include "porting.h"
#include "util/string.h"
#include <libintl.h>
Go to the source code of this file.
|
void | init_gettext (const char *path, const std::string &configured_language, int argc, char *argv[]) |
|
std::string | strgettext (const char *str) |
|
std::string | strgettext (const std::string &str) |
|
std::wstring | wstrgettext (const char *str) |
|
std::wstring | wstrgettext (const std::string &str) |
|
template<typename ... Args> |
std::wstring | fwgettext (const char *src, Args &&... args) |
| Returns translated string with format args applied.
|
|
template<typename ... Args> |
std::string | fmtgettext (const char *format, Args &&... args) |
| Returns translated string with format args applied.
|
|
#define _ |
( |
| String | ) |
gettext(String) |
◆ gettext_noop
#define gettext_noop |
( |
| String | ) |
(String) |
◆ N_
◆ fmtgettext()
template<typename ... Args>
std::string fmtgettext |
( |
const char * | format, |
|
|
Args &&... | args ) |
|
inline |
◆ fwgettext()
template<typename ... Args>
std::wstring fwgettext |
( |
const char * | src, |
|
|
Args &&... | args ) |
|
inline |
◆ init_gettext()
void init_gettext |
( |
const char * | path, |
|
|
const std::string & | configured_language, |
|
|
int | argc, |
|
|
char * | argv[] ) |
◆ strgettext() [1/2]
std::string strgettext |
( |
const char * | str | ) |
|
|
inline |
◆ strgettext() [2/2]
std::string strgettext |
( |
const std::string & | str | ) |
|
|
inline |
◆ wstrgettext() [1/2]
std::wstring wstrgettext |
( |
const char * | str | ) |
|
|
inline |
References strgettext(), and utf8_to_wide().
Referenced by TouchControls::TouchControls(), Client::afterContentReceived(), fwgettext(), Game::getServerContent(), GUIKeyChangeMenu::init_keys(), ClientMediaDownloader::initialStep(), GUIKeyChangeMenu::OnEvent(), GUIFormSpecMenu::regenerateGui(), GUIKeyChangeMenu::regenerateGui(), GUIOpenURLMenu::regenerateGui(), GUIPasswordChange::regenerateGui(), GUIVolumeChange::regenerateGui(), GUIKeyChangeMenu::resetMenu(), Game::showOverlayMessage(), GameUI::showTranslatedStatusText(), and wstrgettext().
◆ wstrgettext() [2/2]
std::wstring wstrgettext |
( |
const std::string & | str | ) |
|
|
inline |