Dialogs without caption

All announcements, questions and issues related to the TsiLang Components Suite.
Post Reply
Thomas J.
Posts: 129
Joined: Fri Jan 06, 2006 8:09 am

Dialogs without caption

Post by Thomas J. »

I'm using BCB++ 6 and version 6.0.1 of sicomp.
I have a TsiLangDispatcher with 3 languages and a TsiLangRT in the base form class. Many forms with which are inherited from the base form class with the TsiLangRT component.

If I use the method MessageDlg of TsiLangRT all captions are empty (button and form caption)

In the sil file is written

[Dialogs]
TsiTransEditFrm.Abort=&Abort~!@#
TsiTransEditFrm.All=&All~!@#
TsiTransEditFrm.Cancel=Cancel~!@#
TsiTransEditFrm.Confirm=Confirm~!@#
TsiTransEditFrm.Error=Error~!@#
TsiTransEditFrm.Help=&Help~!@#

It seems like, that not 3 languages are in.
How can I force it? manuel?


Thansk for your help
isiticov
Site Admin
Posts: 2385
Joined: Thu Nov 21, 2002 3:17 pm

Post by isiticov »

Did you set IsInheritedOwner to True for all inherited forms?
Best regards,
Igor Siticov.
Thomas J.
Posts: 129
Joined: Fri Jan 06, 2006 8:09 am

Post by Thomas J. »

No all to default -> FALSE
isiticov
Site Admin
Posts: 2385
Joined: Thu Nov 21, 2002 3:17 pm

Post by isiticov »

Please set it to True, since this is required for inherited forms.
Best regards,
Igor Siticov.
Thomas J.
Posts: 129
Joined: Fri Jan 06, 2006 8:09 am

Post by Thomas J. »

I set it to true and nothing changed.
But I opened the Translation Editor of the form and pressed on the disk symbol. After this the captions of the MessageDlg appears.
But in the sil file is written

Code: Select all

[Dialogs]
TFrmVerpackungsbeiblatt.Abort=&Abbrechen~!@#&Cancel~!@#~!@#
TFrmVerpackungsbeiblatt.All=&Alle~!@#&All~!@#~!@#
TFrmVerpackungsbeiblatt.Cancel=Abbrechen~!@#&Cancel~!@#~!@#
TFrmVerpackungsbeiblatt.Confirm=Bestätigung~!@#Confirm~!@#~!@#
TFrmVerpackungsbeiblatt.Error=Fehler~!@#Error~!@#~!@#
...
...
TsiTransEditFrm.Confirm=Confirm~!@#
TsiTransEditFrm.Error=Error~!@#
TsiTransEditFrm.Help=&Help~!@#
Do I have to translate each form section dialogs? :shock: I thought that standard dialogs are common and I don't have to translate it again and again?! :roll:
isiticov
Site Admin
Posts: 2385
Joined: Thu Nov 21, 2002 3:17 pm

Post by isiticov »

Yes, you need this for each form in case you don't use TsiLangLinked (which is designed exactly for sharing common terms like dialogs).
Also you may try to set Options property of TsiLang to [loUseExtCommonStrings], then TsiLang will try to use dialog translations from any TsiLang linked to same dispatcher.
Best regards,
Igor Siticov.
Thomas J.
Posts: 129
Joined: Fri Jan 06, 2006 8:09 am

Post by Thomas J. »

Now I don't have the dialog caption in the translation editor and my MessageDlg is gain blank (another form as before) :evil:
isiticov
Site Admin
Posts: 2385
Joined: Thu Nov 21, 2002 3:17 pm

Post by isiticov »

May be you again didn't set LangDisptacher property?
Best regards,
Igor Siticov.
Thomas J.
Posts: 129
Joined: Fri Jan 06, 2006 8:09 am

Post by Thomas J. »

As I wrote in my email, I made stupid mistakes which I didn't made in the real project and if I can see changes in all other caption like labels, but not in the caption of the form, the problem cannot be the not or linked dispatcher.

i sent you my SIL file of the real project
isiticov
Site Admin
Posts: 2385
Joined: Thu Nov 21, 2002 3:17 pm

Post by isiticov »

You have defined dialog captions only for TFrmVerpackungsbeiblatt form. Is this form created at the moment you try to call MessageDlg() method of TsiLang with [loUseExtCommonStrings] in options? Also please note: you must set this flag for all TsiLangs except TFrmVerpackungsbeiblatt form.
Best regards,
Igor Siticov.
Post Reply