Set the state of the target to 'translated' when saving

Issue #18 on hold
YvesS created an issue

From Jean-Christophe: https://groups.google.com/d/msg/okapi-devel/GKfJ95oAe2A/BnNhd7aqBgAJ

Request for an option the OmegaT plugin for XLIFF files to add (or update) the state attribute of the <target> so it is set to 'translated' when we save the translated file.

Comments (5)

  1. YvesS reporter

    Looking at the XLIFFFilter code, it seems the STATE property is read-only. So that is why the output doesn't work. We would have to make it read/write in the XLIFF filter first.

  2. Former user Account Deleted

    FYI: Not related to this issue but just thought I'd mention that the STATE-QUALIFIER seems to be read-only as well. In this code block:

    https://bitbucket.org/okapiframework/omegat-plugin/src/23ab312148a3dc7cc3a9616534b085a3a8d2f740/filters/src/main/java/net/sf/okapi/lib/omegat/AbstractOkapiFilter.java?at=dev&fileviewer=file-view-default#AbstractOkapiFilter.java-483

    I've added this code:

    Property sqProp = new Property(Property.STATE_QUALIFIER, "x-testattr");
    if ( saveStateTranslated ) { 
        trgSeg.setProperty(sqProp);
    }
    

    And the state-qualifier property is not being added/updated in the target file.

  3. Log in to comment