加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

c# – 即使我在Windows中设置了“DE-CH”,为什么CurrentUICultur

发布时间:2020-12-15 22:48:10 所属栏目:百科 来源:网络整理
导读:在我的 WPF应用程序中,CurrentUICulture未被 Windows正确接管或错误地存储在Windows中. Windows中的区域和语言设置在我找到的所有地方“Deutsch(Schweiz)”.应用程序中的CurrentUICulture显示“Deutsch(Deutschland)”而不是“Deutsch(Schweiz)”.我在几台计
在我的 WPF应用程序中,CurrentUICulture未被 Windows正确接管或错误地存储在Windows中.

Windows中的区域和语言设置在我找到的所有地方“Deutsch(Schweiz)”.应用程序中的CurrentUICulture显示“Deutsch(Deutschland)”而不是“Deutsch(Schweiz)”.我在几台计算机上测试过它(有域用户和本地用户).

哪里可能是问题? Windows中有这个设置的地方很难找到吗?

重要提示:我知道我可以在应用程序中设置文化.我不需要像Thread.CurrentThread.CurrentUICulture = new CultureInfo(“de-ch”)这样的答案

我只想了解机制的工作原理以及从何处获取信息.

这里有一些来自我的Windows设置的屏幕截图:

welcome screen and new user accounts settings

region & language

advanced settings

region

谢谢,
阿德里安

解决方法

我想这是微软的“设计”.

请阅读this question.有一个非常高的评论:

Bear-in-mind that Microsoft,in their wisdom,don’t separate the UI
cultures of US English and (British) English or other Englishes.
There’s no MUI for English,which means the CurrentUICulture will
always be en-US on an English-language machine,regardless of the
CurrentCulture,which can be set to localise the Regional Settings.

虽然我不确定这些信息来自何处,但您当前的操作系统行为非常确认:您更改了区域设置(CurrentCulture),但CurrentUICulture始终保持“国家不可知”为“de-DE”(如“en-US”) “在任何”en- *“区域设置的评论中.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读