我想使用C#更改OS的语言. [英] I want to change the language of OS using C#.

查看:102
本文介绍了我想使用C#更改OS的语言.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在c#

推荐答案

Don''t中使用SetLocaleinfo()更改操作系统的语言.即使可以(并且SetLocaleinfo不能这样做,它在文档中也非常明确地指出: ^ ]),如果这样做的话,会让自己变得非常非常不受欢迎.我的PC设置为可以使用英语工作,因为我希望使用英语,所以我连接了英语键盘(在我旁边的架子上还有西班牙文,比利时文和德文的键盘),并且我想使用英语.如果您的软件对此进行了更改,它将被卸载,删除并上下跳跃.然后,我会想找回我的钱,否则我将无法追捕并杀死您.

如果您确实想关闭用户,请弄乱他们的全局设置.
Don''t. Even if you could (and SetLocaleinfo doesn''t do that, it says so very specifically in the documentation: MSDN[^]) you would make yourself very, very unpopular if you did. My PC is set up to work in English, because I want it in English, I have an English keyboard connected (and Spanish, Belgian and German ones on the shelf beside me) and I want to use English. If your software changed that, it would be uninstalled, deleted and jumped up and down on. I would then be looking to get my money back or failing that hunt you down and kill you.

If you really want to p@ss your users off, mess with their global settings.



这篇关于我想使用C#更改OS的语言.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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