Version info VarFileInfo block translation language does not match resource language

ID PE037 Level WARNING Category Configuration

Description

Version information contains a VarFileInfo block with the particular translation language and character set ID. Version information itself is placed in the executable resource directory under the entry with another language ID. In this executable, VarFileInfo translation language ID does not match the corresponding resource language ID.

Mitigation

If using Visual C++:

  • Make sure the VarFileInfo language is set correctly.
  • Make sure you include the VERSIONINFO structure in the resource with the same language code. See the LANGUAGE statement reference for rc files.

Arguments

This rule has the following output arguments:

  • resource_lang - Affected VERSIONINFO resource language integral code
  • resource_lang_tag - Affected VERSIONINFO resource language tag (e.g. en, nl-NL or en-US)
  • resource_lang_location - Affected VERSIONINFO resource language location (e.g. Spain, neutral or process_default)
  • translations_lang - Affected VERSIONINFO VarFileInfo block language integral code
  • translations_lang_tag - Affected VERSIONINFO VarFileInfo block language tag (e.g. en, nl-NL or en-US)
  • translations_lang_location - Affected VERSIONINFO VarFileInfo block language location (e.g. Spain, neutral or process_default)