Skip to Main Content
Xcode 5 Start to Finish: iOS and OS X Development
book

Xcode 5 Start to Finish: iOS and OS X Development

by Fritz Anderson
May 2014
Intermediate to advanced content levelIntermediate to advanced
624 pages
19h 43m
English
Addison-Wesley Professional
Content preview from Xcode 5 Start to Finish: iOS and OS X Development

Strings in Code

What I’ve done so far completes the localization of Mac Passer Rating (Figure 21.13). I’ve been fortunate because the application keeps all of its user-visible content in localizable resources. Not every app is so fortunate; some user-visible strings may be embedded in code. This is especially the case with alerts and other constructs that need strings formatted on the fly. Let me make a ridiculous change that illustrates the problem, and its solution.

Image

Figure 21.13 The complete localization of Mac Passer Rating (Quart-Efficacité). It reflects the XIB translations, the changed layout of MPRGameViewController.xib, and the InfoPlist.strings ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Xcode 6 Start to Finish: iOS and OS X Development, Second Edition

Xcode 6 Start to Finish: iOS and OS X Development, Second Edition

Fritz Anderson
Objective-C for Absolute Beginners: iPhone, iPad and Mac Programming Made Easy

Objective-C for Absolute Beginners: iPhone, iPad and Mac Programming Made Easy

Stefan Kaczmarek, Brad Lees, Gary Bennett, Mitch Fisher

Publisher Resources

ISBN: 9780133751031Purchase book