找出语言窗口安装为 [英] Find out the language windows was installed as

查看:85
本文介绍了找出语言窗口安装为的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我遇到了一个问题,即用户设置的语言环境(德语)与语言Windows"的安装语言(英语)不同.有没有一种方法可以发现安装了哪种语言的窗口以及用户设置了哪种语言环境? 我应该注意的问题是我正在创建共享,并且我根据语言环境设置了权限,因此,如果用户已将语言环境设置为德语,则所有人"的权限为杰德",但是如果操作系统设置为英语,则将失败,因为该不是杰德"的ID

I have a problem where the user has set their locale (German) which is different that the Language Windows was installed as (English). Is there a way to discover what language windows was installed to use vs. what locale the user has set? I should note the issue is I am creating a Share and I set the permissions based on the Locale so if the User has set the Locale to German the permission for "Everyone" is "Jeder" but if the OS is setup for English this will fail since the is not an Id for "Jeder"

谢谢

推荐答案

Windows具有"UserLanguage"和"SystemLanguage"的概念.您要的是SystemLanguage.知道了,您将得到正确的答案.

Windows has the concept of the "UserLanguage" and the "SystemLanguage". What you are asking for is the SystemLanguage. Get that, and you'll have the correct answer.

更新:您想要的Win32函数是GetSystemDefaultUILanguage()

Update: The Win32 function you want is GetSystemDefaultUILanguage()

检索以下语言的语言标识符 的系统默认UI语言 操作系统,也称为 Windows Vista上的安装语言" 及以后.

Retrieves the language identifier for the system default UI language of the operating system, also known as the "install language" on Windows Vista and later.

http://msdn.microsoft.com/en -us/library/dd318123(VS.85).aspx

请注意,Windows Installer可以查询属性"SystemLanguageId". (以防您对Instller感兴趣)

Note that Windows Installer can query the property "SystemLanguageId". (in case you're interested from an instller point of view)

这篇关于找出语言窗口安装为的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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