|
void | JSI_L10n::RegisterScriptFunctions (ScriptInterface &ScriptInterface) |
| Registers the functions of the JavaScript interface for internationalization and localization into the specified JavaScript context. More...
|
|
std::wstring | JSI_L10n::Translate (ScriptInterface::CxPrivate *pCxPrivate, const std::wstring &sourceString) |
| Returns the translation of the specified string to the current locale. More...
|
|
std::wstring | JSI_L10n::TranslateWithContext (ScriptInterface::CxPrivate *pCxPrivate, const std::string &context, const std::wstring &sourceString) |
| Returns the translation of the specified string to the current locale in the specified context. More...
|
|
std::wstring | JSI_L10n::TranslatePlural (ScriptInterface::CxPrivate *pCxPrivate, const std::wstring &singularSourceString, const std::wstring &pluralSourceString, int number) |
| Returns the translation of the specified string to the current locale based on the specified number. More...
|
|
std::wstring | JSI_L10n::TranslatePluralWithContext (ScriptInterface::CxPrivate *pCxPrivate, const std::string &context, const std::wstring &singularSourceString, const std::wstring &pluralSourceString, int number) |
| Returns the translation of the specified string to the current locale in the specified context, based on the specified number. More...
|
|
std::wstring | JSI_L10n::TranslateLines (ScriptInterface::CxPrivate *pCxPrivate, const std::wstring &sourceString) |
| Translates a text line by line to the current locale. More...
|
|
std::vector< std::wstring > | JSI_L10n::TranslateArray (ScriptInterface::CxPrivate *pCxPrivate, const std::vector< std::wstring > &sourceArray) |
| Translate each of the strings of a JavaScript array to the current locale. More...
|
|
std::wstring | JSI_L10n::FormatMillisecondsIntoDateStringLocal (ScriptInterface::CxPrivate *pCxPrivate, UDate milliseconds, const std::wstring &formatString) |
| Returns the specified date converted to the local timezone using the specified date format. More...
|
|
std::wstring | JSI_L10n::FormatMillisecondsIntoDateStringGMT (ScriptInterface::CxPrivate *pCxPrivate, UDate milliseconds, const std::wstring &formatString) |
| Returns the specified date in GMT using the specified date format. More...
|
|
std::wstring | JSI_L10n::FormatDecimalNumberIntoString (ScriptInterface::CxPrivate *pCxPrivate, double number) |
| Returns the specified floating-point number as a string, with the number formatted as a decimal number using the current locale. More...
|
|
std::vector< std::string > | JSI_L10n::GetSupportedLocaleBaseNames (ScriptInterface::CxPrivate *pCxPrivate) |
| Returns an array of supported locale codes sorted alphabetically. More...
|
|
std::vector< std::wstring > | JSI_L10n::GetSupportedLocaleDisplayNames (ScriptInterface::CxPrivate *pCxPrivate) |
| Returns an array of supported locale names sorted alphabetically by locale code. More...
|
|
std::string | JSI_L10n::GetCurrentLocale (ScriptInterface::CxPrivate *pCxPrivate) |
| Returns the code of the current locale. More...
|
|
std::vector< std::string > | JSI_L10n::GetAllLocales (ScriptInterface::CxPrivate *pCxPrivate) |
| Returns an array of locale codes supported by ICU. More...
|
|
std::string | JSI_L10n::GetDictionaryLocale (ScriptInterface::CxPrivate *pCxPrivate, const std::string &configLocale) |
| Returns the code of the recommended locale for the current user that the game supports. More...
|
|
std::vector< std::wstring > | JSI_L10n::GetDictionariesForLocale (ScriptInterface::CxPrivate *pCxPrivate, const std::string &locale) |
| Returns an array of paths to files in the virtual filesystem that provide translations for the specified locale code. More...
|
|
std::string | JSI_L10n::GetLocaleLanguage (ScriptInterface::CxPrivate *pCxPrivate, const std::string &locale) |
| Returns the ISO-639 language code of the specified locale code. More...
|
|
std::string | JSI_L10n::GetLocaleBaseName (ScriptInterface::CxPrivate *pCxPrivate, const std::string &locale) |
| Returns the programmatic code of the entire locale without keywords. More...
|
|
std::string | JSI_L10n::GetLocaleCountry (ScriptInterface::CxPrivate *pCxPrivate, const std::string &locale) |
| Returns the ISO-3166 country code of the specified locale code. More...
|
|
std::string | JSI_L10n::GetLocaleScript (ScriptInterface::CxPrivate *pCxPrivate, const std::string &locale) |
| Returns the ISO-15924 abbreviation script code of the specified locale code. More...
|
|
std::wstring | JSI_L10n::GetFallbackToAvailableDictLocale (ScriptInterface::CxPrivate *pCxPrivate, const std::string &locale) |
|
bool | JSI_L10n::UseLongStrings (ScriptInterface::CxPrivate *pCxPrivate) |
| Returns true if the current locale is the special “Long Strings” locale. More...
|
|
bool | JSI_L10n::ValidateLocale (ScriptInterface::CxPrivate *pCxPrivate, const std::string &locale) |
| Returns true if the locale is supported by both ICU and the game. More...
|
|
bool | JSI_L10n::SaveLocale (ScriptInterface::CxPrivate *pCxPrivate, const std::string &locale) |
| Saves the specified locale in the game configuration file. More...
|
|
void | JSI_L10n::ReevaluateCurrentLocaleAndReload (ScriptInterface::CxPrivate *pCxPrivate) |
| Determines the best, supported locale for the current user, makes it the current game locale and reloads the translations dictionary with translations for that locale. More...
|
|