Home Overview Localization of PE32/PE32+ files - Localized files
Localization of PE32/PE32+ files - Localized files PDF Print E-mail
Article Index
Localization of PE32/PE32+ files
Resources
Hard-coded strings
Dialog resources
Menu resources
Localization methods
Resource library
Localized files
Selecting a localization method
All Pages

Localized files

A localized file is a copy of the original PE file with edited resources. This file can contain resources in several languages (multilingual file).

Creation of localized files allows the user to localize hard-coded strings. However the file can contain data of only one language.

The name of a localized PE file is the same as the name of an original file.

You can add extra sections to a PE file. It occurs in the following cases:

  1. The size of data in localized resources exceeds the size of data in original resources and there is no opportunity to relocate data located in a PE file after resource data. As a result, a new section is added to the end of a file, and localized resources are saved to this section. References to resources are corrected according to the new location of this data (If the size of localized resources is smaller than the size of original resources, the empty space if filled with nulls).
  2. The translation of one or more relocated hard-coded strings exceeds the size of an original string. A new section with the attribute of initiated data is added to the end of file; the translated string is relocated to this section, references to the string are corrected.

As the program creates a PE file, it can update the field of the controlled sum, which is contained within the structure inside a file. The structure is called “Optional Header”. This field is updated if its value in the original file was not equal to 0.