From 0fa050534e07e75fd74993b3ea508b6ed53c8495 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= Date: Mon, 27 Feb 2012 17:54:42 +0100 Subject: [PATCH] Use new shared plurals code --- trans/managers.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/trans/managers.py b/trans/managers.py index 24b7d1566..5b4639dd4 100644 --- a/trans/managers.py +++ b/trans/managers.py @@ -2,6 +2,8 @@ from django.db import models from lang.models import Language +from util import is_plural, split_plural, join_plural + class TranslationManager(models.Manager): def update_from_blob(self, subproject, code, path, blob): ''' @@ -19,7 +21,7 @@ class UnitManager(models.Manager): ''' Process translation toolkit unit and stores/updates database entry. ''' - src = '\x00\x00'.join(unit.source.strings) + src = join_plural(unit.source.strings) ctx = unit.getcontext() dbunit, created = self.get_or_create( translation = translation,