How is CultureInfo.CurrentCulture determined?

梦想与她 提交于 2019-12-11 06:52:44

问题


I have a computer in Israel. I deployed an MVC website to the computer's IIS. In this website I show the CultureInfo.CurrentCulture (for my needs) and it shows "he-IL".

I changed:

Control Panel > Region and Language > Formats

to English (US).

Also I changed

Control Panel > Region and Language > Administrative > System Locale

to English (US) and of course restarted the computer.

But CultureInfo.CurrentCulture still shows me "he-IL"!

How can I change it without touching the code - only by setting or changing the system? (Windows 7)

I need to be dynamic and not hard-coded.

来源:https://stackoverflow.com/questions/26583257/how-is-cultureinfo-currentculture-determined

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!