如何更改系统语言 [英] How can i change System Language

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

问题描述


如何更改系统语言(Alt + Shift)?

谢谢

Hi
How can i change System Language ( Alt+Shift ) ?

Thank you

推荐答案

^ ]


我强烈建议您不要在操作系统级别上执行此操作.您的用户随时都知道使用哪种语言.而且,没有人应该配置系统选项,例如一组输入语言和用于切换它们的键盘快捷键.它不必是Alt + Shift.仅应允许用户或受用户信任的系统管理员来执行此操作.简单的安全性问题和简单的常识决定了它.

但是,如果您如此固执地忽略了此建议,则可以尝试使用P/Invoked Windows API SendInput,请参阅 ^ ].您也可以通过WMI进行操作. 不要这样做!

相反,您可以只为应用程序选择输入语言.这样会更好,但我也不推荐这样做.


使用表单,您可以切换输入语言,但只能针对您的应用程序,这可能对您更好:
I would strongly recommend you refrain from doing it at the level of OS. Your user knows better what language to use at every moment. Moreover, nobody should configure system options like a set of input languages and keyboard shortcut for switching them. It does not have to be Alt+Shift. Only the user or a system administrator trusted by a user should be allowed to do it. Simple security issues and simple common sense dictate it.

However, if you are so stubborn to ignore this advice, you can try P/Invoked Windows API SendInput, see http://msdn.microsoft.com/en-us/library/windows/desktop/ms646310%28v=vs.85%29.aspx[^]. You can do it via WMI as well. Don''t do it!

Instead, you can select the input language just for your application; this is much better, but I would not recommend it, too.


With Forms, you can switch input language, but only for your application, which might be much better for you:
Windows.Forms.InputLanguage.CurrentInputLanguage = someLanguage;


请参阅 http://msdn.microsoft.com/en-us/library/system .windows.forms.inputlanguage.aspx [ ^ ].

使用WPF,可以将类System.Windows.Input.InputLanguageManager用于相同的目的.请参阅 http://msdn.microsoft.com/en-us/library/system .windows.input.inputlanguagemanager.aspx [ ^ ].

—SA


See http://msdn.microsoft.com/en-us/library/system.windows.forms.inputlanguage.aspx[^].

With WPF, you can use the class System.Windows.Input.InputLanguageManager for the same purpose. See http://msdn.microsoft.com/en-us/library/system.windows.input.inputlanguagemanager.aspx[^].

—SA


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

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