amalthea.langlocal

Undocumented in source.

Public Imports

amalthea.libcore
public import amalthea.libcore;
Undocumented in source.

Members

Aliases

_s
alias _s = s_
Undocumented in source.

Classes

LocalizationsTableException
class LocalizationsTableException

Exception for incorrect localization tables.

Functions

chooseLanguage
void chooseLanguage(string language)

This function allows to choose current locale for application.

getCurrentLanguage
string getCurrentLanguage()

Current application language by langlocal settings.

getSystemLanguage
string getSystemLanguage()

Current system language.

initLocalization
void initLocalization(string[][] stringsWithLocalizations, string language)

Initializes localization by a two-dimensional array of strings. Titles of columns (first line - index 0) must be locales in Linux style without encoding (en_US, en_GB, eo, fr_CA, ru_RU, etc.), first locale is en_US always.

initLocalization
void initLocalization(string csvPath, string language)

Initializes localization by a CSV file with translations. Titles of columns (first line - index 0) must be locales in Linux style without encoding (en_US, en_GB, eo, fr_CA, ru_RU, etc.), first locale is en_US always.

s_
string s_(string englishString)

This function returns string corresponding to the English (en_US) version, according to the current localization selected.

Static variables

currentLanguage
string currentLanguage;
Undocumented in source.
langconformity
string[string] langconformity;
Undocumented in source.
localeStrings
string[][] localeStrings;
Undocumented in source.

Meta