Creating Locale-Specific Resource Bundles
- Procedure
- Copy of the resource bundle with the English strings. Suffix the copied resource bundle with the language code and country code (optional). For example, if you plan to create Japanese locale resource bundle, copy the
htmlresources.propertiesfile tohtmlresources_ja.properties. - Translate the strings in the resource bundles manually into the required user-specific locale.
- Save the property file in the UTF-8 format. Convert it into the ASCII format using the Ant build script (native2ascii).
- Rebuild the
ECM.earfile.
Result
On run-time, the locale-specific property file is read and the text in the HTML elements of the original template is replaced with the translated strings.