iOS 4.3 Simulator Localization.strings 以法语工作,但不能以英语工作
我刚刚开始致力于该应用程序的本地化工作。从三个选项卡栏按钮标题开始,我有如下 Localization.strings 文件:
// English
// Tab Bar Controller Buttons
"Settings_Tab_Title" = "Settings";
"Results_Tab_Title" = "Results";
"Map_Tab_Title" = "Map";
当
// French
// Tab Bar Controller Buttons
"Settings_Tab_Title" = "Paramétres";
"Results_Tab_Title" = "Résultats";
"Map_Tab_Title" = "Plan";
我将设备语言更改为法语时,会显示正确的按钮名称。当我将设备语言更改为英语时,显示的是按键而不是值或内容。
此问题不会出现在 iOS 5 模拟器或 iOS 5 iPhone 上。我没有 iOS 4.3 设备来测试它。
我做错了什么吗?
I have just started working on localization of this application. Starting with three tab bar button titles, I have Localization.strings files like these:
// English
// Tab Bar Controller Buttons
"Settings_Tab_Title" = "Settings";
"Results_Tab_Title" = "Results";
"Map_Tab_Title" = "Map";
and
// French
// Tab Bar Controller Buttons
"Settings_Tab_Title" = "Paramétres";
"Results_Tab_Title" = "Résultats";
"Map_Tab_Title" = "Plan";
When I change the device language to French, the proper button names show up. When I change the device language to English, the keys are showing instead of the values or contents.
This problem doesn't occur in the iOS 5 simulator or on an iOS 5 iphone. I don't have an iOS 4.3 device to test it on.
Is there something I am doing wrong?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
文件名可能有误!!
必须
File name could be wrong !!
must be
它也应该出现在 4.3 模拟器上。
您的英文文本文件是否位于 en.lproj 目录中?该目录是否已添加到您的项目中?
您的目标信息设置中的
本地化本机开发区域
中是否有en
条目?It should occur on the 4.3 simulator too.
Are your files for the english texts in the directory en.lproj? Is the directory added to your project?
Do you have an entry
en
in theLocalization native development region
in your target info settings?