i18n library | |
Type | library |
Dictionary | library.i18n |
Library | i18n library |
Associations | com.livecode.library.i18n |
Summary | It consists of a translation system that allows support for multiple languages in our LiveCode applications. |
Description | In order for the bookstore to understand your language packs or translations, they must follow some rules.
The first three cannot be empty.
- id*: It is a text string for the language ID in the application, so it will have to be unique. Examples of possible id are: An example of a language pack would be the following, it is in JSON format.
For more information, go to the Guide section and read "Simple i18n for LiveCode Applications". |
Type | Name | Summary | Syntax |
---|---|---|---|
command | cleanupLocalesStorage | Remove all i18n packages from storage | cleanupLocalesStorage |
- - - | exportLocaleToFile | Exports the array of an i18n package loaded in memory to a file. | exportLocaleToFile <pLocaleID>, <pFilePath> |
- - - | i18nInit | Initialize internationalization packages | i18nInit <pLocaleToLoad>, [<pLocaleByDefault>] |
- - - | loadLocale | Load one or more i18n packages. | loadLocale <pLangPackArray>, [<pAutoStartup>] |
- - - | loadLocaleFromFile | Load one or more i18n packages from a file. | loadLocaleFromFile <pURL>, [<pAutoStartup>] |
- - - | setActiveLocale | Sets the i18n package, which is used to do all translation operations. | setActiveLocale <pLocaleID> |
- - - | unloadLocale | Remove a package from i18n. | unloadLocale <pLocaleID> |
- - - | updateLocale | Updates object properties based on the current language pack or any other previously loaded. | updateLocale <pLongId>, [<pLocaleID>] |
function | getActiveLocale | Gets the ID of the current i18n bundle. | getActiveLocale() |
- - - | getActiveLocaleName | Gets the name of the current i18n bundle. | getActiveLocaleName() |
- - - | loadedLocaleIDs | Get the ids of the i18n packages found in the i18n storage. | loadedLocaleIDs() |
- - - | loadedLocaleNames | Get the names of the i18n packages found in the i18n storage. | loadedLocaleNames() |
- - - | translate | get a text string from the i18n package. | translate <pStringID>, [<pPluralisation>], [<pFormattingArray>], [<pContextArray>], [<pDefaultText>], [<pLocaleID>] |
library | i18n library | It consists of a translation system that allows support for multiple languages in our LiveCode applications. | translate <pStringID>, [<pPluralisation>], [<pFormattingArray>], [<pContextArray>], [<pDefaultText>], [<pLocaleID>] |
message | localeChanged | This message is sent when the user changes the current language. | localeChanged <pNewLocaleID>, <pOldLocaleID> |
property | i18n | Use this property to get and set the internationalization of objects. | set the i18n[propertyName] of object to "Translation_Tag" get the i18n[propertyName] of object |