Mercurial > babel > old > mirror
comparison babel/messages/catalog.py @ 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 | f03cc3bed4e1 |
children | d07989336794 |
comparison
equal
deleted
inserted
replaced
419:0c60d08eb487 | 420:b00041003734 |
---|---|
735 | 735 |
736 self.obsolete = odict() | 736 self.obsolete = odict() |
737 for msgid in remaining: | 737 for msgid in remaining: |
738 if no_fuzzy_matching or msgid not in fuzzy_matches: | 738 if no_fuzzy_matching or msgid not in fuzzy_matches: |
739 self.obsolete[msgid] = remaining[msgid] | 739 self.obsolete[msgid] = remaining[msgid] |
740 # Make updated catalog's POT-Creation-Date equal to the template | |
741 # used to update the catalog | |
742 self.creation_date = template.creation_date | |
740 | 743 |
741 def _key_for(self, id, context=None): | 744 def _key_for(self, id, context=None): |
742 """The key for a message is just the singular ID even for pluralizable | 745 """The key for a message is just the singular ID even for pluralizable |
743 messages, but is a ``(msgid, msgctxt)`` tuple for context-specific | 746 messages, but is a ``(msgid, msgctxt)`` tuple for context-specific |
744 messages. | 747 messages. |