| Localization of PE files Delphi/C++ Builder |
|
|
|
JPAGE_CURRENT_OF_TOTAL The compiler and design environment in Delphi/C++ Builder allow the user to create PE files and localize created files. Besides standard resources, Delphi/C++ Builder places resources of VCL forms, frames and data modules into RC_DATA[#10] resources. PE files of this type are supported by two parsers:
The parsers help to add data to VCL resources correctly. The type of the parser is chosen automatically when a file is added to the project. The user can also choose it manually in the File Properties dialog. If the parser is chosen incorrectly, localized files may fail to work properly. There are several localization projects for PE files of Delphi/C++ Builder in demo samples. “Resourcestring” stringsStrings that need localization are placed to resources in a Delphi project. They must also be declared in the resourcestring section: resourcestring
There is no need to create RC files that contain string resources. This method is not recommended at all because it may cause conflicts with other libraries and components. The compiler determines which strings from the resourcestring sections are used and packs them to RT_STRING[#10] resources. Along with this, the compiler builds the DRC file with a list of strings, their indexes and unique names (creation of DRC files is permitted by the Detailed Map option in the properties dialog of a Delphi project). This file is important to update a Radialix project correctly when a new version of a localized file is available. RT_STRING[#10] strings in resources of a PE file are identified by index. The order and indexes of strings can change a lot even if changes in source texts are minor, or a localized application is recompiled. This happens because the compiler forms the order and indexes of strings automatically. Radialix 2 cannot match strings and handles them as edited when it updates resources. As a result, the user has to restore a part of the translation using auto-translation or manually (translations of modified strings are saved to memory of deleted translations). If the DRC file is connected, strings in RT_STRING[#10] will be assigned names, and resources will be updated correctly. The name of the DRC file is specified on the Source Settings tab in the File Properties dialog. |