Localizing MainMenu.xib

In Xcode 4 Unleashed, this was not a pleasant section to read, nor to write. Localizing a XIB entailed going to the command line to analyze the original, extract all the strings, generate a .strings file, then synthesize the original and the translated strings into a new, localized XIB. Which you must care for for life.

Things are better with Xcode 5. When you choose to localize an Interface Builder resource, Xcode takes care of extracting the strings, and AppKit reads the .strings file directly when it loads the resource and substitutes the translations. Select MPRGameViewController.xib from the Project navigator. As before, it’s shown as a group, and clicking it displays the primary version—in this case, the one-and-only ...

Get Xcode 5 Start to Finish: iOS and OS X Development 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.