diff options
author | Bastien Nocera <hadess@hadess.net> | 2020-03-02 17:38:46 +0100 |
---|---|---|
committer | Bastien Nocera <hadess@hadess.net> | 2020-03-02 17:38:46 +0100 |
commit | 5a5a3f7dd426679417c35b07925a9e916972be99 (patch) | |
tree | 35be8376f96ba6f023d917ef8eb9e06f2dcd5b3f | |
parent | 80aab945c0c49f37a0a38951673563b495b08715 (diff) | |
download | shared-mime-info-5a5a3f7dd426679417c35b07925a9e916972be99.tar.gz |
po: Add script to pull translations from Transifex
-rwxr-xr-x | po/update_translations.sh | 16 |
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 |