Save fuzzy flag updates to backend
This commit is contained in:
parent
db8f007e44
commit
08bb92f8aa
@ -244,7 +244,8 @@ class Translation(models.Model):
|
|||||||
need_save = False
|
need_save = False
|
||||||
for pounit in pounits:
|
for pounit in pounits:
|
||||||
if pounit.getcontext() == unit.context:
|
if pounit.getcontext() == unit.context:
|
||||||
if unit.target != join_plural(pounit.target.strings):
|
if unit.target != join_plural(pounit.target.strings) or unit.fuzzy != pounit.isfuzzy():
|
||||||
|
pounit.markfuzzy(unit.fuzzy)
|
||||||
if unit.is_plural():
|
if unit.is_plural():
|
||||||
pounit.settarget(unit.get_target_plurals())
|
pounit.settarget(unit.get_target_plurals())
|
||||||
else:
|
else:
|
||||||
@ -315,7 +316,6 @@ class Unit(models.Model):
|
|||||||
# Store to backend
|
# Store to backend
|
||||||
(saved, pounit) = self.translation.update_unit(self, request)
|
(saved, pounit) = self.translation.update_unit(self, request)
|
||||||
self.translated = pounit.istranslated()
|
self.translated = pounit.istranslated()
|
||||||
self.fuzzy = pounit.isfuzzy()
|
|
||||||
self.save(backend = True)
|
self.save(backend = True)
|
||||||
# Propagate to other projects
|
# Propagate to other projects
|
||||||
if propagate:
|
if propagate:
|
||||||
|
Loading…
Reference in New Issue
Block a user