<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
<META NAME="GENERATOR" CONTENT="GtkHTML/3.3.2">
<TITLE>Another question on PO and XLIFF</TITLE>
</HEAD>
<BODY>
On Mon, 2005-05-02 at 06:54 -0600, Yves Savourel wrote:<BR>
<BR>
Hi,<BR>
<BR>
I will try to make my reply clearer than before.<BR>
<BR>
<BLOCKQUOTE TYPE=CITE>
<FONT SIZE="2"><FONT COLOR="#000000">I have a new question on XLIFF representation of PO.</FONT></FONT><FONT COLOR="#000000"> </FONT><BR>
<FONT SIZE="2"><FONT COLOR="#000000">The guide (</FONT></FONT><U><FONT SIZE="2"><FONT COLOR="#0000ff"><A HREF="http://xliff-tools.freedesktop.org/wiki/Projects_2fXliffPoGuideDraft2">http://xliff-tools.freedesktop.org/wiki/Projects_2fXliffPoGuideDraft2</A></FONT></FONT></U><FONT SIZE="2"><FONT COLOR="#000000">) does not seem to say anything about multi-line entries. </FONT></FONT><BR>
<BR>
<FONT SIZE="2"><FONT COLOR="#000000">msgid ""</FONT></FONT><FONT COLOR="#000000"> </FONT><BR>
<FONT SIZE="2"><FONT COLOR="#000000">"Line 1\n line 2\n"</FONT></FONT><FONT COLOR="#000000"> </FONT><BR>
<FONT SIZE="2"><FONT COLOR="#000000">"Line 3.\n"</FONT></FONT><BR>
<BR>
<FONT SIZE="2"><FONT COLOR="#000000">How this should be represented?</FONT></FONT><BR>
<BR>
<FONT SIZE="2"><FONT COLOR="#000000"><trans-unit xml:space="preserve"></FONT></FONT><BR>
<BR>
<FONT SIZE="2"><FONT COLOR="#000000">Line 1\n line 2\n</FONT></FONT><FONT COLOR="#000000"> </FONT><BR>
<FONT SIZE="2"><FONT COLOR="#000000">Line 3.\n</trans-unit></FONT></FONT><BR>
</BLOCKQUOTE>
<BR>
This is the right version, as all characters that appear between double quotes after msgid are present in the translation unit.<BR>
<BR>
<BR>
<BLOCKQUOTE TYPE=CITE>
<FONT SIZE="2"><FONT COLOR="#000000">Or </FONT></FONT><BR>
<BR>
<FONT SIZE="2"><FONT COLOR="#000000"><trans-unit xml:space="preserve"></FONT></FONT><FONT COLOR="#000000"> </FONT><BR>
<FONT SIZE="2"><FONT COLOR="#000000">Line 1\n</FONT></FONT><FONT COLOR="#000000"> </FONT><BR>
<FONT SIZE="2"><FONT COLOR="#000000"> line 2\n</FONT></FONT><FONT COLOR="#000000"> </FONT><BR>
<FONT SIZE="2"><FONT COLOR="#000000">Line 3.\n</FONT></FONT><FONT COLOR="#000000"> </FONT><BR>
<FONT SIZE="2"><FONT COLOR="#000000"></trans-unit></FONT></FONT><BR>
</BLOCKQUOTE>
<BR>
Here you added a linefeed not present in the original text, so you basically altered the source text. As you used xml:space="preserve" in the translation unit, then there is a contradiction that invalidates this option. Remember that the xml:space attribute also affects linefeed characters. <BR>
<BR>
<BLOCKQUOTE TYPE=CITE>
<FONT SIZE="2"><FONT COLOR="#000000">Or</FONT></FONT><BR>
<BR>
<FONT SIZE="2"><FONT COLOR="#000000"><trans-unit xml:space="preserve"></FONT></FONT><FONT COLOR="#000000"> </FONT><BR>
<FONT SIZE="2"><FONT COLOR="#000000">Line 1</FONT></FONT><FONT COLOR="#000000"> </FONT><BR>
<FONT SIZE="2"><FONT COLOR="#000000"> line 2</FONT></FONT><FONT COLOR="#000000"> </FONT><BR>
<FONT SIZE="2"><FONT COLOR="#000000">Line 3.</FONT></FONT><FONT COLOR="#000000"> </FONT><BR>
<FONT SIZE="2"><FONT COLOR="#000000"></trans-unit></FONT></FONT><BR>
</BLOCKQUOTE>
<BR>
This is absolutely wrong, because here you removed three sequences of two chars from the text. The sequences "\n" are part of the translatable text because they appear between the quotes that follow msgid.<BR>
<BR>
The sequence "\n" should not be confused with a linefeed character. The program that will display the text at runtime will parse the translation and add the linefeeds at the places indicated by the translator. Meanwhile, the sequences "\n" must be part of the translatable text.<BR>
<BR>
Regards,<BR>
Rodolfo<BR>
<TABLE CELLSPACING="0" CELLPADDING="0" WIDTH="100%">
<TR>
<TD>
-- <BR>
Rodolfo M. Raya <<A HREF="mailto:rodolfo@heartsome.net">rodolfo@heartsome.net</A>><BR>
Heartsome Holdings Pte Ltd
</TD>
</TR>
</TABLE>
</BODY>
</HTML>