summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuri Chornoivan <yurchor@ukr.net>2016-11-19 07:49:50 (GMT)
committerBurkhard Lück <lueck@hube-lueck.de>2016-11-19 09:01:01 (GMT)
commitfab5fefa22eebd9a6c5617fadf0ebdf6feb99db3 (patch)
treeb531ea87d5cc3cc3136705decebc500d38eb3b8b
parent62b74f97edb4bd891909c23130f9a144bc87e370 (diff)
Fix message extraction
(cherry picked from commit 1f4c7064049c9adf8d2383ac9e0f12612b99d200)
-rw-r--r--Messages.sh6
1 files changed, 2 insertions, 4 deletions
diff --git a/Messages.sh b/Messages.sh
index 4e33f43..f9f233c 100644
--- a/Messages.sh
+++ b/Messages.sh
@@ -1,8 +1,6 @@
#! /usr/bin/env bash
-$EXTRACTRC `find . -name \*.ui -o -name \*.rc -o -name \*.kcfg` >> rc.cpp
-find exercises/ -name *.json | while read FILE; do cat $FILE | sed -n 's/"name"\s*:\s*"\(.*\)",/\1/p' | sed -n 's/\s*//p' >> strings.txt; done
-find exercises/ -name *.json | while read FILE; do cat $FILE | sed -n 's/"userMessage"\s*:\s*"\(.*\)",/\1/p' | sed -n 's/\s*//p' >> strings.txt; done
+find data/ -name *.json | while read FILE; do cat $FILE | sed -n 's/"name"\s*:\s*"\(.*\)",/\1/p' | sed -n 's/\s*//p' >> strings.txt; done
+find data/ -name *.json | while read FILE; do cat $FILE | sed -n 's/"userMessage"\s*:\s*"\(.*\)",/\1/p' | sed -n 's/\s*//p' >> strings.txt; done
sort -u strings.txt | while read STR; do printf "i18nc(\"technical term, do you have a musician friend?\", \"$STR\")\n" >> rc.cpp; done
$XGETTEXT `find . -name \*.cpp -o -name \*.qml` -o $podir/minuet.pot
-rm -f rc.cpp
rm -f strings.txt