Minetest  5.4.0
gettext.h File Reference
#include "config.h"
#include <string>
#include <libintl.h>
+ Include dependency graph for gettext.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define _(String)   gettext(String)
 
#define gettext_noop(String)   (String)
 
#define N_(String)   gettext_noop((String))
 

Functions

void init_gettext (const char *path, const std::string &configured_language, int argc, char *argv[])
 
wchar_t * utf8_to_wide_c (const char *str)
 
const wchar_t * wgettext (const char *str)
 
std::string strgettext (const std::string &text)
 

Macro Definition Documentation

◆ _

#define _ (   String)    gettext(String)

◆ gettext_noop

#define gettext_noop (   String)    (String)

◆ N_

#define N_ (   String)    gettext_noop((String))

Function Documentation

◆ init_gettext()

void init_gettext ( const char *  path,
const std::string &  configured_language,
int  argc,
char *  argv[] 
)

References errorstream, infostream, lowercase(), PROJECT_NAME, and PROJECT_NAME_C.

Referenced by init_common().

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

◆ strgettext()

std::string strgettext ( const std::string &  text)
inline

Referenced by ModApiClient::l_gettext(), ModApiMainMenu::l_gettext(), GUIConfirmRegistration::regenerateGui(), Game::showPauseMenu(), and the_game().

+ Here is the caller graph for this function:

◆ utf8_to_wide_c()

wchar_t* utf8_to_wide_c ( const char *  str)

References utf8_to_wide().

Referenced by GUIConfirmRegistration::regenerateGui(), and wgettext().

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

◆ wgettext()

const wchar_t* wgettext ( const char *  str)
inline