iPhone Settings.bundle的本地化

iPhone Settings.bundle的本地化

问题描述:

出于某种原因,我无法让Settings.bundle识别我的其他语言。我必须遗漏一些明显的东西,但我无法弄清楚。这就是我所拥有的:

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:

XCode中的项目结构:

Project Structure in XCode:

Root.plist文件:

Root.plist file:

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

法国Root.strings文件

French Root.strings file

法语Root.strings文件http://img121.imageshack.us/img121/571/screenshot20100624at334.png

从我读过的所有内容来看,我认为项目结构是正确的。 Root.plist中的StringsTable匹配单个.strings文件的名称,Root.plist中每个项目的Key也在.strings文件中匹配。

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.

当我更改默认的iPhone语言时,为什么我在设置中看不到法语文本?

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

提前致谢!

我将继续回答我自己的问题,因为我通过测试和失败解决了问题。希望这将有助于其他人。

I'll go ahead and answer my own question since I solved the problem myself through testing and failing. Hopefully this will help someone else in the future.

首先,我认为我的 Root.plist 文件可能是损坏。我不确定为什么,但我完全删除了 Settings.bundle ,并重新创建它以确保。

First, I think my Root.plist file may have been corrupted. I'm not exactly sure why, but I completely deleted the Settings.bundle, and re-created it to be sure.

其次,也许最重要的是,主要问题是 root.strings 文件中的密钥与 key Root.plist 中的字段,它实际匹配 Title 领域。

Second, and perhaps most importantly, the main issue was the "key" in the root.strings file didn't match to the "key" field in the Root.plist, it actually matches the "Title" field.

我对 Root.strings 文件进行了这些更改后,一切都开始工作了。

Once I made those changes to the Root.strings file, it all started to work.