简体   繁体   中英

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?

在此输入图像描述

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

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 .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM