iOS 4.3 Simulator Localization.strings working in French, but not English

核能气质少年 提交于 2019-12-13 07:06:51

问题


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?


回答1:


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 the Localization native development region in your target info settings?




回答2:


File name could be wrong !!

Localization.strings

must be

Localizable.strings


来源:https://stackoverflow.com/questions/8686541/ios-4-3-simulator-localization-strings-working-in-french-but-not-english

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!