更改操作系统的用户界面语言 [英] Change Operating System UI Language

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

问题描述

我们如何更改操作系统UI语言.C#或C ++中是否有可以更改操作系统UI语言或任何其他方式(例如注册表)的API,注册表中有一个位置我们可以从中更改操作系统的文件 UI语言,但由于某种原因,系统崩溃了,我无法找出问题.我更改的键是HKEY_CURRENT_USER \ Control Panel \ Desktop \ PreferredUILanguages(在系统中安装了多种语言时),当我转到区域时 和语言设置并更改语言,然后更改相同的注册表值,但是当我直接通过代码更改注册表值,然后在重新启动系统时,语言更改了,但某些dll损坏了.

How can we change Operating System UI Language.Is there any API in C# or C++ by which I can change Operating System UI Language or any other way to do it (like registry).There is one location in Registry file from which we are able to change Operating System UI Language but due to some reason system crashed and i am no able to find out problem. The key which i changed was HKEY_CURRENT_USER\Control Panel\Desktop\PreferredUILanguages (when multiple languages are installed in the system) and also when i go to regional and language settings and change the language then same registry value changes but when i change registry value through my code directly then on restarting system, language is changed but some dll gets corrupted.

有人可以帮我吗?

 提前感谢

推荐答案

没有支持以编程方式更改UI语言的方法.如您所见,用户可以通过区域"和语言"选项选择更改其用户UILanguage-但是,当他们这样做时,所涉及的工作比更改此注册表要多得多. 值.

There is no supported way to programmatically change the UI Language.  The user can choose to change their User UILanguage via their Regional and Language options as you have seen - but when they do this, much more is involved than changing this registry value.


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

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