Uploaded image for project: 'translate5'
  1. translate5
  2. TRANSLATE-3197

Extract content of context tags in xliff 1.2 as meta data

    XMLWordPrintable

Details

    • High

    Description

      General goal and implementation in GUI

      The goal is to extract the content of context-tags (context information) from xliff files and display it as meta data for segments in translate5s editor.

      If meta-data exists for a task, translate5 will show an additional column "meta data" in the UI. This column will only exist, if meta data exists. It will also be stateful, which means, if the user positions it somewhere else or hides it, this will be kept, until the user resets the UI to default. Yet still the column will only be available in general, if meta-data exists.

      Implemention according xliff 1.2 spec

      The context element of xliff 1.2 files should be extracted as meta-data for each segment, as described in the xliff 1.2 specification:

      http://docs.oasis-open.org/xliff/v1.2/os/xliff-core.html#context

      In detail this means:

      • if a context tag occurs inside a trans-unit, it should be used as meta-data for all segments of the trans-unit
      • if a context tag occurs inside a context-group, the content of context will be used as meta-data for all trans-units, that are on the same level within the xliff as the context-group - or in nested levels.
      • if a context-group appears on a nested level of a tag hierarchy, where already a context-group was defined, its context information overrides (this means replaces) the context-information of the higher level - but only if the context-type-attribute of the context tag of the xliff is the same as the one of the higher level. If it is different, both contexts are added to the meta data field of the segment, separated by a line break.

      NOT implemented, but part of xliff 1.2 spec

      What will not be implemented in contrast to the xliff 1.2 specification, because it is not needed in the context of the current use case:

      • we will so far refrain from implementing xml instructions for evaluation of context information as it is specified in the xliff spec.
      • Also so far translate5 does not evaluate the alt-trans tags and therefore will not do so for the context as well.

      Restriction, which context contents are extracted as meta data

      Translate5 will evaluate the value of the context-type-attribute of the context tag of the xliff. Only if it has one of the values listed in the xliff file type configuration of translate5, the contents of context will be extracted as meta data as described above. The xliff file type configuration can be set by PMs and admins in translate5.

      A setting of the xliff import configuration in translate5 will enable the admin to choose, which context's should be used as meta data.

      Attachments

        Issue Links

          Activity

            People

              tlauria Thomas Lauria
              marcmittag Marc Mittag [Administrator]
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated: