summaryrefslogtreecommitdiff
path: root/Messages.sh
diff options
context:
space:
mode:
Diffstat (limited to 'Messages.sh')
-rw-r--r--Messages.sh23
1 files changed, 23 insertions, 0 deletions
diff --git a/Messages.sh b/Messages.sh
new file mode 100644
index 0000000..360a3d9
--- /dev/null
+++ b/Messages.sh
@@ -0,0 +1,23 @@
+#! /usr/bin/env bash
+DIR=`cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd`
+packageRoot="kodereviewer"
+echo "[merge] Extracting messages"
+packageName="org.deprecated.kodereviewer"
+find "${packageRoot}" -name '*.py' -name '*.cpp' -o -name '*.h' -o -name '*.c' -o -name '*.qml' -o -name '*.js' | sort > "${DIR}/infiles.list"
+
+xgettext \
+ --files-from=infiles.list \
+ --from-code=UTF-8 \
+ --width=400 \
+ --add-location=file \
+ -C -kde -ci18n -ki18n:1 -ki18nc:1c,2 -ki18np:1,2 -ki18ncp:1c,2,3 -ktr2i18n:1 -kI18N_NOOP:1 \
+ -kI18N_NOOP2:1c,2 -kN_:1 -kaliasLocale -kki18n:1 -kki18nc:1c,2 -kki18np:1,2 -kki18ncp:1c,2,3 \
+ --package-name="${widgetName}" \
+ -D "${packageRoot}" \
+ -D "${DIR}" \
+ -o "po/template.po" \
+ || \
+ { echo "[merge] error while calling xgettext. aborting."; exit 1; }
+ #--msgid-bugs-address="${bugAddress}" \
+
+rm "${DIR}/infiles.list"