On Sun, 2011-01-16 at 13:38 +0100, Marco van de Voort wrote: > You can postedit resources in a binary, or overlay them with translated > resource DLLs. You can't do so with generated code.
fpGUI can also load translations at runtime - we do that for all our products. Admittedly the UI Designer doesn't have support for this yet (it's on my todo list). What we have done in the mean time is introduce a base form class that has virtual methods like ApplyPreferences, ApplyTranslations etc.. Then in each form we override those methods. In the case of translations, we set the widgets captions or text using the resource string constant. As for resizing and repositioning components due to various languages having longer or shorter text. I believe that is the job of the layout manager, not the form designer. -- Regards, - Graeme - -------------------------------------------------------------- fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/ -- _______________________________________________ Lazarus mailing list [email protected] http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
