Problem with SIL File
Problem with SIL File
I'm using BC++ 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.
In my SIL file I see all translated words. But..
1. If I design the forms and I switch the dispatcher language not all forms switch to the language of the dispatcher (all linked to the dispatcher)
2. On execution all the forms which are don't switch during the design time are switching the language all the other forms not
I checked the SIL file and found
TFrmEinstellungen.TFrmEinstellungen=Einstellungen~!@#Properties~!@#~!@#
TFrmEinstellungen.LbALTage=Tage~!@#Days~!@#~!@#
TFrmEinstellungen -> this is not shown
LbALTage - > this is shown
Any suggestion?
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.
In my SIL file I see all translated words. But..
1. If I design the forms and I switch the dispatcher language not all forms switch to the language of the dispatcher (all linked to the dispatcher)
2. On execution all the forms which are don't switch during the design time are switching the language all the other forms not
I checked the SIL file and found
TFrmEinstellungen.TFrmEinstellungen=Einstellungen~!@#Properties~!@#~!@#
TFrmEinstellungen.LbALTage=Tage~!@#Days~!@#~!@#
TFrmEinstellungen -> this is not shown
LbALTage - > this is shown
Any suggestion?
I tried the sample project but this is running fine - of course
I tried several other forms and it is not possible to change the title of the form, all other caption are changed.
But the one form which changes the caption is designed like each other form.
I only can send you the dfm file. In the cpp file is nothing implemented with your components.
I tried several other forms and it is not possible to change the title of the form, all other caption are changed.
But the one form which changes the caption is designed like each other form.
I only can send you the dfm file. In the cpp file is nothing implemented with your components.
Actually, the DFM file wont' give us anything because as you noted the sample projects work fine and this means that maybe some your code is the origin of the problem. If you try to build the sample project that uses the similar way you used in your application to deal with TsiLang. Then it may give you an idea what's wrong in case it will work, otherwise you could send it to us and we will investigate.
Best regards,
Igor Siticov.
Igor Siticov.
Hello,
We've sent you the modified sample project which works as designed. Please note the following:
1. IsInheritedOwner must be set ONLY for TsiLangs on inherited forms but not for TsiLangs on base form.
2. You must re-open inherited forms in case you changed the name of any component (in this case TsiLang) on base form, because C++Builder must reuild the "inheritance". (You change the name of TsiLang on base form but on inherited form it was still old).
3. When you switch language using TsiLangDispatcher you MUST set LangDispatcher property of all TsiLangs in project to this dispatcher component. Otherwise it won't work.
Please let me know if this helps.
We've sent you the modified sample project which works as designed. Please note the following:
1. IsInheritedOwner must be set ONLY for TsiLangs on inherited forms but not for TsiLangs on base form.
2. You must re-open inherited forms in case you changed the name of any component (in this case TsiLang) on base form, because C++Builder must reuild the "inheritance". (You change the name of TsiLang on base form but on inherited form it was still old).
3. When you switch language using TsiLangDispatcher you MUST set LangDispatcher property of all TsiLangs in project to this dispatcher component. Otherwise it won't work.
Please let me know if this helps.
Best regards,
Igor Siticov.
Igor Siticov.
Also some general tips:
1. Why do you use SIL file? SIB files are much faster and stable than SIL.
2. Why do you use TsiLangRT components? If you need to be able to create application translatable by end-users you may take a look at this article: http://www.tsilang.com/press/en/creatin ... users.html It is not needed to use built-in editor for each form. SIL Editor is much more useful and powerful for editing translations.
1. Why do you use SIL file? SIB files are much faster and stable than SIL.
2. Why do you use TsiLangRT components? If you need to be able to create application translatable by end-users you may take a look at this article: http://www.tsilang.com/press/en/creatin ... users.html It is not needed to use built-in editor for each form. SIL Editor is much more useful and powerful for editing translations.
Best regards,
Igor Siticov.
Igor Siticov.
Regarding the sil file I can tell you the following:
If I change during the runtime the caption of the selected language in the editor nothing changed, but if I start the app again the changed caption is shown. This behavoir is NOT like the captions of the labels .
If I select the other languages the form caption never change.
But anyway I only want to have a running app, so I try SIB due to the crazy problem with the SIL file.
Right now I'm very frustrated and I cannot understand where the problems are.
If I change during the runtime the caption of the selected language in the editor nothing changed, but if I start the app again the changed caption is shown. This behavoir is NOT like the captions of the labels .
If I select the other languages the form caption never change.
But anyway I only want to have a running app, so I try SIB due to the crazy problem with the SIL file.
Right now I'm very frustrated and I cannot understand where the problems are.
Hi,
http://www.tsilang.com/press/en/creatin ... users.html
And he needs just SIL Editor (freely redistributable) and of course your SIB file.
http://www.tsilang.com/press/en/creatin ... users.html
And he needs just SIL Editor (freely redistributable) and of course your SIB file.
Best regards,
Igor Siticov.
Igor Siticov.