coco
coco

Reputation: 4960

How to add a localization to a settings.bundle?

My app supports two languages. When I add a settings-bundle, it´s only in english. In Xcode 6.1 I found no way to add a localization to Settings.bundle. Did I miss something?

enter image description here

Upvotes: 7

Views: 8806

Answers (2)

David.Chu.ca
David.Chu.ca

Reputation: 38634

It seems not working in Simulator. I am using Xcode 8.2.1.

OK. I find out the issue. In my Xcode project, the file Root.plist in Settings.bundle, there is one item missing: Strings Filename. I added this entry and set its value to Root, which is for language localization. With this missing item added, my app settings are working as expected in Simulator!

See my blog on this for more information.

Upvotes: 0

coco
coco

Reputation: 4960

Nevertheless I found a working solution.
1) open Settings.bundle package
2) create new folder de.lproj (dont´t duplicate en.lproj - Finder don´t likes this)
3) copy Root.strings from en.lproj-folder to de.lproj-folder
4) now you can edit the new language in Xcode

Upvotes: 22

Related Questions