]> git.ipfire.org Git - thirdparty/babel.git/commitdiff
Changing `write_po` to include licensing info, same as the project. Since the method...
authorPedro Algarvio <pedro@algarvio.me>
Sun, 3 Jun 2007 15:30:07 +0000 (15:30 +0000)
committerPedro Algarvio <pedro@algarvio.me>
Sun, 3 Jun 2007 15:30:07 +0000 (15:30 +0000)
babel/catalog/pofile.py

index ba19a4e93adba8ea47e3b8f7f4b42e1433fc101f..33431ece579b6e0c71fcf1c1253a1120aa10b507 100644 (file)
@@ -133,9 +133,12 @@ def read_po(fileobj):
 
 POT_HEADER = """\
 # Translations Template for %%(project)s.
-# Copyright (C) YEAR ORGANIZATION
+# Copyright (C) %%(year)s ORGANIZATION
+# This file is distributed under the same license as the
+# %%(project)s project.
 # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
 #
+#, fuzzy
 msgid ""
 msgstr ""
 "Project-Id-Version: %%(project)s %%(version)s\\n"
@@ -290,6 +293,7 @@ def write_po(fileobj, messages, project='PROJECT', version='VERSION', width=76,
 
     if not omit_header:
         _write(POT_HEADER % {
+            'year': time.strftime('%Y'),
             'project': project,
             'version': version,
             'creation_date': time.strftime('%Y-%m-%d %H:%M%z'),