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.
This commit is contained in:
Georg Baum 2016-04-24 21:06:12 +02:00
parent 499ffc3c13
commit 05ef47f47c

View File

@ -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: