Mercurial > babel > old > babel-test
comparison 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 |
comparison
equal
deleted
inserted
replaced
471:ef7aedfe3298 | 472:cb938a3bd4ba |
---|---|
708 | 708 |
709 self.obsolete = odict() | 709 self.obsolete = odict() |
710 for msgid in remaining: | 710 for msgid in remaining: |
711 if no_fuzzy_matching or msgid not in fuzzy_matches: | 711 if no_fuzzy_matching or msgid not in fuzzy_matches: |
712 self.obsolete[msgid] = remaining[msgid] | 712 self.obsolete[msgid] = remaining[msgid] |
713 # Make updated catalog's POT-Creation-Date equal to the template | |
714 # used to update the catalog | |
715 self.creation_date = template.creation_date | |
713 | 716 |
714 def _key_for(self, id): | 717 def _key_for(self, id): |
715 """The key for a message is just the singular ID even for pluralizable | 718 """The key for a message is just the singular ID even for pluralizable |
716 messages. | 719 messages. |
717 """ | 720 """ |