Page 1 of 1

Multiline Resourcestrings

Posted: Wed May 07, 2003 5:50 pm
by HenrichD
How do I translate multiline resourcestrings ?

(O.k., I could avoid them in my own code - but how about the multiline resourcestrings in the VCL / other components ?)

I'm looking for a solution for :

resourcestring
// We don't want tsilang 'const string expert' to touch this code
{TSI:IGNORE ON}
rsMessageBox = 'Hello World';
rsTwoLines ='This is Line 1'+#13#10+'This is Line2';
{TSI:IGNORE OFF}

and simular.

Posted: Thu May 08, 2003 7:01 am
by gaivans
Hello,

Both the Translation Editor and SIL Editor have the embedded "Multiline Editor" so when you have added any strings to translation data you can edit them as multilines.

To launch the multiline editor click the menu "Tools|Multiline Editor" or "Ctrl+Enter".

Posted: Thu Nov 18, 2004 7:04 pm
by BillHop3
In a .SIL...
[Multilines] are stored with commas separating the lines
Multi-line [Strings] are stored with 0x19 + 0x1A separators
When Exported as a .SIB...
[Multilines] are streamed with 0x01 separators
Multi-line [Strings] are streamed with 0x19 + 0x1A separators
If the .SIB is Exported back out as a .SIL...
[Multilines] are stored with commas separating the lines
Multi-line [Strings] get broken up by CR + LF, which corrupts the file.

Posted: Fri Nov 19, 2004 5:12 am
by isiticov
Thanks for note. Will try to fix this.