升级iOs 9 + Xcode 7破坏了iOS本地化 [英] iOS localization is broken with the upgrade iOs 9 + Xcode 7

查看:71
本文介绍了升级iOs 9 + Xcode 7破坏了iOS本地化的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用Localizable.strings文件和NSLocalizedString macro用意大利语和英语本地化了我的应用程序.我还启用了base localization.在模拟器中以及在装有iOS 8的设备上,一切正常,但在iOS 9上,该应用程序始终为英语,即使在iPhone设置中将意大利语设置为默认语言的设备上也是如此. iOS 9是否会通过本地化更改某些内容?

I localized my app in Italian and English, using the Localizable.strings file and the NSLocalizedString macro. I also enabled base localization. Everything works fine in the simulator and on devices with iOS 8, but on iOS 9 the app is always in english, even on devices with the italian language selected as default in the iPhone settings. Does iOS 9 changes something with localization?

这是Xcode本地化设置的屏幕截图

Here's a screenshot of the Xcode localization settings
1

以及用于测试的设备

And of the device used for testing

预先感谢

推荐答案

已解决,问题"是info.plist文件中的关键本地化本机开发区域".它设置为意大利,因此当该应用在默认使用意大利语言的设备上运行时,它会显示字符串的基本本地化版本(英语版本). 将值更改为美国即可解决此问题.

Solved, the "problem" was the key "Localization native development region" in the info.plist file. It was setted to Italy, so when the app was running in a device with the Italian language as default it was showing the Base localization version of the strings (the English version). Changing the value to United States solved the issue.

这篇关于升级iOs 9 + Xcode 7破坏了iOS本地化的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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