>
> I'm wondering myself why I can't find any information about i18n in Lazarus.
> Writing applications which support several languages is not an uncommon
> task; what is the currently recommended way to go? (In sourcecode I'd
> have to use resourcestrings of course, but what about forms?)
>
The way we did it in our applications was to set all captions via
code. We created a base Form and all our application forms descended
from it. When the form was created (or was that OnShow) we called our
SetupCaptions function. Each form overrides SetupCaptions.
We did this for anything that displays text - Menus, buttons, labels, etc...
eg:
procedure TMyForm.SetupCaption;
begin
inherited;
lblTitle.Caption := rsMyTitle;
btnOK.Caption := rsBtnOK;
btnCancel.Caption := rsBtnCancel;
....
end;
Regards,
- Graeme -
--
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/
_________________________________________________________________
To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives