6 po
= polib
.pofile(sys
.argv
[1])
7 poupdate
= polib
.pofile(sys
.argv
[2])
9 for origentry
in po
.fuzzy_entries():
10 for updateentry
in poupdate
.translated_entries():
11 if origentry
.msgctxt
is None and origentry
.msgid
== updateentry
.msgid
:
12 origentry
.msgstr
= updateentry
.msgstr
13 origentry
.flags
.remove('fuzzy')
15 for origentry
in po
.untranslated_entries():
16 for updateentry
in poupdate
.translated_entries():
17 if origentry
.msgctxt
is None and origentry
.msgid
== updateentry
.msgid
:
18 origentry
.msgstr
= updateentry
.msgstr