Outlook 版本语言 [英] Outlook Version language

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

问题描述

我正在开发 Outlook 2007 插件.
我如何知道outlook语言(英语或法语版本..)

I am developing an outlook 2007 add in.
How can i know the outlook language(English or French version..)

推荐答案

您可以通过多种方式来执行此操作.尽管确切的过程取决于 Exchange 服务器版本,但 MAPI 客户端(在本例中为 Outlook)会将用户信息存储中的 PR_LOCALE_ID 属性设置为 MAPI 客户端 (Outlook) 在此期间运行的区域设置 (LCID) 的 ID.登录.

There are a number of ways you can go about doing this. Although the exact process depends on the Exchange server version, a MAPI client (Outlook in this case) will set the PR_LOCALE_ID property in the user's information store to the ID of the locale (LCID) in which the MAPI client (Outlook) is running during logon.

这可能对您有用,也可能不适合.

That may or may not work for you.

我不确切知道 Outlook 如何确定用于 LCID 的值,因此这在具有复杂 Office 语言配置的环境中可能没有用.

I do not know exactly how the value used for the LCID is determined by Outlook, so this may not be useful in environments that have a complicated Office language configuration.

此外,PR_LOCALE_ID 属性的设置方式因您的 Exchange 版本而异.我相信在 Exchange 2007+ 中,它只会在配置文件创建和初始登录期间设置 LCID,并且不会再次触摸它,即使用户的区域设置更改.创建新配置文件是更新配置文件的唯一方法.

Also, the way in how the PR_LOCALE_ID property is set varies greatly depending on your Exchange version. I believe that in Exchange 2007+ it will only set the LCID during profile creation and initial logon, and won't touch it again, even if the user's locale changes. Creating a new profile is the only way for it to update.

我没有写过任何提供上述功能的东西,所以你的里程可能会因技术而异.

I have not written anything that provides the functionality described above, so your mileage may vary with that technique.

但是,如果您可以访问注册表,则确实有另一种选择.如果您安装了 Outlook 2007,您应该有一个名为InstalledUI"的注册表项,位于(假设是 32 位机器):

You do have another option available to you if you have access to the registry, however. If you have Outlook 2007 installed, you should have a registry key named "InstalledUI" located at (assuming 32-bit machine):

HKLM\SOFTWARE\Microsoft\Office\12.0\Common\LanguageResources\InstalledUI

如果您查看该键,您应该会看到具有该名称的 LCID 的值.您可以得出结论,系统支持出现在此处的任何 LCID.每个 LCID (REG_SZ) 的值指示语言的状态.因此,例如,如果我启用了英语,我会将名为1033"的值设置为On".

If you look in that key, you should see values that have an LCID for the name. You can conclude that any LCID appearing here is supported by the system. The values for each LCID (REG_SZ) indicate the status of the language. So, for example, I'll have a value named "1033" set to "On" if English is active for me.

希望其中一种技术对您有用.

Hopefully, one of these techniques will prove useful for you.

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

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