Loosing language names when form is opened

All announcements, questions and issues related to the TsiLang Components Suite.
Post Reply
bduncanj
Posts: 5
Joined: Tue Feb 24, 2009 10:43 pm

Loosing language names when form is opened

Post by bduncanj »

Using TsiLang 6.5.4.7 with Delphi XE2.
Using siLangDispatcher on a data module, the TSiLangLinked component on multiple forms references this dispatcher.

I had 4 languages and added Japanese by doing a "select many" in TSiLang Expert and adding Japanese. I *then* changed the number of languages in the dispatcher to 5 also.

What I'm finding is that whenever I now open a form, it's showing that I have 4 and not 5 languages, hiding the Japanese column when I open the language editing window and the Japanese title from the LangNames property.

Japanese remains the 5th entry in the lang dispatcher even though it disappears from the other forms.

Is this a known issue that others have run into? I didn't have this problem when I added by 4th language, Korean. Any help or pointers would be greatly appreciated.
isiticov
Site Admin
Posts: 2383
Joined: Thu Nov 21, 2002 3:17 pm

Post by isiticov »

When you have dispatcher and TsiLang components linked to it it is enough to configure languages in dispatcher and then it will propagate this to all linked TsiLangs. I don't have any idea what could cause such problem as this shall work. But may be you can try the following: remove Japanese from dispatcher; check forms that there are no Japanese as well; then add Japanese to dispatcher and check forms. Also please check that TsiLang on forms HAVE linked to dispacther through LangDispatcher property.
Let me know if this helped.
Best regards,
Igor Siticov.
bduncanj
Posts: 5
Joined: Tue Feb 24, 2009 10:43 pm

Post by bduncanj »

I'm finding that when I open a form, the LangDispatcher property of the TSiLngLinked component is blank in the property inspector.

However if I look at the source code of the form, or if I put my mouse in that input box of the property inspector, then it'll show that the dispatcher is correctly referenced.

If I then manually re-select the dispatcher from the LangDispatcher drop down, my language count increases (correctly) to 5 languages and my LangNames now includes Japanese (correctly).

However, when I reload the form, the language count is back to 4 and the LangDispatcher entry in the property inspector is once again blank (even though its present in the underlying source code).

It's as though on form load there is a problem resolving the language dispatcher. Could there be a problem when I changed the TForm that the language dispatcher lives on to a TDataModule?

Cheers
bduncanj
Posts: 5
Joined: Tue Feb 24, 2009 10:43 pm

Post by bduncanj »

Installed latest version of product and this appears to fix the problem.
bduncanj
Posts: 5
Joined: Tue Feb 24, 2009 10:43 pm

Post by bduncanj »

Update: after setting the languages on the dispatcher, updating all my forms, exiting and re-loading the IDE we're back to the property inspector not seeing the dispatcher in the drop down.

2nd update: the dispatcher becomes available in the property inspector as a selectable option only once I actually open the TDataModule descendant containing my language dispatcher in the IDE.
isiticov
Site Admin
Posts: 2383
Joined: Thu Nov 21, 2002 3:17 pm

Post by isiticov »

Something strange. I believe this might be related to project's units structure in your project. Please check that your project's source unit correctly lists all units and forms/datamodule because it looks like IDE became "confused" somehow. Also check uses clause of units to include datamodule with dispatcher.
Best regards,
Igor Siticov.
Post Reply