OGeek|极客世界-中国程序员成长平台

标题: ios - 是否可以仅基于区域本地化 iOS 应用名称? [打印本页]

作者: 菜鸟教程小白    时间: 2022-12-12 15:03
标题: ios - 是否可以仅基于区域本地化 iOS 应用名称?

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

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

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

例如,当首选语言设置为English (United Kingdom),但不适用于 English 区域设置为 United Kingdom

谢谢



Best Answer-推荐答案


不,目前这是不可能的

这是 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/






欢迎光临 OGeek|极客世界-中国程序员成长平台 (http://ogeek.cn/) Powered by Discuz! X3.4