Software AG Products 10.7 | CentraSite for Developers | Customizing CentraSite | Customizing CentraSite i18n Messages
 
Customizing CentraSite i18n Messages
 
Fetching Message Key
Changing Message Value
CentraSite supports Internationalization (i18n) out of the box. With CentraSite's extensibility you can customize the default i18n messages that appear in the Business UI based on a user's language.
Understanding Message Bundles
To use different languages in CentraSite you create message bundle file for each different languages that you wish to render. Message bundles in CentraSite are located on <CentraSiteInstall_Directory>/cast/cswebapps/BusinessUI/custom/resources folder and are simple Java properties files.
Each bundle starts with the name i18nresources by convention and ends with the language (_en). By default, CentraSite looks in the i18nresources_xx.properties file for messages based on the user specific language.
Customizing i18n Messages
The i18n messages are stored in the form of key/value pairs. The key is the identifier used by CentraSite to retrieve the text, and the value is the actual text. CentraSite allows you to modify the default i18n messages to suit your needs.
After you decide which specific i18n message you want to customize, you must first fetch the key (unique identifier) from CentraSite's message database, and then manually update the i18n properties file.