[mousetrap/gnome3-wip: 158/240] Add mt-gen-mousetrap.po



commit b136bcf9d6bf263dfbd66a37903ab85278f39a11
Author: Stoney Jackson <dr stoney gmail com>
Date:   Tue Jun 24 21:33:21 2014 -0400

    Add mt-gen-mousetrap.po

 bin/mt-gen-mousetrap.po                          |   14 ++++++++++++
 src/mousetrap/locale/en/LC_MESSAGES/mousetrap.po |   25 ++++-----------------
 2 files changed, 19 insertions(+), 20 deletions(-)
---
diff --git a/bin/mt-gen-mousetrap.po b/bin/mt-gen-mousetrap.po
new file mode 100755
index 0000000..b37bf43
--- /dev/null
+++ b/bin/mt-gen-mousetrap.po
@@ -0,0 +1,14 @@
+#!/usr/bin/env bash
+source "$(dirname "$0")/mt-define-mousetrap-home"
+(cd "$MOUSETRAP_HOME" ; xgettext \
+        --language=Python \
+        --keyword=_ \
+        --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 \
+        `find src -name "*.py" | sort`)
diff --git a/src/mousetrap/locale/en/LC_MESSAGES/mousetrap.po 
b/src/mousetrap/locale/en/LC_MESSAGES/mousetrap.po
index c8cf2de..f054947 100644
--- a/src/mousetrap/locale/en/LC_MESSAGES/mousetrap.po
+++ b/src/mousetrap/locale/en/LC_MESSAGES/mousetrap.po
@@ -1,18 +1,3 @@
-# This file is distributed under the same license as MouseTrap.
-#
-msgid ""
-msgstr ""
-"Project-Id-Version: MouseTrap\n"
-"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2014-06-24 18:45-0400\n"
-"PO-Revision-Date: 2014-06-24 18:45-0400\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"
@@ -22,6 +7,11 @@ msgstr ""
 msgid "Not moving the pointer"
 msgstr ""
 
+#: src/mousetrap/main.py:52
+#, python-format
+msgid "Could not import plugin `%s`. Check config file and PYTHONPATH."
+msgstr ""
+
 #: src/mousetrap/plugins/eyes.py:90
 msgid "Found the face"
 msgstr ""
@@ -53,8 +43,3 @@ msgstr ""
 #, python-format
 msgid "Feature not detected: %s"
 msgstr ""
-
-#: src/mousetrap/main.py:52
-#, python-format
-msgid "Could not import plugin `%s`. Check config file and PYTHONPATH."
-msgstr ""


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]