Skip to content

XLIFF gererator trgLang matches srcLang #210

@ScottAustin

Description

@ScottAustin

Hi,

When generating XLIFF the Translations language is used as the srcLang & trgLang.
the spec states "Target language - the code of the language, in which the Translated text is expressed".

It could be fixed by adding the target language to the options array.
$xliff->setAttribute('trgLang', $options['targetLanguage'] ?? $translations->getLanguage());

Any solution would be great

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions