Mercurial > babel > old > mirror
changeset 29:cbda87af9aa0
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.
author | palgarvio |
---|---|
date | Sun, 03 Jun 2007 15:30:07 +0000 |
parents | 695884591af6 |
children | 9a00ac84004c |
files | babel/catalog/pofile.py |
diffstat | 1 files changed, 5 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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 <EMAIL@ADDRESS>, 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'),