8000 Incorrect XLIFF documents · Issue #20076 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content
Incorrect XLIFF documents #20076
Closed
Closed
@ysavourel

Description

@ysavourel

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0