Skip to content

0.5.0: Merge pull request #52 from rvanbekkum/feature/50-xlf2-states

Compare
Choose a tag to compare
@rvanbekkum rvanbekkum released this 08 Aug 12:32
· 49 commits to master since this release
5444d08

Changes

  • Better XLIFF 2.0 support:
    • state attribute on segment nodes instead of target nodes.
    • state and subState used:
      • needs-translation -> initial with no sub-state
      • needs-adaptation -> translated with sub-state configurable with setting xliffSync.needsWorkTranslationSubstate.
      • translated -> translated with no sub-state.
    • Let xliffSync.fileType = xlf2 work with file-extension xlf.
    • Fix: function findXliffSyncNoteIndex should check for the "category" attribute instead of the "from" attribute.
    • Fix: function tryDeleteXliffSyncNote should call findXliffSyncNoteIndex with notesParent as argument instead of unit.
    • Fix: function setXliffSyncNote should only add a new notes node in XLIFF 2.0 files if it does not exist for a unit.
    • Fix: function setXliffSyncNote should call findXliffSyncNoteIndex to check if an XLIFF Sync note already exists.
    • "Check for Need Work Translations" now considers the xliffSync.needsWorkTranslationSubstate sub-state.
    • Decoration is now also applied on segment nodes with the xliffSync.needsWorkTranslationSubstate sub-state.