iOS 4.3 Simulator Localization.strings以法语而非英语运行 [英] iOS 4.3 Simulator Localization.strings working in French, but not English

查看:93
本文介绍了iOS 4.3 Simulator Localization.strings以法语而非英语运行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚开始着手对此应用程序进行本地化.从三个标签栏按钮标题开始,我有了Localization.strings文件,如下所示:

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";

// 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.

在iOS 5模拟器或iOS 5 iphone中不会发生此问题.我没有要在其上进行测试的iOS 4.3设备.

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.

我在做错什么吗?

推荐答案

它也应该在4.3仿真器上发生.

It should occur on the 4.3 simulator too.

您的文件en.lproj中是否有英文文本?目录是否已添加到您的项目中?

Are your files for the english texts in the directory en.lproj? Is the directory added to your project?

目标信息设置的Localization native development region中是否有条目en?

Do you have an entry en in the Localization native development region in your target info settings?

这篇关于iOS 4.3 Simulator Localization.strings以法语而非英语运行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆