Autotranslatables translation pair in parentheses matched but not translated
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.
Comments
0 comments
Please sign in to leave a comment.