Go to the source code of this file.
Macros | |
| #define | _(String) |
| #define | gettext_noop(String) |
| #define | N_(String) |
Functions | |
| 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 | ) |
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().
| #define gettext_noop | ( | String | ) |
| #define N_ | ( | String | ) |
Referenced by Game::connectToServer(), Game::createClient(), Game::createServer(), Game::init(), and Game::shutdown().
|
inline |
Returns translated string with format args applied.
| Args | Template parameter for format args |
| format | Translation source string |
| args | Variable format args |
References porting::mt_snprintf().
Referenced by Server::addShutdownError(), Game::checkConnection(), Game::connectToServer(), Game::createServer(), Client::getItemDefManager(), IShaderSource::getShader(), ModConfiguration::getUnsatisfiedModsError(), KeyPress::name(), TextureBuffer::reset(), takeScreenshot(), and the_game().
|
inline |
Returns translated string with format args applied.
| Args | Template parameter for format args |
| src | Translation source string |
| args | Variable format args |
References wstrgettext().
Referenced by Game::decreaseViewRange(), Game::increaseViewRange(), GUIVolumeChange::OnEvent(), Game::processKeyInput(), GUIVolumeChange::regenerateGui(), and GameUI::toggleProfiler().
| void init_gettext | ( | const char * | path, |
| const std::string & | configured_language, | ||
| int | argc, | ||
| char * | argv[] ) |
References actionstream, errorstream, infostream, and lowercase().
Referenced by init_common().
|
inline |
Referenced by GUIEngine::GUIEngine(), Server::addShutdownError(), ModApiClient::l_gettext(), KeyPress::name(), TextureBuffer::reset(), GameFormSpec::showPauseMenu(), strgettext(), the_game(), and wstrgettext().
|
inline |
|
inline |
References strgettext(), and utf8_to_wide().
Referenced by GUITouchscreenLayout::GUITouchscreenLayout(), 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().
|
inline |