开发者

For the iPhone, can you program for different languages?

开发者 https://www.devze.com 2022-12-29 12:37 出处:网络
For the iPhone, is it开发者_StackOverflow possible to program applications to translate words from a base language to any of several languages of various users. If so, how? Sure, this is called locali

For the iPhone, is it开发者_StackOverflow possible to program applications to translate words from a base language to any of several languages of various users. If so, how?


Sure, this is called localisation (or as Apple calls it, "internationalization"). Here's a tutorial, and here are the Apple docs on it.


You can easily get a localized string using NSBundle s -localizedStringForKey:value:table: for values that you've defined in a localizable.strings file.

0

精彩评论

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

关注公众号