ios - 是否可以仅根据地区本地化 iOS 应用程序名称?

标签 ios xcode localization internationalization

我正在为 iOS 开发 Cordova+Ionic 应用程序的国际化版本。当前的应用程序名称是瑞典语,我想保留瑞典市场的名称,但国际应用程序将有一个新名称。

我需要该应用程序为瑞典的所有用户提供瑞典语名称,无论选择哪种语言。 是否可以仅根据地区本地化应用名称?

我知道您可以使用具有 CFBundle(Display)Name 属性的 InfoPlist.strings 资源对其进行本地化,但用于确定要使用的资源的区域设置是(如据我所知)仅基于设备的首选语言/区域设置,不考虑设备的区域设置。

例如,当首选语言设置为时,会加载 en-GB 语言环境的资源(位于 en-GB.lproj/InfoPlist.strings) 英语(英国),但不适用于区域设置为英国英语

谢谢

最佳答案

不,目前这是不可能的

这是 documentation 的摘录:

First, the bundle determines which localization to use for the application as a whole. If a .lproj folder exists for the preferred language, that localization is used. Otherwise, the bundle searches for an .lproj folder matching the next preferred language, and so on, until one is found. If there is no localization for a preferred language, the bundle chooses the development language localization.

关于ios - 是否可以仅根据地区本地化 iOS 应用程序名称?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29564335/

相关文章:

ios - 没有固有内容大小的 UIViews 的拥抱/压缩?

ios - Safari 无法打开页面,因为地址无效

ios - CollectionView水平滚动约束问题

iphone - 排除 iPhone3GS 及以下版本下载我的应用程序

ios - UNUserNotificationCenter.current().getDeliveredNotifications 只返回一个空数组

iphone - 滚动 uitableview 时 UIProgressView 被隐藏

objective-c - 将 Ipad xib 拉入通用 App

ios - Storyboard + 基本本地化 + .strings 文件在运行时未本地化

c# - 通过 ITextSharp 从波斯语 html 文件创建 pdf

c - 使用逗号和点来表示十进制数