Localizing Resources

When internationalizing, you ask the instance of NSLocale questions. But the NSLocale only has a few region-specific variables. This is where localization comes into play: Localization is the process by which application-specific substitutions given a region or a language setting are created. This usually means one of two things:

  • generating multiple copies of resources like images, sounds, and interfaces for different regions and languages
  • creating and accessing strings tables to translate text into different languages

Any resource, whether it’s an image or a XIB file, can be localized with just a little work. In this section, you’re going to localize one of Homepwner’s interfaces: the ItemDetailViewController.xib file. Select ...

Get iOS Programming: The Big Nerd Ranch Guide, Second Edition 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.