Spotfire® Deployment Kit for Apple iOS

Localizing the app strings

All strings displayed in the app are already localized to English, French, German, and Spanish. These localizations appear as child entries in the Xcode project hierarchy under Resources > Localizable. If you need to add your own localization of the app strings, follow this procedure.

About this task

For this task, work in the Finder.
Each langcode.lproj folder contains two files:
  • InfoPlist.strings contains a subset of the property keys, which are localized.
  • Localizable.strings contains all of the application's localized UI strings.
Every app for which you provide a translated version requires a folder, named with its two-character code, and containing these two files, with the contents are localized into the target language.

Procedure

  1. Right-click DeploymentKitApp, and then click Show in Finder.
    The Finder opens and displays the DeploymentKitApp.
  2. Expand DeploymentKitApp and find the folder en.lproj.
  3. Duplicate the folder en.lproj.
  4. Rename the duplicated folder langcode.lproj.
    langcode is the two-letter international language code for your language. For example, it.lproj corresponds to a translation into Italian.
  5. Repeat steps 3-4 for each language for which you are localizing.
  6. Send the folders to your translator.
  7. when you receive the results, in the Finder, copy the folders containing the translated files under DeploymentKitApp.
  8. In the Xcode project, in the Project navigator, right-click Resources to display the menu.
  9. Click Add files to project, and then in the dialog box, browse to the folder containing the localized folder.
  10. Select the Localizable.strings file from your new language folder.

Results

The entry in the Xcode project hierarchy now contains a new entry under the item Localizable with your new localization file.

What to do next

Localize the app settings.