diff babel/messages/catalog.py @ 472:cb938a3bd4ba stable-0.9.x

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 c7dcb9cd140b
children 1dd3592c6159
line wrap: on
line diff
--- a/babel/messages/catalog.py
+++ b/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
Copyright (C) 2012-2017 Edgewall Software