Apple Watch 基础本地化显示错误的默认语言 [英] Apple Watch base localisation shows wrong default language

查看:30
本文介绍了Apple Watch 基础本地化显示错误的默认语言的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个应用程序本地化为三种语言(简体中文、法语和捷克语),其中英语作为开发语言.

I have an app localised in three languages (Simplified Chinese, French and Czech) with English as the development language.

虽然本地化在 iPhone 上运行良好,但 Apple Watch 存在一个问题:如果用户将 Watch 语言设置为英语/法语/中文/捷克语以外的任何其他语言,则内容将显示为中文英语(应该是默认设置).

While the localisations work perfectly on the iPhone, there is an issue with the Apple Watch: If a user has set the Watch language in any other language than English/French/Chinese/Czech, then the content is shown in Chinese instead of English (that should be the default).

根据此技术说明:

如果您的应用不支持用户的首选语言,iOS 会选择与您的应用的开发区域匹配的语言 (CFBundleDevelopmentRegion).

If none of the user’s preferred languages are supported by your app, iOS chooses the language matching your app's development region (CFBundleDevelopmentRegion).

注意:请务必为您的应用设置CFBundleDevelopmentRegion.如果您采用 Base Localization,请确保CFBundleDevelopmentRegion 匹配您的内容使用的语言Base.lproj 文件夹.

Note: Be sure to set CFBundleDevelopmentRegion for your app. If you adopt Base Localization, make sure that the value of CFBundleDevelopmentRegion matches the language used by your content in the Base.lproj folder.

我已确认满足上述两个要求(CFBundleDevelopmentRegion="en" 和所有 Base.lproj 文件确实是英文的).有什么我想念的吗?同样,这仅适用于 Watch 应用,而不适用于 iPhone 应用.

I have confirmed both the above requirements are being satisfied (CFBundleDevelopmentRegion="en" and all Base.lproj files are indeed in English). Is there something I'm missing? Again, this happens only for the Watch app and not for the iPhone one.

推荐答案

来自 https://developer.apple.com/library/content/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html#//apple_ref/doc/uid/20001431-130430 , CFBundleDevelopmentRegion 是语言和区域,例如en-US,不只是 en.

From https://developer.apple.com/library/content/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html#//apple_ref/doc/uid/20001431-130430 , CFBundleDevelopmentRegion is the language and region, e.g. en-US, not just en.

这篇关于Apple Watch 基础本地化显示错误的默认语言的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆