How to add localization to settings.bundle file?

My application supports two languages. When I add a preset, it is in English only. In Xcode 6.1, I did not find the ability to add localization to Settings.bundle. Did I miss something?

enter image description here

+6
source share
2 answers

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

+11
source

It does not seem to work in Simulator. I am using Xcode 8.2.1.

OK I recognize this problem. In my Xcode project, the Root.plist file in Settings.bundle , one element is missing: Strings Filename . I added this entry and set its value to Root , which is designed to localize the language. When you add this missing item, my application settings work in the Simulator!

See my blog on for more information .

0
source

Source: https://habr.com/ru/post/980034/


All Articles