i18n

Typeproperty
Dictionarylibrary.i18n
Libraryi18n library
Syntax
set the i18n[propertyName] of object to "Translation_Tag"
get the i18n[propertyName] of object
Associationscom.livecode.library.i18n
Summary

Use this property to get and set the internationalization of objects.

Parameters
NameTypeDescription
propertyName

Name of the property to which you want to bind a translation tag. You have to take into account that this property must expect a text string as its value.

Example
set the i18n["text"] of field 1 to "hello_word"
# Get all properties that have an associated translation tag.
on mouseUp
   local tTagsArray, tTag

   put the i18n of me into tTagsArray
   put tTagsArray["text"] into tTag

   answer "The i18n tag corresponding to my text property is:" && tTag
end mouseUp
# Get all properties that have an associated translation tag
on mouseUp
   local tTag

   put the i18n["text"] of me into tTag
   answer "the i18n tag corresponding to my text property is:" && tTag
end mouseUp
Description

Use the i18n property to bind a translation tag to a property of an object. I18n is an array style property, each key in the array is the name of a property and its value will be the translation tag it is bound to.

Tagsinternationalization,i18n,translation,languages,locale