[mousetrap/gnome3-wip: 159/240] The header is required for msgfmt
- From: Heidi Ellis <heidiellis src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mousetrap/gnome3-wip: 159/240] The header is required for msgfmt
- Date: Mon, 8 Sep 2014 15:25:55 +0000 (UTC)
commit 054bd48a695b380640dc2ce7a07b36b10fbf826d
Author: Kevin Brown <kevin kevinbrown in>
Date: Wed Jun 25 20:28:07 2014 -0400
The header is required for msgfmt
`msgfmt` will not generate the compiled files without the header.
Because the header is hard-coded and cannot be changed or excluded
without causing problems, `sed` is used to make it consistent
across when generating while still leaving useful information
within the header.
bin/mt-gen-mousetrap.po | 19 ++++++++++++++-----
src/mousetrap/locale/en/LC_MESSAGES/mousetrap.po | 18 ++++++++++++++++++
2 files changed, 32 insertions(+), 5 deletions(-)
---
diff --git a/bin/mt-gen-mousetrap.po b/bin/mt-gen-mousetrap.po
index b37bf43..1c2ef6d 100755
--- a/bin/mt-gen-mousetrap.po
+++ b/bin/mt-gen-mousetrap.po
@@ -6,9 +6,18 @@ source "$(dirname "$0")/mt-define-mousetrap-home"
--output=src/mousetrap/locale/en/LC_MESSAGES/mousetrap.po \
--from-code=UTF-8 \
--sort-by-file \
- --copyright-holder=STRING \
- --omit-header \
- --package-name=PACKAGE \
- --package-version=VERSION \
- --msgid-bugs-address=EMAIL ADDRESS \
+ --copyright-holder="REMOVE" \
+ --package-name="MouseTrap" \
+ --package-version="master" \
+
--msgid-bugs-address="http://bugzilla.gnome.org/enter_bug.cgi?product=mousetrap&keywords=I18N+L10N&component=i18n"
\
`find src -name "*.py" | sort`)
+
+(cd "$MOUSETRAP_HOME" ; sed -i \
+ -e "1,2d" \
+ -e "3s/PACKAGE/MouseTrap/" \
+ -e '14c "Last-Translator: MouseTrap team\\n"' \
+ -e "15s/LANGUAGE/English/" \
+ -e "15s/LL/en/" \
+ -e '16c "Language: en\\n"' \
+ -e "18s/CHARSET/UTF-8/" \
+ src/mousetrap/locale/en/LC_MESSAGES/mousetrap.po)
diff --git a/src/mousetrap/locale/en/LC_MESSAGES/mousetrap.po
b/src/mousetrap/locale/en/LC_MESSAGES/mousetrap.po
index f054947..4d2cb9e 100644
--- a/src/mousetrap/locale/en/LC_MESSAGES/mousetrap.po
+++ b/src/mousetrap/locale/en/LC_MESSAGES/mousetrap.po
@@ -1,3 +1,21 @@
+# This file is distributed under the same license as the MouseTrap package.
+# FIRST AUTHOR <EMAIL ADDRESS>, YEAR.
+#
+#, fuzzy
+msgid ""
+msgstr ""
+"Project-Id-Version: MouseTrap master\n"
+"Report-Msgid-Bugs-To: http://bugzilla.gnome.org/enter_bug.cgi?"
+"product=mousetrap&keywords=I18N+L10N&component=i18n\n"
+"POT-Creation-Date: 2014-06-25 20:58-0400\n"
+"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
+"Last-Translator: MouseTrap team\n"
+"Language-Team: English <en li org>\n"
+"Language: en\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+
#: src/mousetrap/gui.py:79
#, python-format
msgid "Moving pointer to %s"
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]