Mercurial > babel > old > mirror
changeset 420:b00041003734
Make the `POT-Creation-Date` of the catalog being updated equal to `POT-Creation-Date` of the template used to update. Fixes #148.
author | palgarvio |
---|---|
date | Mon, 15 Dec 2008 23:47:54 +0000 |
parents | 0c60d08eb487 |
children | cadc2f937a78 |
files | babel/messages/catalog.py |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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