Skip to content

XLIFF gererator trgLang matches srcLang #210

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions