From e0e7ef168856bb431076cfe45f6c456d12091233 Mon Sep 17 00:00:00 2001 From: David Stanek Date: Thu, 5 Sep 2013 13:15:57 -0400 Subject: [PATCH] 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. --- babel/messages/catalog.py | 5 +++++ 1 file changed, 5 insertions(+) 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 -- 2.47.3