From 4b1e715809c72c5eba6ebd1562ed590b83dc9a0d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= Date: Thu, 1 Mar 2012 13:30:41 +0100 Subject: [PATCH] Properly handle non-plural strings here --- trans/models.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/trans/models.py b/trans/models.py index a3ac3d035..40d9f4560 100644 --- a/trans/models.py +++ b/trans/models.py @@ -368,6 +368,8 @@ class Unit(models.Model): return split_plural(self.source) def get_target_plurals(self): + if not self.is_plural(): + return self.target ret = split_plural(self.target) plurals = self.translation.language.nplurals if len(ret) == plurals: