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.
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.