Knowledgebase: translator > resources
auto-translatables: translation pair in parentheses matched but not "translated"
Posted by Peter Reynolds, Last modified by Viktor Mochnács on 26 March 2018 11:20 AM

There is a known issue with translation pairs.

If a translation pair is in parentheses, it matches, but doesn't replace.

Example:
We start with #ab#, a translation pair that replaces the letter A with B

If the rule is simply this:
#ab#

...and the replace order rule is:

$0
..then it matches A and replaces it with B, as expected.

But if the rule is this:

(?:#ab#)

...or just this:
(#ab#)

...and the replace order rule is:

$0


...then it still matches A, but doesn't replace it with B, the "translated" result it produces is still A.

Workaround

Using $1 as the replace order rule will give the desired result, A is repalced with B.

(0 vote(s))
This article was helpful
This article was not helpful

Comments (0)
Help Desk Software by Kayako support.memoq.com/index.php?