国际化Microsoft保存对话框和消息框按钮的标题 [英] Internationalize Microsoft Save Dialog and Message box button captions

查看:110
本文介绍了国际化Microsoft保存对话框和消息框按钮的标题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我正在致力于C#Windows Form Application的国际化.

我已经使用资源文件本地化了所有应用程序字符串.

但是,即使我设置了当前的线程文化,MessageBox的确定按钮标题仍保留为英文.
另存为对话框按钮的标题也是如此.

有没有办法做到这一点.

在此先谢谢您.

Hi,

I am working on internationalization of C# Windows Form Application.

I have localized all the application strings using resource files.

But MessageBox ok button caption remain in english even if i set the current culture of thread.
Same is happening for Save as dialog button captions.

Is there any way to do this.

Thanks in advance.

推荐答案

请参见此处 [ ^ ].


没关系.那是因为这些是Windows OS控件.您当前系统的语言设置为英语.

为了验证这些警报/确认按钮的文本,请从系统的区域设置更改语言.然后,确保您在系统上安装了其他新语言的语言包.使用它.

现在,您应该能够看到本身已本地化的提示的确定",取消"等按钮.您无需为它们的代码做任何更改.
It''s ok. That is because those are Windows OS controls. Your current language settings of the system would be English.

In order to verify the text of these alerts/confirm buttons, change the language from regional settings of the system. Then make sure you have language pack of other new language installed on the system. Use it.

Now, you should be able to see the Ok, Cancel, etc buttons of prompts localized by itself. You don''t need to make any change in code for them.


这篇关于国际化Microsoft保存对话框和消息框按钮的标题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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