本地化问题 - 用户定义的语言列表 [英] Localization question - List of languages defined by user

查看:70
本文介绍了本地化问题 - 用户定义的语言列表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,我一直在研究一些关于ResourceContext对象的东西,我发现自己有一个问题。我只想了解这一点。

Hi folks, I've been studying some stuff regarding ResourceContext object and I found my self with a question. I just want to understand this.

我看到这个对象

Windows.Globalization.ApplicationLanguages.languages

Windows.Globalization.ApplicationLanguages.languages

返回语言列表。我一直都知道语言列表是用户在控制面板下定义的语言 - >时钟,语言和地区 - >语言。但是我发现了一个破坏了我理解的案例。我在列表中添加了塞尔维亚语
语言(sr-Latn-CS),但当我检查由...重新调整的数组时,我没有看到那里的sr-Latn-CS。但是我确实看到了其他语言,当我更改它在数组中反映的订单时会发生事件。

which returns a list of languages. I always understood that the list of languages is the one defined by the user under Control Panel --> Clock, Languages, and Region --> Language. But I found a case that broke my understanding. I added the Serbian Language (sr-Latn-CS) in the list but when I check the array retuned by ...ApplicationLanguages.languages I don't see the sr-Latn-CS over there. But I do see other languages that I included and event when I change the orders it gets reflected in the array.

我的假设错了吗?那..ApplicationLanguages是控制面板下的语言列表?

Was my assumption wrong? that ..ApplicationLanguages is the languages list under Control Panel?

提前致谢

推荐答案

是的。您所做的假设是错误的,它是关于您的应用程序支持的语言,而不是设备。

Yes. The assumption which you made is incorrect it is about the supported languages of your app and not device.

对于您可能使用的设备:  Windows.System.UserProfile.GlobalizationPreferences.languages;

For device you may use : Windows.System.UserProfile.GlobalizationPreferences.languages;

希望它有所帮助....

Hope it helps ....


这篇关于本地化问题 - 用户定义的语言列表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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