From 96a5e49bfc2d1f0a782219eac9472c925c6f36e4 Mon Sep 17 00:00:00 2001 From: Hector Sanjuan Date: Fri, 6 Jul 2012 12:23:55 +0200 Subject: [PATCH] Self-Service: include copyright when generating translation template (cherry picked from commit 067204434dec74ed3d4d4afb7b21db810734597e) --- src/cloud/occi/lib/ui/locale/generate_messages_pot.sh | 5 ++++- src/cloud/occi/lib/ui/locale/messages.pot | 6 +++--- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/src/cloud/occi/lib/ui/locale/generate_messages_pot.sh b/src/cloud/occi/lib/ui/locale/generate_messages_pot.sh index d97cd276de..1c1fab829a 100755 --- a/src/cloud/occi/lib/ui/locale/generate_messages_pot.sh +++ b/src/cloud/occi/lib/ui/locale/generate_messages_pot.sh @@ -16,10 +16,13 @@ # limitations under the License. # #--------------------------------------------------------------------------- # +COPYRIGHT_HOLDER="2002-2012, OpenNebula Project Leads (OpenNebula.org)" +PACKAGE_NAME="OpenNebula" + find ../public/js -name \*.js > file_list.txt echo "../../../../../sunstone/public/js/sunstone.js" >> file_list.txt echo "../../../../../sunstone/public/js/sunstone-util.js" >> file_list.txt echo "../public/customize/custom.js" >> file_list.txt -xgettext --from-code=utf-8 --no-wrap --keyword=tr -L python -f file_list.txt -p . +xgettext --from-code=utf-8 --copyright-holder="$COPYRIGHT_HOLDER" --package-name="$PACKAGE_NAME" --no-wrap --keyword=tr -L python -f file_list.txt -p . mv messages.po messages.pot rm file_list.txt \ No newline at end of file diff --git a/src/cloud/occi/lib/ui/locale/messages.pot b/src/cloud/occi/lib/ui/locale/messages.pot index 19ca919f24..0271ebefd5 100644 --- a/src/cloud/occi/lib/ui/locale/messages.pot +++ b/src/cloud/occi/lib/ui/locale/messages.pot @@ -1,14 +1,14 @@ # SOME DESCRIPTIVE TITLE. -# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER +# Copyright (C) YEAR 2002-2012, OpenNebula Project Leads (OpenNebula.org) # This file is distributed under the same license as the PACKAGE package. # FIRST AUTHOR , YEAR. # #, fuzzy msgid "" msgstr "" -"Project-Id-Version: PACKAGE VERSION\n" +"Project-Id-Version: OpenNebula\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2012-07-06 10:30+0200\n" +"POT-Creation-Date: 2012-07-06 12:23+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n"