[Pkg-privacy-commits] [tails-installer] 77/210: A new .pot generating script, by ltinkl
Intrigeri
intrigeri at moszumanska.debian.org
Wed May 24 15:26:30 UTC 2017
This is an automated email from the git hooks/post-receive script.
intrigeri pushed a commit to tag 3.90.0
in repository tails-installer.
commit 20fc807af92403367efa99e7f80f1ef718f65913
Author: Martin Briza <mbriza at redhat.com>
Date: Tue Apr 14 12:43:16 2015 +0200
A new .pot generating script, by ltinkl
Only committing right now to have it in the repo
---
i18n.sh | 23 +++++++++++++++++++++++
1 file changed, 23 insertions(+)
diff --git a/i18n.sh b/i18n.sh
new file mode 100644
index 0000000..50a86bb
--- /dev/null
+++ b/i18n.sh
@@ -0,0 +1,23 @@
+#!/bin/bash
+# Author: ltinkl at redhat.com
+
+PACKAGE="liveusb-creator"
+
+# Create a list of files to scan
+GETTEXT_FILES=$(mktemp --tmpdir $PACKAGE.lst.XXXXX)
+trap 'rm -f "$GETTEXT_FILES"' EXIT
+find \( -name '*.py' -o -name '*.qml' -o -name '*.js' \) \
+ -a ! \( -path './debian/*' -o -path './builddir/*' -o -path './build/*' -o -path './.git/*' -o -path './tests/*' \) | sort \
+> $GETTEXT_FILES
+
+# Generate pot from our list
+xgettext \
+ --output po/$PACKAGE.pot \
+ --files-from $GETTEXT_FILES \
+ --qt -L Java -L Python \
+ --package-name="$PACKAGE" \
+ --add-comments=TRANSLATORS \
+ --keyword=qsTr \
+ --keyword=qsTr:1,2 \
+ --copyright-holder="RedHat Inc." \
+ --from-code="UTF-8"
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-privacy/packages/tails-installer.git
More information about the Pkg-privacy-commits
mailing list