Page 1 of 1

MessageDlg and ShowMessage showing the wrong buttons

Posted: Mon Nov 28, 2011 5:02 pm
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

Posted: Thu Jan 24, 2013 12:07 pm
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

Posted: Thu Jan 24, 2013 1:05 pm
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?

Posted: Fri Jan 25, 2013 7:32 am
by Thomas J.
Where can I find the "list of English Translation in Dialogs"?

I'm using the newest version of components.

Posted: Sat Jan 26, 2013 7:27 am
by isiticov
Double-click on TsiLang and navigate to Dialogs item in left-side treeview.

Posted: Tue Jan 29, 2013 10:34 am
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.

Posted: Thu Jan 31, 2013 9:15 am
by Thomas J.
Any new hints for me?

Posted: Fri Feb 01, 2013 7:36 am
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?

Posted: Fri Feb 01, 2013 4:01 pm
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

Posted: Fri Feb 01, 2013 5:57 pm
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.