setActiveLocale

Typecommand
Dictionarylibrary.i18n
Libraryi18n library
Syntax
setActiveLocale <pLocaleID>
Associationscom.livecode.library.i18n
Summary

Sets the i18n package, which is used to do all translation operations.

Parameters
NameTypeDescription
pLocaleID

The long (keyword) id of an object

Example
on mouseUp
   # I remove from the storage of the i18n the package for the Spanish language.
   unloadLocale "es"

   # Uploading the English language package to the i18n store.
   loadLocaleFromFile "/assets/i18n/en.leng"

   # Set current language to English.
   setActiveLocale "en"

   # Updating all UI texts.
   updateLocale the long id of this stack
end mouseUp
Description

Use the setActiveLocale command to set the i18n package, which is used to do all the translation operations.

Tagsinternationalization,i18n,translation,languages,locale