如何在winforms中更改opendialog的语言? [英] how to change the language of opendialog in winforms?

查看:98
本文介绍了如何在winforms中更改opendialog的语言?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我编写了一个程序和wnat以获得以我的语言打开的opendialog
我尝试更改文化ui,但不会改变英语版式
有人知道如何更改吗?

i write a program and wnat to get the opendialog that open in my language
i try to change culture ui but it doesn't cahnge the english layout
can someone know how to change it?

OpenFileDialog openFileDialog1 = new OpenFileDialog();

推荐答案

OpenFileDialog是本机Windows对话框的包装.例如,当您使用记事本的File + Open命令时,您也会看到它.

OpenFileDialog is a wrapper for a native Windows dialog. You'll also see it when you use Notepad's File + Open command for example.

所有本机Windows窗口均由Windows自身内置的资源表本地化.它们非常大,大约有半GB的磁盘存储空间.用户将获得与Windows语言版本相匹配的版本.因此,例如,德语用户将获得Windows的德语版本并获取德语的资源表.

All native Windows windows are localized by the resource tables that are built into Windows itself. They are quite large, about half a gigabyte of disk storage. The user will get the ones that match the language version of Windows. So, say, a German user will have obtained the German language version of Windows and gets the resource tables for German.

因此,您将始终看到与您的母语版本匹配的字符串. Thread.CurrentUICulture属性无效.这绝不会使用户感到困惑.

So, you'll always get to see the strings that match your native language version. The Thread.CurrentUICulture property has no effect. This never confuses a user.

例如,如果您需要本地化的对话框来制作屏幕截图,则需要获取本地化的Windows版本,则可以通过MSDN订阅获得它们.或者,您可以获取Windows Ultimate英文版的许可证.支持可下载的语言包,支持可切换的语言.您可以通过更改控制面板"的区域"小程序中的语言"来实现.

If you need localized dialogs to make screenshots for example then you need to obtain the localized Windows version, you can get them with an MSDN subscription. Or you can obtain a license to the English version of Windows Ultimate. Which supports downloadable language packs which supports switching languages. You do so by changing the Language in the Control Panel's Region applet.

这篇关于如何在winforms中更改opendialog的语言?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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