我在一家为日本 iOS App Store 创建应用的公司工作。我们唯一支持的语言是日语。
我们在 iTunes Connect 中选择日语作为“默认语言”,但是当我们的应用程序出现在 App Store 中时,它们会出现屏幕截图中显示的问题(语言列为英语)。
有人向我建议在 info.plist 中设置 CFBundleDevelopmentRegion 可以解决这个问题,但是我在 Apple 的文档中找不到任何关于语言/区域字符串应该采用什么格式的提及。有许多标准,其中一些标准在不同的地方(JP、JA、JPN、JAPAN、JAPANESE 等)被 iOS 随机支持,我无法通过谷歌搜索找到权威的答案。我们认为这可能是正确的
<key>CFBundleDevelopmentRegion</key>
<string>Japanese</string>
但如果有人可以确认或建议更好的答案,我们将不胜感激,因为我们不想经历反复试验的过程,因为应用商店批准需要一周时间才能获得每次尝试的结果。
请注意:这不是本地化问题。我们不想支持其他语言。我们只想将基本语言设置为日语,以便应用程序在商店中正确显示。
最佳答案
我写这个问题是因为几天前我向 Apple 发送了技术支持请求,但还没有收到任何回复。幸运的是(典型的!)在发布到 SO 后不到一个小时,Apple 做出了回应,所以我想这是权威的答案(关于没有本地化文件夹的第二部分是我们想要的):
The value of the Languages field in iTunes Store is created by scanning the localization folders in your application bundle. If you want it to show "Japanese" only in the store, you need to make sure there is only "ja.jproj" folder in your application bundle. If you don't even have any localization folder, you can select plist file of your project in Xcode, and set the "Localization native development region" by selecting "Japan" from the candidate list supplied by Xcode plist editor, by doing that the CFBundleDevelopmentRegion key will be set to "ja_JP" (language_local), you can also follow ISO 639-1 or 639-2 to use "ja" or "jan."
我会在 2 天内将此问题标记为已回答。
补充编辑:我怀疑 Apple 员工在 ISO 639-2 中指的是“jpn”,因为“jan”不是有效代码,但 jpn 是。
关于ios - 用于 App Store 显示的 CFBundleDevelopmentRegion (info.plist) 的字符串格式,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20388472/