]> git.ipfire.org Git - thirdparty/babel.git/commitdiff
Fix for mixed singular/plural messages, follow-up to [70].
authorChristopher Lenz <cmlenz@gmail.com>
Fri, 8 Jun 2007 16:22:10 +0000 (16:22 +0000)
committerChristopher Lenz <cmlenz@gmail.com>
Fri, 8 Jun 2007 16:22:10 +0000 (16:22 +0000)
babel/messages/catalog.py

index 959b0eeed4a7bc2ae981622d6a54871ac2b770b6..d51e8fa84d2d27f807de049668671569b2292b63 100644 (file)
@@ -49,7 +49,7 @@ class Message(object):
         if not string and self.pluralizable:
             string = (u'', u'')
         self.string = string
-        self.locations = locations
+        self.locations = list(locations)
         self.flags = set(flags)
         if id and self.python_format:
             self.flags.add('python-format')
@@ -309,6 +309,7 @@ class Catalog(object):
             if message.pluralizable and not current.pluralizable:
                 # The new message adds pluralization
                 current.id = message.id
+                current.string = message.string
             current.locations.extend(message.locations)
             current.flags |= message.flags
             message = current