Commit 7e1319e2 authored by Michal Čihař's avatar Michal Čihař

Notify only about not translated units

parent ba38ac9f
......@@ -1406,7 +1406,7 @@ class Translation(models.Model):
if not unit.istranslatable() or unit.isblank():
continue
newunit, is_new = Unit.objects.update_from_unit(self, unit, pos)
was_new = was_new or is_new
was_new = was_new or (is_new and not newunit.translated)
pos += 1
try:
oldunits.remove(newunit.id)
......@@ -1421,8 +1421,8 @@ class Translation(models.Model):
continue
unit = store.findid(template_unit.getid())
newunit, is_new = Unit.objects.update_from_unit(self, unit, pos, template = template_unit)
was_new = was_new or (is_new and not newunit.translated)
pos += 1
was_new = was_new or is_new
try:
oldunits.remove(newunit.id)
except:
......
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