guides

Searching a translation memory

Search Translation Units finds the translation units of a translation memory by their source text, and returns them with their translation in targetLocale.

What is searched

Every match type searches the source text only: the segments in the TM's source locale. A translation is never searched, so a term that appears only in a target locale finds nothing. Only units with a translation in targetLocale are returned.

An empty sourceText returns every unit with a translation in targetLocale.

Match types

matchTypeMatchesCase
Contains (default)Units whose source holds every word of sourceText, as whole words, in any order. Words are stemmed and stop words dropped (see below), so saving changes finds Changes saved. It does not match parts of words: sav finds nothing.Ignored
ExpressionA full-text query, described below.Ignored

To find words that start with a text, use an Expression with :* (transl:*); to find a phrase, quote it ('save your changes').

Expression syntax

An expression is a full-text query: single words joined by operators.

WriteMeansExample
& or andbothsave & changes
`\ or or`eithersave or keep
!, or not after and/ornotsave & !draft, save and not draft
( )grouping`(save \keep) & changes`
<->the next word follows right aftersave <-> changes
<N>the next word follows N words latersave <2> changes
:* after a wordwords starting with ittransl:* finds translation, translated
'…'a phrase: the words in this order'save your changes'

Stemming and stop words

Contains and Expression use the rules of the TM's source language. For Arabic, Armenian, Basque, Catalan, Danish, Dutch, English, Finnish, French, German, Greek, Hindi, Hungarian, Indonesian, Irish, Italian, Lithuanian, Nepali, Norwegian, Portuguese, Romanian, Russian, Serbian, Spanish, Swedish, Tamil, Turkish and Yiddish, words are reduced to their stem (saving, saved and saves all match save) and common words such as the or of are ignored. For other languages, words are matched as written, ignoring case, and no word is ignored.