-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[Translation] Support name attribute on the xliff2 translator loader #35373
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Translation] Support name attribute on the xliff2 translator loader #35373
Conversation
06f4b27
to
715f670
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
name seems the way to go.
What happens when there are multiple segments in the <unit>
?
Can we find any loader in another technology that uses "name" like that?
E.g. do software for translators work this way?
I think we should check this before.
In the xliff 1.2 loader, there is a support for According to http://docs.oasis-open.org/xliff/xliff-core/v2.0/xliff-core-v2.0.html#name :
So seems fitting here... But it is not available for The problem comes with indeed translator tools (e.g memsource in my case) and ICU handling : We would like to use the ICU notation, and proceeding on xliff2 with how it's proposed in the doc doesn't do well with translator tool. They base themselves on the |
6174bac
to
37b3114
Compare
Thank you @Taluu. |
…nslator loader (Taluu) This PR was merged into the 5.1-dev branch. Discussion ---------- [Translation] Support name attribute on the xliff2 translator loader | Q | A | ------------- | --- | Branch? | master | Bug fix? | no | New feature? | yes | Deprecations? | no | Tickets | Fix #32048 | License | MIT | Doc PR | not done yet Support using the `name` attribute on the `unit` element in xliff 2.0 to use as the "translation key" rather than always relying on the `<source>` content, as was done on the xliff 1.2. Commits ------- 37b3114 Support name attribute on the xliff2 translator loader
Support using the
name
attribute on theunit
element in xliff 2.0 to use as the "translation key" rather than always relying on the<source>
content, as was done on the xliff 1.2.