Luanti 5.19.0-dev
Loading...
Searching...
No Matches
gettext.cpp File Reference
#include <string>
#include <cstring>
#include <iostream>
#include "gettext.h"
#include "util/string.h"
#include "porting.h"
#include "log.h"
Include dependency graph for gettext.cpp:

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.

Function Documentation

◆ gettext_get_lang_code()

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().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ init_gettext()

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().

Here is the call graph for this function:
Here is the caller graph for this function: