Commit c3c9159c authored by Michal Čihař's avatar Michal Čihař

Do not set fuzzy flag on translation change

When there is a change in monolingual file in both source and
translation, let's assume this was some automatic fixup and do not raise
fuzzy flag.

Fixes #352
parent 0dd38523
......@@ -381,14 +381,14 @@ class Unit(models.Model):
previous_source = unit.get_previous_source()
contentsum = unit.get_contentsum()
# Monolingual files handling
if unit.template is not None:
# Monolingual files handling (without target change)
if unit.template is not None and target == self.target:
if source != self.source and translated:
# Store previous source and fuzzy flag for monolingual files
if previous_source == '':
previous_source = self.source
fuzzy = True
elif target == self.target:
else:
# We should keep calculated flags if translation was
# not changed outside
previous_source = self.previous_source
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment