#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) |
Referenced by get_clean_world_path(), con::Connection::getDesc(), server::ActiveObjectMgr::getObjectsInArea(), ClientLauncher::init_args(), list_worlds(), parse_atomic(), print_allowed_options(), print_help(), run_dedicated_server(), set_allowed_options(), setup_log_params(), k_d_tree::DynamicKdTrees< Dim, Component, Id >::shrink_to_half(), TEST_CASE(), and k_d_tree::DynamicKdTrees< Dim, Component, Id >::updateDelEntries().
◆ gettext_noop
| #define gettext_noop |
( |
| String | ) |
(String) |
◆ N_
◆ fmtgettext()
template<typename ... Args>
| std::string fmtgettext |
( |
const char * | format, |
|
|
Args &&... | args ) |
|
inline |
Returns translated string with format args applied.
- Template Parameters
-
| Args | Template parameter for format args |
- Parameters
-
| format | Translation source string |
| args | Variable format args |
- Returns
- translated string.
References porting::mt_snprintf().
Referenced by Server::addShutdownError(), Game::checkConnection(), Game::connectToServer(), Game::createServer(), ShaderSource::generateShader(), ModConfiguration::getUnsatisfiedModsError(), Client::makeScreenshot(), KeyPress::name(), TextureBuffer::reset(), takeScreenshot(), and the_game().
◆ 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 GUITouchscreenLayout::GUITouchscreenLayout(), Client::afterContentReceived(), fwgettext(), Game::getServerContent(), ClientMediaDownloader::initialStep(), make_button_grid_title(), GUIFormSpecMenu::regenerateGui(), GUIOpenURLMenu::regenerateGui(), GUIPasswordChange::regenerateGui(), GUIVolumeChange::regenerateGui(), GUITouchscreenLayout::regenerateMenu(), Game::showOverlayMessage(), GameUI::showTranslatedStatusText(), GUIButtonKey::startCapture(), and wstrgettext().
◆ wstrgettext() [2/2]
| std::wstring wstrgettext |
( |
const std::string & | str | ) |
|
|
inline |