views:

1450

answers:

4

I'm in the middle of localizing my iPhone app, and I've gotten English, French, German and Japanese localizations working without any problems. Now I'm trying to get a simplified chinese localization working, and no matter what I try, the chinese .lproj bundle just won't be used when I have the phone set to simplified chinese.

One problem is that I'm not sure what the localization should be called. I've tried "Chinese", zh-Hans, zh-CN, zh_Hans, zh_CN and none of them work. I've even gone as far as digging around inside Remember The Milk's app bundle to see what they used. They're using zh_CN but that doesn't work for me.

Am I missing something obvious here? Do I need to update some plist somewhere? As far as I can see from reading the I18N documentation and looking at the relevant WWDC session video, all I should need to do is make sure I have the right .lproj bundle in my app bundle and I should be good to go... right?

If you think it would help, I can provide a test xcode project that demonstrates the problem...

Thanks

+5  A: 

It's zh_CN for Simp. Chinsese (简体中文), zh_TW for Trad. Chinese (繁體中文).

If you are testing zh_CN.lproj under Trad. Chinese Language setting, it won't work. Just make sure you are testing your app with correct system language setting. Also, the Localizable.strings should be encoded with UTF-16 encoding.

digdog
Sorry i had a typo in my post, I meant to say zh_CN... I've tried zh_CN and it's not working for me.
Mike Akers
Mike, zh_CN only works with your iPhone's "简体中文" (Simp. Chinese) Language settings (not "繁體中文", Trad. Chinese).
digdog
Don't ask me why, but zh_CN is working now... had to do a clean build and restart of the simulator a few times. Thanks digdog!
Mike Akers
A: 

Since iPhone likes to cache resources, you should clean up your app project and re-build it. Then everything will work fine with your localization.

kslcam
A: 

oohhhh..... after a long tyme i got the answer :)

Arsalan
A: 

when u add localization for any language other than Chinese u named as Arabic,German,e.t.c but for the chinese u have to restrict when naming because there are 2 chinese (simple and tradition) so in iphone localization u must named zh_CN(for simplified chinese) if u placed other name it could not translate so b carefull name must be

zh_CN (for simplified chinese).

it resolves ur problem
:)

Arsalan