mozilla / pontoon

Mozilla's Localization Platform
https://pontoon.mozilla.org
BSD 3-Clause "New" or "Revised" License
1.47k stars 528 forks source link

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

Open bugzilla-to-github opened 3 years ago

bugzilla-to-github commented 3 years ago

This issue was created automatically by a script.

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.

mathjazz commented 3 months ago

This is more relevant for document localization (Google Doc, CMS, etc.), which Pontoon currently doesn't support.