aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorluigi1111 <luigi1111w@gmail.com>2019-08-21 15:25:18 -0500
committerluigi1111 <luigi1111w@gmail.com>2019-08-21 15:25:18 -0500
commitf1e66a03f1c8e2c5fa41f9303563fb4557f8e1ad (patch)
treee2b5acdebd672f7b7a512f792ec51b0d23112d85
parentMerge pull request #5755 (diff)
parenttranslations: add a ready file to control which translations to build (diff)
downloadmonero-f1e66a03f1c8e2c5fa41f9303563fb4557f8e1ad.tar.xz
Merge pull request #5757
a12ca68 translations: add a ready file to control which translations to build (moneromooo-monero)
-rw-r--r--translations/ready4
-rwxr-xr-xutils/translations/build-translations.sh12
2 files changed, 15 insertions, 1 deletions
diff --git a/translations/ready b/translations/ready
new file mode 100644
index 000000000..a6f2fd872
--- /dev/null
+++ b/translations/ready
@@ -0,0 +1,4 @@
+fr
+it
+ja
+sv
diff --git a/utils/translations/build-translations.sh b/utils/translations/build-translations.sh
index 0956e633f..1217dca0a 100755
--- a/utils/translations/build-translations.sh
+++ b/utils/translations/build-translations.sh
@@ -12,5 +12,15 @@ then
fi
echo "using $lrelease"
-"$lrelease" translations/*.ts
+if test -f translations/ready
+then
+ languages=""
+ for language in $(cat translations/ready)
+ do
+ languages="$languages translations/$language.ts"
+ done
+else
+ languages="translations/*.ts"
+fi
+"$lrelease" $languages