]> git.lyx.org Git - features.git/commitdiff
Update fuzzy translations without -o
authorGeorg Baum <baum@lyx.org>
Sun, 24 Apr 2016 19:06:12 +0000 (21:06 +0200)
committerGeorg Baum <baum@lyx.org>
Sat, 7 May 2016 08:21:24 +0000 (10:21 +0200)
This is what the polib version does already. If a translation is marked
fuzzy then it is not used, so if the other file contains a non-fuzzy
translation we do not throw away useful information if we overtake it.

development/tools/mergepo.py

index 577f348778bf0913f473e57c02dd117684d03898..a86b75d844d67b9742f04bffbaf1a9b769e3cf6e 100755 (executable)
@@ -67,7 +67,7 @@ def translate(msgid, flags, msgstr_lines, po2, options):
         if msgstr == other.msgstr:
             return 0
     else:
-        if msgstr != '':
+        if msgstr != '' and not u'fuzzy' in flags:
             return 0
         other = po2.find(msgid)
         if not other: