[Overview][Index] Reference for unit 'DefaultTranslator' (#lcl)

Reference for unit 'DefaultTranslator'

Performs string translations using the language selected for the project.

uses

  LCLTranslator;

  

Performs string translation in the Lazarus IDE and LCL.

Overview

defaulttranslator.pas performs string translations using the default I18n and L10n translation facilities in the Lazarus IDE and LCL. This unit does not contain any code other than the initialization section in the unit. It calls the SetDefaultLang routine to specify that the default language identifier for the project is used.

To enable automatic string translation, use this unit in your application and check the Enable i18n option in the Project > Project Options > i18n screen. If you want translation to be performed using a specific language identifier, use the LCLTranslator unit instead.

For more information, see the Lazarus Wiki article: Creating Multi-Language Applications


Version 3.2 Generated 2024-02-25 Home