iPhone Localization Tips
Most of the effort in
localization involves changing words. You say "white;" Italians say
"bianco." In localized apps like this one, Cocoa helps you pick the
right word with a file called Localizable.strings. This file acts as a
small database that maps keys to values. If you look up a string with
the key
White, it will return the value
Bianco on phones that are configured to use Italian. If any other language is selected, "White" is returned.
Note
The default language is defined as English in the Info.plist file.
Actually, it's a lie to say there's one Localizable.strings
file—multiple copies exist, one for each language. If you open the
Flashlight Pro project in the Finder, you see English.lproj and
Italian.lproj in the Resources→Localizations folder. These folders
contain the files used in each language.