开发者

Language Attribute for C++/CLI assembly

开发者 https://www.devze.com 2023-04-01 07:21 出处:网络
My C++/CLI assembly shows Langauge as Engl开发者_开发技巧ish (United States) (right click assembly > chose properties > Details tab)

My C++/CLI assembly shows Langauge as Engl开发者_开发技巧ish (United States) (right click assembly > chose properties > Details tab)

I tried, changing following, but it is not changing at all. I am not sure where this value is being populated from.

AssemblyInfo.cpp

[assembly: NeutralResourcesLanguageAttribute("en-US")];

app.rc

  BLOCK "StringFileInfo"
  BEGIN
     BLOCK "040904B0"

Changing the 0409 to something else does not change the Language value in the details tab.

Help is appreciated.


You must be talking about the Details tab in the shell properties window. It can only display unmanaged properties, they are not relevant in managed code. The Language property is set by this section in the VERSIONINFO resource:

BLOCK "VarFileInfo"
BEGIN
    VALUE "Translation", 0x409, 1200
END

Altering in the 0x409 value to the LCID of another language also changes the displayed Language in the shell property sheet.

0

精彩评论

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

关注公众号