Commits

Robert Lehmann committed e018008

Supply initial creation date in PO header.

Comments (0)

Files changed (2)

sphinx/builders/intl.py

 msgstr ""
 "Project-Id-Version: %(version)s\n"
 "Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2010-05-08 18:29+0200\n"
+"POT-Creation-Date: %(gettext_ctime)s\n"
 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
 "Language-Team: LANGUAGE <LL@li.org>\n"
 
 import os
 import re
+from datetime import datetime
 from os import path
 
 from sphinx.errors import ConfigError
 
         # manpage options
         man_pages = ([], None),
+
+        # gettext options
+        gettext_ctime = (lambda self:datetime.now() # should supply tz
+                                     .strftime('%Y-%m-%d %H:%M%z'),
+                         'gettext'),
     )
 
     def __init__(self, dirname, filename, overrides, tags):