All announcements, questions and issues related to the TsiLang Components Suite.
doctec
Posts: 8 Joined: Mon Feb 14, 2005 4:17 pm
Location: Argentina
Contact:
Post
by doctec » Thu Feb 17, 2005 5:00 pm
Hello,
I'm using Tsilang Component Suite 5.3.2 with Delphi 7, and I have the following situation:
Suppose I have the following code:
MessageDlg('Are you sure?', mtConfirmation, [mbOk, mbCancel], 0)
How can I translate the dialog caption ("Confirmation") and the button messages ("Ok" and "Cancel")?
I have tried changing the Form Dialog Strings but nothing happens.
My program have two languages, english and spanish.
In advance, thanks a lot for the help.
Marcelo
isiticov
Site Admin
Posts: 2416 Joined: Thu Nov 21, 2002 3:17 pm
Post
by isiticov » Thu Feb 17, 2005 6:03 pm
Just replace call MessageDlg() with siLang1.MessageDlg(). TsiLang components have implemented all message boxes functions. So just use respective method of TsiLang to have internationalized dialogs.
P.S. Be sure to provide Dialogs translations in Translations Editor.
doctec
Posts: 8 Joined: Mon Feb 14, 2005 4:17 pm
Location: Argentina
Contact:
Post
by doctec » Thu Feb 17, 2005 6:12 pm
Thanks a Lot !!!
Regards,
Marcelo