Adding a New Language

Add support for a new language to the BlackBerry Hybrid Web Container.

The default language for the Hybrid Web Container is English, and the English strings are located in HybridWebContainer\res\com\sybase\hwc\HybridWebContainer.rrc. The strings for different languages are located in the resources folder. In general, strings of a language are located in a file named HybridWebContainer_<language_code>.rrc. For example, the German resource file is named HybridWebContainer_de.rrc.

  1. Right-click the resources folder and choose Create new file in resources.
  2. Name the file HybridWebContainer_<language_code>.rrc, where <language_code> is the language code of the language you want to add.
  3. Double-click the new file to open it.
  4. Set all the values to be in the new language.
  5. Save the file and rebuild the project.
    When the Hybrid Web Container is built with the resource file you added, it automatically uses the values it contains when the language on the BlackBerry device is set to the matching language.