且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何在xcode 5和ios 7中设置默认语言环境?

更新时间:2023-09-14 10:33:22

iOS设备会跟踪您将语言环境设置为的语言。如果应用程序中不支持当前选定的区域设置,则设备将使用应用程序支持的上次用户选择的语言。

An iOS device keeps track of which languages you have set the locale to. If the currently selected locale is unsupported in an app, then the device will use the last user-selected language you used that is supported by the application.

例如,想象你已经将设备改为英语,然后是意大利语,然后是西班牙语。该应用程序将首先尝试提供西班牙语本地化。如果没有,它会尝试意大利语。如果 不可用,那么它最终将使用英语。

So for example, imagine you had changed your device to English, then Italian, then Spanish. The app would first try and provide a Spanish localization. If one wasn't available, it would attempt Italian. If that wasn't available, then it would finally use English.

如果您在设备的设置中查看语言列表,那么''我们会看到它们是按上次使用排序的。我不知道有任何方法可以改变这个(看似有意的)功能。

If you view the list of languages in the device's Settings, you'll see that they're ordered by 'last used'. I'm not aware of any way to alter this (seemingly intentional) feature.