Alex Rivera | Logout

Localization of the iPhone Settings.bundle

Asked 2010-06-24T19:45:28.827
20

For some reason I cannot get the Settings.bundle to recognize my additional languages. I must be missing something obvious, but I just cannot figure it out. Here's what I've got:

Project Structure in XCode:

XCode Screen Shot

Root.plist file:

Root.plist file http://img227.imageshack.us/img227/571/screenshot20100624at334.png

French Root.strings file

french Root.strings file http://img121.imageshack.us/img121/571/screenshot20100624at334.png

From everything I've read, I believe the project structure is right. The StringsTable in the Root.plist matches the name of the individual .strings files, and the Key for each item in the Root.plist has a match in the .strings files as well.

Why don't I see French text in my settings when I change the default iPhone language?

Thanks in advance!

Edit
Report

2 Answers

11

All you have to do is keep (or Add, if it's not there) "Strings Filename" in the Root.plist, after your settings.

Check the image with example

Then, add Value "Root" (or, the name of your file and the translations) to make the created lang.lproj translations functional.

answered 2012-05-13T13:44:07.120
4

In my case, it appeared as if "Strings Filename" was set to "Root" in the Property List View of Root.plist, but when viewed the file in Source Code View, it was actually "StringsTable" pointing to "Root". The solution is to add another entry where "Strings Filename" points to "Root". (I also tried deleting the previous entry, but then it stops working, so you need both.)

answered 2013-05-06T11:38:34.927

Your Answer