Localization Variable
The Localization Variable command declares a variable, and initializes it to a particular value. It is similar to the Set Variable command in most respects, but intended for use in aiding localization:
The localization process tracks translations for script statements by their unique identifiers. These identifiers, unique for each script command, are created the first time a statement is entered into the script, and change when the statement line is copied, cut, or pasted (but not edited). While this allows for flexibility in providing separate translations for multiple script lines with identical content, it also carries the drawback that any time a line of code is moved around the script, or re-used elsewhere, it will become dissociated from its original translation.
Unlike the Set Variable command, and all other commands in the setup script, this command generates stable string identifiers for the variable declared, which survive all edits in code. Once a variable has been declared using the Localization Variable command, it can only have a single, stable translation, which survives all script modifications.
Localization Variable
Type the name of the variable to define or re-initialize.
Default Value
Type the default value for the variable. If a localized value for this variable has not been made available through the Localization Wizard, this default value will be used.
Notes
- The usage of variables declared using this command is identical to the usage of variables created using the Set Variable command. In particular, variables are dereferenced in the same way, using the notation.