djtext

Undocumented in source.

Members

Aliases

_
alias _ = getdtext

Short name for getdtext

Functions

defaultLocale
void defaultLocale(string locale)

Setups current locale name. If empty string is passed to getdtext then default locale will be taken.

defaultLocale
string defaultLocale()

Returns current locale name. If empty string is passed to getdtext then default locale will be taken.

getdtext
string getdtext(string s, string locale)

Returns translated string s for specified locale. If locale is empty default locale will be taken. If locale name is equal to base locale s string is returned without modification.

loadAllLocales
void loadAllLocales(string dir)
Undocumented in source. Be warned that the author may not have intended to support it.
loadLocaleFile
void loadLocaleFile(string name)

Manuall loads localization file with name. May be usefull to load localization during program execution.

saveFuzzyText
void saveFuzzyText()
Undocumented in source. Be warned that the author may not have intended to support it.

Manifest constants

BASE_LOCALE
enum BASE_LOCALE;

Special locale that doesn't have own locale file.

LOCALE_EXTESION
enum LOCALE_EXTESION;

Language file extension

Meta