[Lazarus] Changing the translation of forms while the program is running

Maxim Ganetsky ganmax at narod.ru
Sun Jul 15 15:39:15 CEST 2012

15.07.2012 15:35, Sven Barth пишет:
> On 15.07.2012 12:24, Maxim Ganetsky wrote:
>> 15.07.2012 13:53, Bart пишет:
>>> On 7/13/12, Maxim Ganetsky <ganmax at narod.ru> wrote:
>>>> In order to translate your application dynamically you should manually
>>>> load .po files at runtime using functions (e. g.
>>>> TranslateUnitResourceStrings) from Translations unit. See its header
>>>> for
>>>> examples.
>>> And you'll have to update all captions of all controls on the current
>>> form (at least) in order to see the effect.
>>> The IDE seems to do this, but I was unabble to track how.
>>> Manually updating all captions seems a horrible task to maintain.
>> ?
>> IDE can update .po files automagically. See Project Options -> i18n.
> Bart's remark was about the IDE updating it's own forms when the user
> changes the language of the IDE.

Then see Mattias' remark.

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

More information about the Lazarus mailing list