From c25d0fa3e42480ca906c9fbece097ed4552fe1d8 Mon Sep 17 00:00:00 2001
From: Rimvydas Naktinis <naktinis@gmail.com>
Date: Wed, 24 Apr 2013 11:57:50 +0300
Subject: [PATCH] Avoid double Plural-Forms entry in translation files.
---
django/core/management/commands/makemessages.py | 2 ++
1 file changed, 2 insertions(+)
diff --git a/django/core/management/commands/makemessages.py b/django/core/management/commands/makemessages.py
index a7e9817..b811e6b 100644
a
|
b
|
class Command(NoArgsCommand):
|
414 | 414 | lines = [] |
415 | 415 | seen = False |
416 | 416 | for line in msgs.split('\n'): |
| 417 | if plural_forms_re.search(line): |
| 418 | continue |
417 | 419 | if not line and not seen: |
418 | 420 | line = '%s\n' % m.group('value') |
419 | 421 | seen = True |