开发者

Microsoft Office Plugin Language

开发者 https://www.devze.com 2023-03-09 03:29 出处:网络
I\'m developing a Word plugin and I\'d like to set the language layout depending on the Word language.

I'm developing a Word plugin and I'd like to set the language layout depending on the Word language.

I have two CustomUI xml which will be returned depending on the Word language.

For that I'm checking the language with:

System.Globalization.CultureInfo.CurrentCulture.DisplayName.Substring(0, 2).ToUpper()

The problem is that it always returns (PO)...it's Portuguese...even开发者_开发百科 when I change, in the Word options, everything to English. On the other hand, If I use CurrentUICulture returns EN (English) always.

I'd like to know how to resolve the issue.

Thanks in advance


The active language pack that the user selected is independent of the system default language. You'll need to use the Application.Language property.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号