13.07.2012 17:49, Joost van der Sluis пишет:
Hi all,

I'm using the DefaultTranslator unit to translate my application, but I
would also like to switch to another language on-the-fly, thus without
restarting the application.

Are there any tricks to do that?

DefaultTranslator unit is quite simplistic and more meant to be an example.

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. Also there is a number of program sources to look at bundled with Lazarus, e. g. lazarus\tools\lazdatadesktop (see TranslateStrs procedure at the end of frmmain.pp).

--
Best regards,
 Maxim Ganetsky                  mailto:[email protected]



--
_______________________________________________
Lazarus mailing list
[email protected]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to