# HG changeset patch # User palgarvio # Date 1180884607 0 # Node ID 54ad80b6267481eb5999d15c48f805f27e5e1029 # Parent 6041782ea6775de66a1afff964239eded35aee3c Changing `write_po` to include licensing info, same as the project. Since the method is also to create the initial pot file, we also include the year in the copyright. We also mark the translations catalog template as fuzzy as it should be, only localized translations catalogs ready to be compiled should not include the fuzzy bit on the header. diff --git a/babel/catalog/pofile.py b/babel/catalog/pofile.py --- a/babel/catalog/pofile.py +++ b/babel/catalog/pofile.py @@ -133,9 +133,12 @@ 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 , YEAR. # +#, fuzzy msgid "" msgstr "" "Project-Id-Version: %%(project)s %%(version)s\\n" @@ -290,6 +293,7 @@ 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'),