Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training,
learning paths, books, tutorials, and more.

You can improve app sales by providing local translations of the text and labeled UI elements in your app. This process is called localization. There are two elements:

A file called Localized.strings provides support for general text, including alert messages. Optionally, it also can manage labeled UI elements.

You can create localized versions of nib files. The localized nib can include text labels and other text elements that are pre-translated. It also may need to include size adjustments to allow for the different width of text in each language.

Creating Localized.strings

If you want to support multiple languages, you must add a file called Localized.strings to your app. Follow these steps:

1. Right-click the Supporting Files group in the Project navigator.

2. Select New File….

3. Select iOS→Resource and Strings File, as shown in Figure 11.18.

4. Save the file as “Localizable.strings”. No other name will work.

5. Select the file, and open the Utilities pane at the right if it isn’t already open.

6. Select the File inspector in the Utilities pane, if it isn’t already visible.

7. Open the Localization sub-pane.

8. Click the “+” icon, and select English.

9. Click the “+” icon again, and add as many further languages as you want your app to support.

Using ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training,
learning paths, books, interactive tutorials, and more.