Mercurial > babel > old > mirror
diff 0.9.x/babel/messages/catalog.py @ 474:c40f442c22b7 stable
Merged revisions 460-461 via svnmerge from
http://svn.edgewall.org/repos/babel/trunk
........
r460 | palgarvio | 2008-12-16 00:47:54 +0100 (di, 16 dec 2008) | 2 lines
Make the `POT-Creation-Date` of the catalog being updated equal to `POT-Creation-Date` of the template used to update. Fixes #148.
........
r461 | palgarvio | 2008-12-16 14:35:23 +0100 (di, 16 dec 2008) | 2 lines
Testcase for fix of #148.
........
author | jruigrok |
---|---|
date | Sun, 11 Apr 2010 08:20:56 +0000 |
parents | 8941027e8b22 |
children | 39dd1c71fb5b |
line wrap: on
line diff
--- a/0.9.x/babel/messages/catalog.py +++ b/0.9.x/babel/messages/catalog.py @@ -710,6 +710,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): """The key for a message is just the singular ID even for pluralizable