为什么CurrentUICulture.DisplayName说“英语(美国)",而不是“英语(英国)"? [英] Why does CurrentUICulture.DisplayName say "English (United States)" and not "English (United Kingdom)"?

查看:55
本文介绍了为什么CurrentUICulture.DisplayName说“英语(美国)",而不是“英语(英国)"?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在英国,我有一个在英国购买的 Windows 7 版本,我可能找到的所有设置都设置为英国(不是美国).当我运行以下代码时:

I'm in the UK, and I have a UK-bought version of Windows 7, with all settings I can possibly find set to UK (not US). When I run the following code:

Console.WriteLine(Thread.CurrentThread.CurrentUICulture.DisplayName);
Console.WriteLine(Thread.CurrentThread.CurrentCulture.DisplayName);

输出为:


English (United States)
English (United Kingdom)

我不知道为什么第一个说美国.我本打算在关于"窗口中添加它(以帮助调试多语言问题),但是这让我有些困惑!

I can't figure out why the first one says United States. I was going to include this in my about window (to help debug multi-lingual issues), but it's gotten me a bit confused!

有人知道为什么不说英国吗?

Anyone know why it doesn't say UK?

推荐答案

默认情况下 CurrentUICulture属性由Windows MUI设置驱动.

MUI是一种方案,其中OS的语言以特定的语言显示,并且与数字和日期格式之类的东西分开.英国佬没有得到我们自己的Windows UI翻译...

MUI is the scheme whereby the language of the OS is displayed in a specific language and is separate from things like number and date formats. Brits don't get our own translation of the Windows UI...

这篇关于为什么CurrentUICulture.DisplayName说“英语(美国)",而不是“英语(英国)"?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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