开发者

How to switch language dynamically?

I want to change language o开发者_如何学Pythonf my app then a Button is clicked, but without exit the app, i kown a mothed but is not adapt that is thought creating a new nib and *.strings files, and set the prefenence. I want to change the language dynamically how can I do that?


ANSWER from Chris Hanson:

The standard way to localize Cocoa applications is to create separate nibs for each localization, and use *.strings files. Applications shouldn't have their own localization preferences; these are defined globally by the user in System Preferences.

As I said above, the user changes the language used by the system using System Preferences. Your application should not present its own user experience for doing so.

Thanks for Chris Hanson again.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜