Using Localizable.strings in an iPhone Application

I downloaded the three20 library:

http://three20.info/

And I opened a sample TTCatalog sample that comes with this library:

http://img16.imageshack.us/img16/3183/screenshot20100302at752.png

As you can see, there are many Localizable.strings files.

When I opened the iPhone simulator and changed its language, for example, French in the settings, the text on the button still remains in English:

http://img69.imageshack.us/img69/9775/screenshot20100302at812.png

I have already verified that there is a specific entry for the text "View All" in Localization.strings of French.

Why and what are the steps to get it to use Localizable.strings files?

(This sample project does not come with any nib / xib file)

EDIT:

After adding the following XML to Info.plist:

... <dict> ... <key>CFBundleLocalizations</key> <array> <string>de</string> <string>en</string> <string>es</string> <string>fr</string> <string>it</string> <string>ja</string> <string>zh_cn</string> <string>zh_tw</string> </array> </dict> ... 

Now it works!

+7
iphone xcode localization three20
source share
1 answer

Does this thread help http://groups.google.com/group/three20/browse_thread/thread/bee3d5525a32d476 ?

Quote if link is not available:

In order for the localizations inside the bundles to work, your application must have some localized resources, because the available localizations are determined by looking at the available ones in the main package. Alternatively, you can add available localizations as a parameter in your Info.plist with the key "CFBundleLocalizations". Please note that the value of this key must be an array, something that is not supported by the Info.plist Xcode editor, you edit the file "manually" to get localizations there. If you need only one localization, you can simply set the key "CFBundleDevelopmentRegion" to the value of your choice.

+8
source share

All Articles