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

Make return values consistent

parent 9c4685fc
......@@ -489,7 +489,7 @@ class Unit(models.Model):
def get_target_plurals(self):
if not self.is_plural():
return self.target
return [self.target]
ret = split_plural(self.target)
plurals = self.translation.language.nplurals
if len(ret) == plurals:
......
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