You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
My only concern is how to keep this info in both way: load a xliff, export to Po, load the Po, export to xliff.
Maybe we could save the value in a header, like X-Source-Language (not sure if there's a standard header name for this), so this value is present in any other format with headers. What do you think?
If you're ok with that, do you want to work in a PR?
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
The text was updated successfully, but these errors were encountered: