Home Overview Localization of PE32/PE32+ files - Hard-coded strings
Localization of PE32/PE32+ files - Hard-coded strings 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

Hard-coded strings

If an application does not support localization with the help of resources or supports it partially, then some strings that need to be localized can be in the code, or code data of a PE file. These strings are called hard-coded. You can configure the settings related to extraction of hard-coded strings in the File Properties dialog on the Hardcoded Strings tab.

Hard-coded string settings

When you add a new PE file to the project, extraction of hard-coded strings is disabled by default. You can enable or disable extraction of strings as you start editing resources. Modified settings take effect as soon as you have updated resources. Radialix will suggest you to update resources when you close the File Properties dialog.

The program extracts the following types of strings:

  • Pascal - strings that have the “string” type in Delphi
  • Pascal Wide - strings that have the “widestring” type in Delphi
  • Pascal Short - strings that have the “shortstring” in Delphi
  • UNICODE - strings in UNICODE (2 bytes per character) that end with a null
  • ASCII - strings in ANSI (1 byte per character) that end with a null

As the program searches for hard-coded strings, it can find data that resembles strings but not real strings. Filters can help you reduce the number of false strings. Filter settings can be configured on the Hard-coded Strings tab in the File Properties dialog. Radialix 2 can also find strings that must not be edited because they influence the  performance of an application. Therefore the status of hard-coded strings is set to "Read-only" after extraction to avoid undesirable changes. To make strings editable, you need to select the required string and remove the "Read-only" status. You must decide yourself whether to edit a string or not, and after creating localized files, it is necessary to make sure the application runs well.

Extracted strings are placed to relevant sections in the ~HARDCODED resource type.