[Lazarus] DefaultTranslator

Maxim Ganetsky ganmax at narod.ru
Fri Aug 20 01:05:38 CEST 2010


20.08.2010 2:46, patspiper пишет:
> On 08/19/2010 12:53 AM, Maxim Ganetsky wrote:
>> It translates the whole form, but resourcestrings you should translate
>> manually.
>>
> Should this be considered a shortcoming of the default translator that
> will eventually be fixed?

No. Resourcestrings are initialized per unit (unit name is required for 
this process), and DefaultTranslator knows nothing about your unit names.

Initializing resourcestrings is simple. See translations.pas header or 
http://wiki.lazarus.freepascal.org/Translations_/_i18n_/_localizations_for_programs 
.

> The default translator checks the environment variable LANG and even
> allows you to override the system language using the --lang parameter. I
> vote for having the default translator handle resource strings the same
> way.

See above.

-- 
Best regards,
  Maxim Ganetsky                  mailto:ganmax at narod.ru




More information about the Lazarus mailing list