MessageDlg and ShowMessage showing the wrong buttons

All announcements, questions and issues related to the TsiLang Components Suite.
Post Reply
suri
Posts: 2
Joined: Fri Mar 24, 2006 8:04 pm

MessageDlg and ShowMessage showing the wrong buttons

Post by suri »

I downloaded the latest Version of TsiLang V6.5.4.2 to use with XE2 update 2. What I notice is that when I change the activelanguage, the MessageDlg and ShowMessage show the wrong buttons and all the buttons are untranslated.

Example:
MessageDlg: [Yes][No][Cancel]. -> change language->[No][Ok][Abort]
ShowMessage: [Ok] ->change language-> [Cancel]

Could it be because Delphi XE2 has introduced some new or has reordered Button constants and that throws TsiLang off?

Please advise.

Suri
Thomas J.
Posts: 129
Joined: Fri Jan 06, 2006 8:09 am

Post by Thomas J. »

I have the same problem with C++Builder XE
The German version is correct
SlLnk->MessageDlg(msg, mtConfirmation, TMsgDlgButtons() << mbYes << mbNo, 0)

Button "Ja", "Nein"
Caption "Bestätigung"

The english version
Button "No", "Ok"
Caption "Yes"

That's correct translation
Button "Yes", "No"
Caption "Confirmation"

Any idea
Thanks
Thomas
isiticov
Site Admin
Posts: 2383
Joined: Thu Nov 21, 2002 3:17 pm

Post by isiticov »

Are you sure the English translations in Dialogs section full and exist for all items?
It looks like something is broken in translations list. Could you please reproduce this with the latest version and some simple project and send it to use?
Best regards,
Igor Siticov.
Thomas J.
Posts: 129
Joined: Fri Jan 06, 2006 8:09 am

Post by Thomas J. »

Where can I find the "list of English Translation in Dialogs"?

I'm using the newest version of components.
isiticov
Site Admin
Posts: 2383
Joined: Thu Nov 21, 2002 3:17 pm

Post by isiticov »

Double-click on TsiLang and navigate to Dialogs item in left-side treeview.
Best regards,
Igor Siticov.
Thomas J.
Posts: 129
Joined: Fri Jan 06, 2006 8:09 am

Post by Thomas J. »

Sorry, but this menue I cannot find.
Check this image
www.cratemaker.de/Download/TsiLang.jpg

I'm using the component TsiLangLinked.
Also a new project with this component is without the "Dialogs" item.
Thomas J.
Posts: 129
Joined: Fri Jan 06, 2006 8:09 am

Post by Thomas J. »

Any new hints for me?
isiticov
Site Admin
Posts: 2383
Joined: Thu Nov 21, 2002 3:17 pm

Post by isiticov »

TsiLangLinked doesn't have Dialogs list, instead it uses Dialogs translations from TsiLang which shall be used as CommonContainer. Do you have CommonContainer property of TsiLangLinked set to some TsiLang and in this TsiLang Dialogs property translated?
Best regards,
Igor Siticov.
Thomas J.
Posts: 129
Joined: Fri Jan 06, 2006 8:09 am

Post by Thomas J. »

Ok thanks a lot, but I can only use one TsiCustomLang component on a form.
So I have to create a new form only for this component?

Thanks
Thomas
isiticov
Site Admin
Posts: 2383
Joined: Thu Nov 21, 2002 3:17 pm

Post by isiticov »

TsiLangLinked doesn't contain Dialogs translations at all. So if you need to translate dialogs you need to have at least one TsiLang component per project on ANY existing form. And then link all your TsiLangLinked to this TsiLang.
Best regards,
Igor Siticov.
Post Reply