#include "rldefine.h"
#include "rlstring.h"
Go to the source code of this file.
|
int | rlSetTranslator (const char *language, const char *inifile=NULL) |
|
const char * | rltranslate (const char *txt, char **mytext=NULL) |
|
const char * | rltranslate2 (const char *section, const char *txt, char **mytext=NULL) |
|
◆ pvtr
#define pvtr |
( |
|
txt | ) |
rltranslate2(p->lang_section,txt,&p->mytext2) |
◆ rltr
◆ rlSetTranslator()
int rlSetTranslator |
( |
const char * |
language, |
|
|
const char * |
inifile = NULL |
|
) |
| |
Definition at line 512 of file rlinifile.cpp.
static rlIniFile * trIniFile
int read(const char *filename)
void setDefaultSection(const char *section)
◆ rltranslate()
const char* rltranslate |
( |
const char * |
txt, |
|
|
char ** |
mytext = NULL |
|
) |
| |
Definition at line 545 of file rlinifile.cpp.
549 if(strcmp(text,
"@") == 0)
return fixquote(txt,mytext);
static rlIniFile * trIniFile
const char * i18n(const char *tag, const char *default_text="")
static const char * fixquote(const char *text, char **mytext)
◆ rltranslate2()
const char* rltranslate2 |
( |
const char * |
section, |
|
|
const char * |
txt, |
|
|
char ** |
mytext = NULL |
|
) |
| |
Definition at line 553 of file rlinifile.cpp.
557 if(*section ==
'\0')
return rltranslate(txt,mytext);
559 if(text[0] ==
'\0')
return fixquote(txt,mytext);
static rlIniFile * trIniFile
const char * text(const char *section, const char *name)
const char * rltranslate(const char *txt, char **mytext)
static const char * fixquote(const char *text, char **mytext)