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

2012-07-15 Thread Mattias Gaertner
On Sun, 15 Jul 2012 23:58:32 +0200 Bart wrote: > On 7/15/12, Mattias Gaertner wrote: > > > The IDE forms set all captions when creating. See the FormCreate events. > > The maintenance work is near zero. > > Theoretically the code could be put into methods and triggered when the > > language cha

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

2012-07-15 Thread Bart
On 7/15/12, Mattias Gaertner wrote: > The IDE forms set all captions when creating. See the FormCreate events. > The maintenance work is near zero. > Theoretically the code could be put into methods and triggered when the > language changes. This works well if you create all forms on the fly I g

Re: [Lazarus] String replace bug (in Delphi it's OK)

2012-07-15 Thread Bart
On 7/15/12, silvioprog wrote: > Hi, > > Please see here: http://bugs.freepascal.org/view.php?id=22441 It's not a StringReplace bug. It's probably the handling of LineFeeds without Carriagreturn when setting TMemo.Text that explains your results. See my note in the bugtracker. Bart -- __

[Lazarus] String replace bug (in Delphi it's OK)

2012-07-15 Thread silvioprog
Hi, Please see here: http://bugs.freepascal.org/view.php?id=22441 Thx. -- Silvio Clécio My public projects - github.com/silvioprog -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/l

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

2012-07-15 Thread Maxim Ganetsky
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 wrote: In order to translate your application dynamically you should manually load .po files at runtime using functions (e. g. TranslateUnitResourceStrings)

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

2012-07-15 Thread Sven Barth
On 15.07.2012 12:24, Maxim Ganetsky wrote: 15.07.2012 13:53, Bart пишет: On 7/13/12, Maxim Ganetsky 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 head

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

2012-07-15 Thread Maxim Ganetsky
15.07.2012 13:53, Bart пишет: On 7/13/12, Maxim Ganetsky 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

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

2012-07-15 Thread Mattias Gaertner
On Sun, 15 Jul 2012 11:53:24 +0200 Bart wrote: > On 7/13/12, Maxim Ganetsky 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 > > e

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

2012-07-15 Thread Bart
On 7/13/12, Maxim Ganetsky 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 contr