Adding a New Language

Add support for new languages by dropping new <language>.lproj directories into the project.

By default, the Hybrid Web Container is localized to several different languages. Localized resources are in <language>.lproj directories and group folders throughout the project, where <language> may be the full language name, or a two-digit country code. The simplest way to add a new language is to copy existing lproj directories for another language, translate the strings into the new language, and add the new lproj directories to the project.

This procedure uses English as a starting point.

  1. Copy WorkFlow/English.lproj directory to WorkFlow/<new_language>.lproj.
    This contains resources for the PIN screens and for the splash screen. You can localize or entirely redesign the PIN screen .
  2. Add the newly created WorkFlow/<new_language>.lproj directory to the project, at the top level (not under any group folders).
  3. In Finder, right-click WorkFlow/Settings.bundle, and select Show Package Contents.
    The Settings.bundle directory opens.
  4. Copy en.lproj to <new_language>.lproj.
  5. Translate the strings in Root.strings (these are the strings that identify names of settings in the Settings screen) and About.strings (associated with the About box).
  6. In Xcode, in the Project Navigator, find the newly created <new_language>.lproj directory under the Resources/Settings.bundle.
    You do not need to explicitly add the new directory to the project, but you should verify it is there.
  7. Copy WorkFlow/strings/English.lproj to WorkFlow/strings/<new_language>.lproj.
  8. Translate the strings in Branding.strings and Localizable.strings.
  9. In Project Navigator, add the newly created WorkFlow/strings/<new_language>.lproj directory to the project under the Resources group folder.
Related concepts
Customizing PIN Screens on iOS