Menu

#1506 XLIFF: update target tag's state attribute according to translation status

5.4
closed-fixed
None
5
2022-10-13
2020-08-15
No

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.

1 Attachments

Related

Feature Requests: #948

Discussion

  • Hiroshi Miura

    Hiroshi Miura - 2020-08-15

    Attachment is a hack to realize a feature.

     
  • Hiroshi Miura

    Hiroshi Miura - 2020-08-15
     
  • Aaron Madlon-Kay

    • status: open --> open-fixed
    • assigned_to: Hiroshi Miura
     
  • Aaron Madlon-Kay

    Implemented in [307fb8].

    Thank you for your contribution!

     

    Related

    Commit: [307fb8]

  • msoutopico

    msoutopico - 2020-11-30

    Related [#948] ?

     

    Related

    Feature Requests: #948

  • Aaron Madlon-Kay

    • status: open-fixed --> closed-fixed
     
  • Aaron Madlon-Kay

    Released in 5.4.0.

     
  • Jean-Christophe Helary

    How does the feature work ? Is it automatic ?

     

Log in to post a comment.

MongoDB Logo MongoDB