UIStringTranslator

UI Strings internationalization translator

Constructors

this
this()

create empty translator

Members

Functions

convertResourcePaths
string[] convertResourcePaths(string filename)

Convert resource path - append resource dir if necessary

findTranslationsDir
void 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, dstring fallbackValue)

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

load
bool load(string mainFilename, string fallbackFilename)

Load translation file(s)

Meta