Another place for new plurals code

This commit is contained in:
Michal Čihař 2012-02-27 17:56:06 +01:00
parent 0fa050534e
commit e9dd7c07a9

View File

@ -202,7 +202,7 @@ class Unit(models.Model):
def update_from_unit(self, unit): def update_from_unit(self, unit):
location = ', '.join(unit.getlocations()) location = ', '.join(unit.getlocations())
flags = '' # FIXME flags = '' # FIXME
target = PLURAL_SEPARATOR.join(unit.target.strings) target = join_plural(unit.target.strings)
fuzzy = unit.isfuzzy() fuzzy = unit.isfuzzy()
if location == self.location and flags == self.flags and target == self.target and fuzzy == self.fuzzy: if location == self.location and flags == self.flags and target == self.target and fuzzy == self.fuzzy:
return return