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