为什么我的CurrentCulture EN-GB和我的CurrentUICulture的en-US [英] Why is my CurrentCulture en-GB and my CurrentUICulture en-US

查看:184
本文介绍了为什么我的CurrentCulture EN-GB和我的CurrentUICulture的en-US的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有具有对不同文化设置的机器上运行C#应用程序。没问题,我想,它只会查找在启动时电流文化是在机器上什么,对我做的一切。哦,不,它会缝的东西是不完全正确。

I have a C# application which has to run on machines with different culture settings. No problem I thought, it will just lookup on start up what the current culture is on the machine, and do everything for me. Well no, it would seam that something is not quite right.

我有一个Windows XP的机器一切都在区域和语言选项设置为英语(美国),但是当我的应用程序启动时,它报告说我的CurrentCulture是EN-GB和我的CurrentUICulture为en-US。

I have a Windows XP machine with everything in Regional and Language options set to English US, yet when my application starts up it reports that my CurrentCulture is en-GB and my CurrentUICulture is en-US.

我怎样才能得到我的程序只使用任何的PC设置为?

How can I get my program to just use whatever the PC is set to ?

这是,如果这有什么差别Windows服务应用程序。

This is a Windows Service application if it makes any difference.

感谢

推荐答案

一个Windows服务通常不会你UserAccount下运行,那么它什么都无所谓的的区域设置。这是关于系统帐户的区域设置。我猜你运行Windows的 EN-GB 版本和系统帐户仍然使用了。

A Windows Service usually doesn't run under your UserAccount and then it doesn't matter what your regional settings are. It's about the regional settings of the System account. I'm guessing you run a en-GB version of Windows, and the system account still uses that.

有办法获得该帐户,检查超级用户。

There are ways to get at that account, check SuperUser.

这篇关于为什么我的CurrentCulture EN-GB和我的CurrentUICulture的en-US的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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