def __init__(self):
self.pot = polib.POFile()
- def pothead(self, version=None):
+ def pothead(self, version=None, date=None):
"""
Initializes the header for a POT file to reasonable defaults
"""
# We should be smarter about the Project-Id-Version attribute
if version is None:
version = 'Evergreen 1.4'
- date = time.strftime("%Y-%m-%d %H:%M:%S")
+ if date is None:
+ date = time.strftime("%Y-%m-%d %H:%M:%S") + '-0400'
self.pot.metadata['Project-Id-Version'] = version
self.pot.metadata['Report-Msgid-Bugs-To'] = \
'open-ils-dev@list.georgialibraries.org'
# Cheat and hard-code the time zone offset
- self.pot.metadata['POT-Creation-Date'] = "%s %s" % (date, '-0400')
+ self.pot.metadata['POT-Creation-Date'] = date
self.pot.metadata['PO-Revision-Date'] = 'YEAR-MO-DA HO:MI+ZONE'
self.pot.metadata['Last-Translator'] = 'FULL NAME <EMAIL@ADDRESS>'
self.pot.metadata['Language-Team'] = 'LANGUAGE <LL@li.org>'
--- /dev/null
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: Evergreen 1.4"
+"Report-Msgid-Bugs-To: open-ils-dev@list.georgialibraries.org"
+"POT-Creation-Date: 1999-12-31 23:59:59 -0400"
+"PO-Revision-Date: 2007-12-08 23:14:20 -0400"
+"Last-Translator: Dan Scott <dscott@laurentian.ca>"
+"Language-Team: fr-CA <LL@li.org>"
+"MIME-Version: 1.0"
+"Content-Type: text/plain; charset=utf-8"
+"Content-Transfer-Encoding: 8-bit"
+
+#: 240:field.aihu.org_unit.label 257:field.ancihu.org_unit.label
+msgid "Using Library"
+msgstr "Utiliser la bibliothèque"
+
+#: 2475:field.rxbt.voided.label
+msgid ""
+"Super crazy long and repetitive message ID from hell"
+"Super crazy long and repetitive message ID from hell"
+"Super crazy long and repetitive message ID from hell"
+"Super crazy long and repetitive message ID from hell"
+"Super crazy long and repetitive message ID from hell"
+msgstr "ôèàéç"
+
+#: 524:field.bre.source.label
+msgid "Record Source"
+msgstr ""
--- /dev/null
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: Evergreen 1.4"
+"Report-Msgid-Bugs-To: open-ils-dev@list.georgialibraries.org"
+"POT-Creation-Date: 2007-12-06 23:16:35 -0400"
+"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE"
+"Last-Translator: FULL NAME <EMAIL@ADDRESS>"
+"Language-Team: LANGUAGE <LL@li.org>"
+"MIME-Version: 1.0"
+"Content-Type: text/plain; charset=utf-8"
+"Content-Transfer-Encoding: 8-bit"
+
+#: 240:field.aihu.org_unit.label 257:field.ancihu.org_unit.label
+msgid "Using Library"
+msgstr ""
+
+#: 2475:field.rxbt.voided.label
+msgid ""
+"Super crazy long and repetitive message ID from hell"
+"Super crazy long and repetitive message ID from hell"
+"Super crazy long and repetitive message ID from hell"
+"Super crazy long and repetitive message ID from hell"
+"Super crazy long and repetitive message ID from hell"
+msgstr ""
+
+#: 524:field.bre.source.label
+msgid "Record Source"
+msgstr ""