MvLOCALIZED-TOKEN#
Creates a “token” (or representation) which can then be displayed in localized text. Must be inside the <MvLOCALIZED> block and must precede any <MvLOCALIZED-TEXT> blocks that use the token.
Syntax
<MvLOCALIZED-TOKEN NAME = "string: { expression } | literal"
VALUE = "{ expression } | literal">
Attributes#
| Attribute | Description |
|---|---|
NAME |
(Required) The name of the token. When used, the token will be represented in the form %tokenname%. |
VALUE |
The value of the token. |
Example#
You can include localized text for as many languages as you like. This example displays the text for the previously set language.
<MvLOCALIZED NAME = "g.Message" ID = "MER-ADM-00224">
<MvLOCALIZED-TOKEN NAME = "store_name" VALUE = "{ encodeentities(Stores.d.name) }">
<MvLOCALIZED-TEXT LANGUAGE = "en-US">
Database Files for Store '%store_name%' Packed.
</MvLOCALIZED-TEXT>
<MvLOCALIZED-TEXT LANGUAGE = "de-DE">
Datenbankdateien für Laden '%store_name%' gepackt.
</MvLOCALIZED-TEXT>
</MvLOCALIZED>