IntraWeb resource strings are not translated

All announcements, questions and issues related to the TsiLang Components Suite.
Post Reply
hclaassens
Posts: 8
Joined: Wed Nov 08, 2006 9:15 am

IntraWeb resource strings are not translated

Post by hclaassens »

IntraWeb resource strings are defined in a unit called IWResourceStrings.pas with the resource directive.

we've tried to translate them in the following manner:

Of the TsiLang component we've set HandleResourceStrings” to True and ResourceLanguageIndex to 2.

We've seemn the resource strings in the strings property of the TsiLang component and we've filled in the translations.

But during runtime we do NOT see the translated strings, but the original one's.

Howto solve this?
isiticov
Site Admin
Posts: 2385
Joined: Thu Nov 21, 2002 3:17 pm

Post by isiticov »

Is the second (ResourceLanguageIndex=2) language is English?
Best regards,
Igor Siticov.
hclaassens
Posts: 8
Joined: Wed Nov 08, 2006 9:15 am

Post by hclaassens »

Yes, the second (ResourceLanguageIndex=2) language is English.

We've solved the problem using a (undocumented) feature of IntraWeb.
Overwriting ResourceStringNumber1 is possible with writing another string to [b][u]RS[/u][/b]ResourceStringNumber1.

We've translated [b][u]RS[/u][/b]ResourceStringNumber1 in the normal TsiLang way.
isiticov
Site Admin
Posts: 2385
Joined: Thu Nov 21, 2002 3:17 pm

Post by isiticov »

Thank you for sharing the solution!
Best regards,
Igor Siticov.
Post Reply