# HG changeset patch # User palgarvio # Date 1180884607 0 # Node ID cbda87af9aa0bc27bafabee0f60724461f5c3047 # Parent 695884591af63867e385c43404d725c006214fa4 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'),