简体   繁体   English

手动设置UI语言?

[英]Manually set UI Language?

Is there any way to manually or programmaticaly set the UI Language so that in my tests I can get a different results from GetUserDefaultUILanguage? 有什么方法可以手动或以编程方式设置UI语言,以便在测试中可以从GetUserDefaultUILanguage获得不同的结果? Or anyone know the settings within Windows where I can change this? 还是有人知道Windows中可以更改此设置的设置?

如果您在vista / win7上进行测试,请安装其他语言包(Windows Update->可选的Extras)并热切换为其他语言。

Starting from Vista this is a standard feature (for XP there was special Multilingual MU) version. 从Vista开始,这是一个标准功能(对于XP,它具有特殊的Multilingual MU)版本。

Choose "Regional and language Options" from the Control panel and then go to the "keyboards and languages" Tab. 从控制面板中选择“区域和语言选项”,然后转到“键盘和语言”选项卡。 In the lower part of it you can add additional UI languages and select one of the installed ones. 在它的下部,您可以添加其他UI语言并选择一种已安装的语言。 After choosing a different UI Language you must log off and log on again to see the results (No reboot needed though). 选择其他UI语言后,您必须注销并再次登录以查看结果(尽管无需重新启动)。 Then you see the whole Windows GUI n the whatever selected language. 然后,无论选择哪种语言,您都会看到整个Windows GUI。

To truly test the customer it's best not to mess around with the setting and actually get a copy of windows in a different language. 要真正测试客户,最好不要弄乱设置,而实际上要获得另一种语言的窗口副本。 This is the approach I finally decide on. 这是我最终决定的方法。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM