From: David Stanek Date: Thu, 5 Sep 2013 17:15:57 +0000 (-0400) Subject: Updates a catalog's header to from the template X-Git-Tag: 2.2.0~4^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e0e7ef168856bb431076cfe45f6c456d12091233;p=thirdparty%2Fbabel.git Updates a catalog's header to from the template A language specific catalog's initial header is based on the template when it is created. Updates to the template's header were previously not getting into the catalog during the update_catalog process. --- diff --git a/babel/messages/catalog.py b/babel/messages/catalog.py index 21499ae6..f72a34fc 100644 --- a/babel/messages/catalog.py +++ b/babel/messages/catalog.py @@ -797,6 +797,11 @@ class Catalog(object): for msgid in remaining: if no_fuzzy_matching or msgid not in fuzzy_matches: self.obsolete[msgid] = remaining[msgid] + + # Allow the updated catalog's header to be rewritten based on the + # template's header + self.header_comment = template.header_comment + # Make updated catalog's POT-Creation-Date equal to the template # used to update the catalog self.creation_date = template.creation_date