Properly handle non-plural strings here
This commit is contained in:
parent
7a3d53062a
commit
4b1e715809
@ -368,6 +368,8 @@ class Unit(models.Model):
|
|||||||
return split_plural(self.source)
|
return split_plural(self.source)
|
||||||
|
|
||||||
def get_target_plurals(self):
|
def get_target_plurals(self):
|
||||||
|
if not self.is_plural():
|
||||||
|
return self.target
|
||||||
ret = split_plural(self.target)
|
ret = split_plural(self.target)
|
||||||
plurals = self.translation.language.nplurals
|
plurals = self.translation.language.nplurals
|
||||||
if len(ret) == plurals:
|
if len(ret) == plurals:
|
||||||
|
Loading…
Reference in New Issue
Block a user