summaryrefslogtreecommitdiff
path: root/po
diff options
context:
space:
mode:
authorBastien Nocera <hadess@hadess.net>2020-03-02 17:38:46 +0100
committerBastien Nocera <hadess@hadess.net>2020-03-02 17:38:46 +0100
commit5a5a3f7dd426679417c35b07925a9e916972be99 (patch)
tree35be8376f96ba6f023d917ef8eb9e06f2dcd5b3f /po
parent80aab945c0c49f37a0a38951673563b495b08715 (diff)
downloadshared-mime-info-5a5a3f7dd426679417c35b07925a9e916972be99.tar.gz
po: Add script to pull translations from Transifex
Diffstat (limited to 'po')
-rwxr-xr-xpo/update_translations.sh16
1 files changed, 16 insertions, 0 deletions
diff --git a/po/update_translations.sh b/po/update_translations.sh
new file mode 100755
index 00000000..82ef917e
--- /dev/null
+++ b/po/update_translations.sh
@@ -0,0 +1,16 @@
+#!/bin/sh
+
+set -e
+
+if [ ! -f po/shared-mime-info.pot ] ; then
+ echo "Please generate “po/shared-mime-info.pot” before running this command"
+ exit 1
+fi
+
+if [ ! -f .tx/config ] ; then
+ echo "Please run this command from the root of the source directory"
+ exit 1
+fi
+
+tx pull --all --force --skip
+tx push --source