得到的CultureInfo当前语言 [英] Get current language in cultureinfo

查看:121
本文介绍了得到的CultureInfo当前语言的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何使用的CultureInfo识别操作系统的语言?外汇。如果在Windows操作系统的语言设置为法语,我需要确定法语和放大器;加载FR资源文件中的数据。

How to identify the operating system's language using CultureInfo? for ex. if in the windows OS the language is set to French, i need to identify french & load the fr resource files data.

感谢。

推荐答案

我认为像这样会给您当前CultureInfo:

I think something like this would give you the current CultureInfo:

CultureInfo currentCulture = Thread.CurrentThread.CurrentCulture;



这就是你要找的?

Is that what you're looking for?

这篇关于得到的CultureInfo当前语言的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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