SiComponents Home Page SiComponents Forums
Here you will be able to get help and share your experience
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

How to translate every string in a message dialog

 
Post new topic   Reply to topic    SiComponents Forums Forum Index -> TsiLang Components Suite
View previous topic :: View next topic  
Author Message
doctec



Joined: 14 Feb 2005
Posts: 8
Location: Argentina

PostPosted: Thu Feb 17, 2005 5:00 pm    Post subject: How to translate every string in a message dialog Reply with quote

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
Back to top
View user's profile Send private message Visit poster's website
isiticov
Site Admin


Joined: 21 Nov 2002
Posts: 2097

PostPosted: Thu Feb 17, 2005 6:03 pm    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
doctec



Joined: 14 Feb 2005
Posts: 8
Location: Argentina

PostPosted: Thu Feb 17, 2005 6:12 pm    Post subject: Reply with quote

Thanks a Lot !!!


Regards,
Marcelo
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    SiComponents Forums Forum Index -> TsiLang Components Suite All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by p h p B B  © 2001, 2005 p h p B B  Group