Multiline Resourcestrings

All announcements, questions and issues related to the TsiLang Components Suite.
Post Reply
HenrichD
Posts: 8
Joined: Tue May 06, 2003 6:50 pm
Location: Cary, NC 27511, USA

Multiline Resourcestrings

Post 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.
gaivans
Posts: 71
Joined: Fri Nov 29, 2002 4:10 pm

Post 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".
Best regards,
Serghei Gaivan
BillHop3
Posts: 10
Joined: Wed Sep 29, 2004 3:04 pm

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

Post by isiticov »

Thanks for note. Will try to fix this.
Post Reply