#include <string>#include <cstring>#include <iostream>#include "gettext.h"#include "util/string.h"#include "porting.h"#include "log.h"Functions | |
| void | init_gettext (const char *path, const std::string &configured_language, int argc, char *argv[]) |
| std::string | gettext_get_lang_code () |
| Returns the current language code from gettext, falling back to "en" if not translated. | |
| std::string gettext_get_lang_code | ( | ) |
Returns the current language code from gettext, falling back to "en" if not translated.
References gettext_get_lang_code().
Referenced by gettext_get_lang_code(), Client::handleCommand_AuthAccept(), ModApiMainMenu::l_get_content_translation(), ModApiClient::l_get_language(), ModApiMainMenu::l_get_language(), and Client::loadMedia().
| void init_gettext | ( | const char * | path, |
| const std::string & | configured_language, | ||
| int | argc, | ||
| char * | argv[] ) |
References actionstream, errorstream, infostream, init_gettext(), and lowercase().
Referenced by init_common(), and init_gettext().