June 2011
Intermediate to advanced
590 pages
19h 31m
English
In many places in your applications, you create NSString instances dynamically or display string literals to the user. To display translated versions of these strings, you must create a strings table. A strings table is a file containing a list of key-value pairs for all of the strings your application uses and their associated translations. It’s a resource file that you add to your application, but you don’t need to do a lot of work to get data from it.
Whenever you have a string in your code, it appears like this:
@"Hello!"
To internationalize a string in your code, you replace literal strings with the macro NSLocalizedString().
NSString *translatedString = ...
Read now
Unlock full access