Redirection

Whenever you load a resource, the system uses an indirection step to check for a local version. Resources can include storyboards, XIB (IB interface definition) files, sounds, images, and tables of strings. If a localized version is found, the system uses it; if not, the system uses a default value. You add new languages by adding files and data for that language.

A project starts with English localization. Figure 5-2 shows the project view from the Chapter 5 starting version of CarValet. In the Info panel is a category called Localizations with two items. One is a language—in this case, English.

Image

Figure 5-2 Project-level localization ...

Get Learning iOS Development: A Hands-on Guide to the Fundamentals of iOS Programming now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.