Creating Locale-Specific Resource Bundles

Procedure

  1. 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 file htmlresources.properties file to htmlresources_ja.properties.
  2. Translate the strings in the resource bundles manually into the required user-specific locale.
  3. Save the property file in the UTF-8 format. Convert it into the ASCII format using the Ant build script (native2ascii).
  4. Rebuild the ECM.ear file.

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.