How to translate every string in a message dialog

All announcements, questions and issues related to the TsiLang Components Suite.
Post Reply
doctec
Posts: 8
Joined: Mon Feb 14, 2005 4:17 pm
Location: Argentina
Contact:

How to translate every string in a message dialog

Post by doctec »

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: 2383
Joined: Thu Nov 21, 2002 3:17 pm

Post by isiticov »

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 »

Thanks a Lot !!!


Regards,
Marcelo
Post Reply