After years of development with this kind of dialog box (with a caption, a message ending with a question and buttons labeled Yes, No, Cancel etc), I've noticed than most non-tech users actually do not READ the message, they just read the labels of the buttons and click Yes or No (rarely Cancel), almost automatically - no thinking at all.
I did some GUI and usability research and found that many experts suggest that the labels of the buttons should state the action that will be performed. IIRC, Open Office dot Org does that: when you try to exit when the text has changed, instead of the classic "Save changes?" (Yes, No, Cancel) it says something like: "There are changes." (Save, Discard, Cancel). The experience shows that users read the buttons, not the message. Of course it's simple to write such a dialog box, but it would be nice to have it as a built-in feature, to educate new developers and create a standard. This would also solve this language problem, as most text would be provided - except, maybe, "Cancel", that could be defined globally somewhere or at least have a default text. Alex 2005/9/3, Bogusław Brandys <[EMAIL PROTECTED]>: > Mattias Gaertner wrote: > > On Fri, 02 Sep 2005 08:25:00 +0200 > > Bogus__aw Brandys <[EMAIL PROTECTED]> wrote: > > > > > >>Hi, > >> > >>I'm testing multiplatfor MessageBox replacement and MessageDlg seems > >>good, but there is one problem: all buttons are in English while > >>ordinary MessageBox (Windows) have it transated into my OS language > >>(Polish).How to get MessageDlg (or other multiplatform Message) working > >>with system regional settings ? > > > > > > You are right. That's missing. > > The LCL contains translations for many languages, but they are not used > > automatically. You have translate the resourcestrings by yourself. See > > lcl/lclstrconsts.pas. > > For example: > > In your main FormCreate you could initialize the lcl values: > > rsMbYes:='Ja'; > > > > > > Mattias > > I think that all I need is to compile lcl.pl.po into lcl.pl.mo file and > include into program (?) directory (anyway that way it works in other > GUI system - wxWidgets) . Any tutorial for this ? > > Regards > Boguslaw Brandys > > > _________________________________________________________________ > To unsubscribe: mail [EMAIL PROTECTED] with > "unsubscribe" as the Subject > archives at http://www.lazarus.freepascal.org/mailarchives > -- Atenciosamente, Alexsander da Rosa _________________________________________________________________ To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe" as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
