iOS 4.3 Simulator Localization.strings working in

2019-08-22 09:39发布

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?

2条回答
做个烂人
2楼-- · 2019-08-22 10:09

File name could be wrong !!

Localization.strings

must be

Localizable.strings
查看更多
疯言疯语
3楼-- · 2019-08-22 10:28

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?

查看更多
登录 后发表回答