Skip to content

[Translation] Add name attribute to XLIFF 2.0 #25758

@timwhitlock

Description

@timwhitlock
Q A
Bug report? no
Feature request? yes
BC Break report? no
RFC? no
Symfony version 4.0.3

For XLIFF 1.2 the XliffFileDumper correctly adds translation keys into the resname attribute, but does not populate the equivalent name attribute for XLIFF 2.0.

Although optional, the specification describes this as:

The original identifier of the resource corresponding to the Extracted <unit> or <group>.

For example: the key in the key/value pair in a Java properties file, the ID of a string in a Windows string table, the index value of an entry in a database table, etc.

For backward compatibility I don't expect to see a change to the way the <source> element is used, but for the 1.2 and 2.0 formats to be treated as equivalent it seems the same logic should be applied.

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