From 05ef47f47ce281bfaaa5141aace5823ca61afb18 Mon Sep 17 00:00:00 2001 From: Georg Baum Date: Sun, 24 Apr 2016 21:06:12 +0200 Subject: [PATCH] Update fuzzy translations without -o 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/development/tools/mergepo.py b/development/tools/mergepo.py index 577f348778..a86b75d844 100755 --- a/development/tools/mergepo.py +++ b/development/tools/mergepo.py @@ -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: -- 2.39.5