# HG changeset patch # User palgarvio # Date 1229384874 0 # Node ID 22d5d7fbaa5fae58c6fa9a84e7686d2382e6200b # Parent 4acdc0fdb87ca4f47d1c65812bf9ed60996f7a9a Make the `POT-Creation-Date` of the catalog being updated equal to `POT-Creation-Date` of the template used to update. Fixes #148. diff --git a/babel/messages/catalog.py b/babel/messages/catalog.py --- a/babel/messages/catalog.py +++ b/babel/messages/catalog.py @@ -737,6 +737,9 @@ for msgid in remaining: if no_fuzzy_matching or msgid not in fuzzy_matches: self.obsolete[msgid] = remaining[msgid] + # Make updated catalog's POT-Creation-Date equal to the template + # used to update the catalog + self.creation_date = template.creation_date def _key_for(self, id, context=None): """The key for a message is just the singular ID even for pluralizable