UIStringTranslator

Undocumented in source.

Constructors

this
this()
Undocumented in source.

Members

Functions

convertResourcePath
string convertResourcePath(string filename)

convert resource path - зкуpend resource dir if necessary

findTranslationsDir
string findTranslationsDir(string[] dirs)

looks for i18n directory inside one of passed dirs, and uses first found as directory to read i18n files from

get
dstring get(string id)

translate string ID to string (returns "UNTRANSLATED: id" for missing values)

load
bool load(string mainFilename, string fallbackFilename)

load translation file(s)

Properties

resourceDir
string resourceDir [@property getter]

get i18n resource directory

resourceDir
string resourceDir [@property setter]

set i18n resource directory

Meta