iphone - 关于 iOS 本地化

标签 iphone ios localization

在以下文档中: http://developer.apple.com/library/mac/#documentation/MacOSX/Conceptual/BPInternational/Articles/LanguageDesignations.html

据说

In iOS, the bundle interfaces do not take dialect or script information into account when looking for localized resources; only the language designator code is considered. Therefore if your project includes language-specific project directories with both a language and region designator, those directories are ignored. The bundle interfaces in Mac OS X do support region designators in language-specific project directories.

这个我不是很明白。是不是说.lproj目录的名称不能包含任何地区代码?
但至少我知道 iOS 接受 zh_TW.lproj,zh_CN.lproj。 en_GB.lproj 和 en-GB_GB.lproj 怎么样?或者它只知道 en.lproj?

最佳答案

这只是意味着 iOS 将只支持两位数的语言代码(例如 en.lproj、es.lproj 等)。而 Mac OS X 将支持 Language_Region 格式(例如 en_GB、en_US 等)。

关于iphone - 关于 iOS 本地化,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5320407/

相关文章:

c# - Thread.CurrentCulture 未保存到实例变量?

ios - 属性文本中的下划线在 iPhone 6+ 中不起作用

iphone - Android Activity/Intent vs. Qt Signal/Slot vs. iPhone ?/?

iphone - 我的 NSXMLParser :( 上的更多泄漏

iphone - 查看 MPMoviePlayerController 当前是否正在播放

ios - 是否可以将文件从应用程序沙箱复制到应用程序包?

iphone - 如何在不破坏以前版本的情况下发布软件更新?

ios - SBJson 与 Facebook sdk iOS 冲突

时间:2019-03-17 标签:c#WebAPIlocalization

ios - 如何在 iOS 中使用本地化语言更改 xib