Translation are gone if I use SIB file

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

Translation are gone if I use SIB file

Post 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:
isiticov
Site Admin
Posts: 2416
Joined: Thu Nov 21, 2002 3:17 pm

Post 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.
Best regards,
Igor Siticov.
Thomas J.
Posts: 129
Joined: Fri Jan 06, 2006 8:09 am

Post 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.
isiticov
Site Admin
Posts: 2416
Joined: Thu Nov 21, 2002 3:17 pm

Post 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.
Best regards,
Igor Siticov.
Thomas J.
Posts: 129
Joined: Fri Jan 06, 2006 8:09 am

Post 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?
isiticov
Site Admin
Posts: 2416
Joined: Thu Nov 21, 2002 3:17 pm

Post 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.
Best regards,
Igor Siticov.
Post Reply