# HG changeset patch # User cmlenz # Date 1181319730 0 # Node ID 2b0e18a04856944f88f47bf4a43b2c1bf062741e # Parent 9b8079807245bba0084066df6222167af1bb5207 Fix for mixed singular/plural messages, follow-up to [70]. diff --git a/babel/messages/catalog.py b/babel/messages/catalog.py --- a/babel/messages/catalog.py +++ b/babel/messages/catalog.py @@ -49,7 +49,7 @@ 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 @@ 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