djtext.core

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)

Loads all localization files in dir

loadLocaleFile
void loadLocaleFile(string name)

Manuall loads localization file with name.

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_EXTENSION
enum LOCALE_EXTENSION;

Language file extension

Meta