xcode 使 iPhone 应用程序多语言的最佳方法

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/451776/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-09 02:57:19  来源:igfitidea点击:

Best way to make an iPhone application multi-lingual

iphonexcodemultilingual

提问by brian

Can anyone tell me the best way to go about making an iPhone application support multiple languages? I am going to put separate versions for each language in the App Store, but what is the best way to represent this in Xcode?

谁能告诉我使 iPhone 应用程序支持多种语言的最佳方法?我将在 App Store 中为每种语言放置单独的版本,但是在 Xcode 中表示它的最佳方式是什么?

回答by August

Putting a separate app in the store for each language is NOT the way to go. The iPhone SDK handles multiple languages with grace, and you only need to have a single app with all the various translations. The iPhone's locale setting will direct your app as to which language to use.

为每种语言在商店中放置一个单独的应用程序并不是要走的路。iPhone SDK 可以优雅地处理多种语言,您只需要拥有一个包含所有各种翻译的应用程序。iPhone 的区域设置将指导您的应用程序使用哪种语言。

回答by keremk

A good place to start is here.

这里是一个很好的起点。

回答by Thomas Tempelmann

I haven't done iPhone dev yet, but "normal" Cocoa apps use ".lproj" strings files for different languages. See the docs about those, that should help. Good luck.

我还没有完成 iPhone 开发,但“普通”Cocoa 应用程序使用不同语言的“.lproj”字符串文件。查看有关这些的文档,应该会有所帮助。祝你好运。