Page 1 of 1

IntraWeb resource strings are not translated

Posted: Mon Sep 03, 2007 2:17 pm
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?

Posted: Wed Sep 05, 2007 4:10 pm
by isiticov
Is the second (ResourceLanguageIndex=2) language is English?

Posted: Thu Sep 06, 2007 6:08 am
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.

Posted: Thu Sep 06, 2007 6:17 am
by isiticov
Thank you for sharing the solution!