[Psi-Devel] Interesting bug in PSI TS

Samuel Murray (Groenkloof) samuel at translate.org.za
Tue May 6 02:04:15 PDT 2008


G'day everyone

I converted the PSI TS file to XLF using Linguist 4.3.4, but the XLF 
file wouldn't work with the Translate Toolkit.  I used the Russian TS 
file for the conversion, by the way.  I submitted a bug report at 
Trolltech but I might as well tell about it here.

The TS file contains this line:

<comment>This page is a special place for translators, to write some 
info about them. Write information about your translation team, some 
hints are in &lt;note&gt; tags to help you. Keep up the good work 
:-).</comment>

One would expect the XLF file to have this then:

<note>This page is a special place for translators, to write some info 
about them. Write information about your translation team, some hints 
are in &lt;note&gt; tags to help you. Keep up the good work :-).</note>

...or at least this:

<note>This page is a special place for translators, to write some info 
about them. Write information about your translation team, some hints 
are in &lt;note> tags to help you. Keep up the good work :-).</note>

Alas, the XLF file created by Linguist 4.3.4 has this:

<note>This page is a special place for translators, to write some info 
about them. Write information about your translation team, some hints 
are in <note> tags to help you. Keep up the good work :-).</note>

...which, unsurprisingly, results in the XLF file being broken.

An non-ideal but fairly simple temporary workaround would be to change 
the TS file (and its upstream file) to:

<comment>This page is a special place for translators, to write some 
info about them. Write information about your translation team, some 
hints are in "note" tags to help you. Keep up the good work :-).</comment>

I'm not sure when Trolltech will fix this bug.

Samuel (still trying to see how Pootle can be used with PSI)


More information about the Psi-Devel mailing list