Uploaded image for project: 'translate5'
  1. translate5
  2. TRANSLATE-2274 Round up NEC-TM integration / Have good, performant and future-proof TM-Service, that runs on docker
  3. TRANSLATE-2169

Ensure deletion of NEC-TM segments, when corresponding language resource is deleted in translate5

    XMLWordPrintable

Details

    • Sub-task
    • Resolution: Unresolved
    • None
    • None
    • LanguageResources

    Description

      Implementation details

      Language resource specific tag

      When saving segments from a language resource to NEC-TM a language resource specific tag needs to be added to NEC-TM.

      This tag will be automatically created on creation of the language resource in NEC-TM and with a migration script for all existing NEC-TM language resources. The ID of the tag will the the language resource GUID from translate5 and the name the name of the language resource. The name of the tag will be updated, if the name of the language resource is changed in translate5.

      The tag will be assigned to each segment created in NEC-TM by this language resource (be it via TMX import or when saving a segment in the editor).

      These language resource specific tags will be filtered out (not shown) in the dialogue in translate5, where you can select tags from NEC-TM to assign them to newly created NEC-TM language resources.

      Selecting a tag for a NEC-TM language resource

      So far it is required to select a tag, when creating a new NEC-TM language resource. Since translate5 now will create a NEC-TM specific language resource tag, this will not be necessary any more and the selection of a specific tag will switch from mandatory to optional.

      Deletion of a language resource

      When deleting a language resource translate5 sends a request to NEC-TM of the following nature:

      • delete all segments in NEC-TM, that have the exact following combination of tags assigned (and not more)
        • the language resource specific tag
        • the other tags, that may have been added to the language resource
        • all tags that may be defined as general tags for the current translate5 instance

      NEC-TM will then delete those segments completely from its storage.

      For any segments that also have other tags NEC-TM will delete those tags from the segments but besides that leave the segments.

      Attachments

        Activity

          People

            aleksandar Aleksandar Mitrev
            marcmittag Marc Mittag [Administrator]
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: