Library - Translated

From RAD Studio
Jump to: navigation, search

Go Up to Delphi Options


Tools > Options > Language > Delphi Options > Library - Translated

To provide flexible language support for localized lib directories for Delphi, RAD Studio introduces the new language-specific subdirectories under the LIB directory.

Use this page to specify directories, compiler and linker options for all translated packages.

Item Description

Selected Platform

Specifies the target platform to which the settings on this page are to apply. For example, if you select macOS, the paths and directories apply to the macOS platform.

The fields are preloaded with the specific paths and directories for each supported target platform. You can choose among the platforms that are enabled for the current project.

Translated Library path

Specifies the search paths where the compiler can find the source files for the translated package. The compiler looks for the translated .dcu (Win32) files in the given path before looking in the English-translated release unit file. The compiler can find only those files that exist on the library path. If you try to build your package with a file that is not on the library path, you get a compiler error.

Translated Debug DCU path

Specifies the path for the Delphi-compiled unit used for debugging. To use this option, you must set Use debug .dcus to True on the Project > Options > Delphi Compiler > Compiling > Debugging page. When this option is set and a path is given, the compiler looks for the translated .dcu (Win32) files in this path before looking in the English-translated debug unit file.

Translated Resource path

Specifies search paths where the compiler can find the translated resource files. When this option is set and a path is given, the compiler looks for the translated .res and .dfm files in the path before looking in the English-translated resource file.

Tip: To list multiple values in an edit box, separate the values with a semicolon. Alternatively, click the ellipsis button next to each edit box to add multiple values through an appropriate dialog box. To specify operating system environment variables in an edit box, use the following syntax: $(VariableName).


Each field has a default value and is associated with a registry entry. Install sets the default value into a registry.

Field Default Value Registry

Translated Library Path

$(BDSLIB)\$(Platform)\Release\$(LANGDIR)

HKEY_CURRENT_USER\Software\Embarcadero\BDS\22.0\Library\Win32\Translate Library Path

Translated Debug DCU Path

$(BDSLIB)\$(Platform)\Debug\$(LANGDIR)

HKEY_CURRENT_USER\Software\Embarcadero\BDS\22.0\Library\Win32\Translated Debug Library Path

Translated Resource Path

$(BDSLIB)\$(Platform)\Release\$(LANGDIR)

HKEY_CURRENT_USER\Software\Embarcadero\BDS\22.0\Library\Win32\Translated Resource Path

See Also