mathjazz / pontoon

In-place localization tool
https://pontoon.mozilla.org/
BSD 3-Clause "New" or "Revised" License
3 stars 1 forks source link

Implementing context match (aka 101% match) in Pontoon translation memory #635

Closed mathjazz closed 3 years ago

mathjazz commented 3 years ago

This issue was created automatically with bugzilla2github.

Bug 1701980

Bug Reporter: @guerojeff CC: @mathjazz

Pontoon should incorporate context matching into translation memory matching. From the SDL documentation: Context Matches

A context match is better than a 100% match. To be a context match, the translation memory segment must be a 100% match for the document segment and the two segments must have the same document context. For the document segment and the translation memory segment to have the same context, they must both have been preceded by the same segment.

Context matching is possible because context information is stored in the translation memory. When you add a new translation to a translation memory, three segments are added:

The source document segment.

The segment translation.

The segment preceding the source document segment. If there is no preceding segment, other context information is uploaded, such as information that the segment was the document header, for example.

Context segments cannot be seen when you view the contents of the translation memory.