Translations
Introduction
- A
Translationis a configurable unit designed to define and manage translations for the phrases and messages used in theWeb2Publishapplication. Different translations can be configured for various languages. If a translation is unavailable for a specific language, it will fall back to the first defined translation in the configuration.
Configuration
All Translations configurations are stored and maintained in the ISON configuration.
ISON Configuration Details
The configuration of an Translation within the ISON file follows a standardized format. Below is an example of how an Translation is typically structured.
Sample ISON Configuration
<translations>
<translation key="greeting" lang="en">Hello</translation>
<translation key="greeting" lang="de">Hallo</translation>
</translations>
Explanation of Configuration Elements
-
<translations>: This is the parent or wrapper element that holds the configuration of all translations. -
<translation>: Each<translation>element contains the configuration settings for a specific translation in a designated language.
Attributes:
key: The unique identifier for the translation. This is a mandatory attribute and should be defined clearly to avoid conflicts.lang: The language code for the translation (e.g., en for English, de for German). This is also a mandatory attribute.