Closed
Description
It seems the XLIFF documents generated by Symfony, whether 1.2 or the new 2.0 are not using the <source>
element correctly. It is meant to hold the original text to translate, But in the Symfony files it is used to place some ID (and resname
can be used to store the ID).
For example:
<trans-unit id="1">
<source>homepage.title</source>
<target>Title - the best place for page titles on the internet.</target>
</trans-unit>
Should be:
<trans-unit id="1" resname="homepage.title">
<source>Title - the best place for page titles on the internet.</source>
<target>Title - the best place for page titles on the internet.</target>
</trans-unit>
It's OK to have the original text in <target>
when creating the file, but not putting it in <source>
makes those XLIFF documents pretty much not usable with most translation tools.