XLIFF's tag "target" has an attribute "state" that used by crowndin translation service.
Crowdin accept XLIFF translated sentences when state = "translated" not "needs-translation"
A recent omegat-users post asks the feature request.
https://sourceforge.net/p/omegat/mailman/message/37084319/
Same issue is recorded in OKAPI plugin for OmegaT project in 2017: https://bitbucket.org/okapiframework/omegat-plugin/issues/18/set-the-state-of-the-target-to-translated
It is great if OmegaT XLIFF filter has a capability to update state attribute. OmegaT XLIFF filter works well for Crowdin generated XLIFF file.
I made a patch for Proof of Concept to update state attribute of target by definition of status Tag/attribute and transition definition.
It works, but all of <target state="needs-translation"> become <target state="translated"> even it is not translated yet. The PoC code tell us OmegaT can update the tag/attribute.
Only missing part is to detect whether a target is translated and refrect conversion.
Attachment is a hack to realize a feature.
Here is my PR on GH.
https://github.com/omegat-org/omegat/pull/47
Implemented in [307fb8].
Thank you for your contribution!
Related
Commit: [307fb8]
Related [#948] ?
Related
Feature Requests: #948
Released in 5.4.0.
How does the feature work ? Is it automatic ?