aboutsummaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorRiccardo Spagni <ric@spagni.net>2015-07-15 00:54:20 +0200
committerRiccardo Spagni <ric@spagni.net>2015-07-15 00:54:21 +0200
commitad841cb1b90101b40ce351bef51aca23fd1c26fe (patch)
tree6a54c37e4c92b3d9afaa7819f4640337a45da154 /utils
parentMerge pull request #334 (diff)
parentTranslatable strings for simplewallet (diff)
downloadmonero-ad841cb1b90101b40ce351bef51aca23fd1c26fe.tar.xz
Merge pull request #335
78b2eab Translatable strings for simplewallet (moneromooo-monero)
Diffstat (limited to 'utils')
-rwxr-xr-xutils/translations/build-translations.sh16
-rwxr-xr-xutils/translations/update-translations.sh16
2 files changed, 32 insertions, 0 deletions
diff --git a/utils/translations/build-translations.sh b/utils/translations/build-translations.sh
new file mode 100755
index 000000000..0956e633f
--- /dev/null
+++ b/utils/translations/build-translations.sh
@@ -0,0 +1,16 @@
+#!/bin/sh
+
+lrelease=`which lrelease 2> /dev/null`
+if test -z "$lrelease"
+then
+ lrelease=`which lrelease-qt4 2> /dev/null`
+fi
+if test -z "$lrelease"
+then
+ echo "lrelease not found"
+ exit 1
+fi
+
+echo "using $lrelease"
+"$lrelease" translations/*.ts
+
diff --git a/utils/translations/update-translations.sh b/utils/translations/update-translations.sh
new file mode 100755
index 000000000..778aa5176
--- /dev/null
+++ b/utils/translations/update-translations.sh
@@ -0,0 +1,16 @@
+#!/bin/sh
+
+lupdate=`which lupdate 2> /dev/null`
+if test -z "$lupdate"
+then
+ lupdate=`which lupdate-qt4 2> /dev/null`
+fi
+if test -z "$lupdate"
+then
+ echo "lupdate not found"
+ exit 1
+fi
+
+echo "using $lupdate"
+"$lupdate" `find src -name \*.cpp` -ts translations/*.ts
+