Page 1 of 1

Translation are gone if I use SIB file

Posted: Thu Jun 21, 2007 10:13 am
by Thomas J.
Hello support,

I have the form TCrateForm which is the base class for my forms. In this form I translated all DevExpress ConstStrings. If I don't use the SIB file all the properties e.g. filter option of the grid are tranlated. :evil:

Posted: Thu Jun 21, 2007 11:20 am
by isiticov
Please clarify your question.

P.S. Also you can take a look at user's manual for TsiLang Components Suite available on our download page.

Posted: Thu Jun 21, 2007 12:48 pm
by Thomas J.
Sorry, I translated all Strings in the property "Strings" in the base form and checked for all forms the property "HandleResourceStrings" = true.
If I use the SIB by loading this one, nothing is translated like e.g. the filter option from the DevExpress Grid.
If I don't use the SIB file all the Strings are translated.

I hope it clarified the problem.

Posted: Thu Jun 21, 2007 2:03 pm
by isiticov
HandleResourceStrings must be set to True ONLY for ONE TsiLang per project. And this TsiLang must contain all resource strings in order to translate them.

Posted: Fri Jun 22, 2007 7:58 am
by Thomas J.
Great. I have to set the flag HandleResourceStrings in my base form class and now I can step to all 150 form and set this to false and if I create a new form I have to keep in mind that I have to set this flag to false.
Is this the only solution?

Posted: Fri Jun 22, 2007 8:28 am
by isiticov
Yes, and it is clearly stated in manual and help file. Only ONE TsiLang per project must have this property set to True, otherwise your resource translation won't work. The smart way for resource translation is to create separate data-module and use it as container for TsiLang which will translate resources.