diff options
Diffstat (limited to 'JLanguageTool/i18n_update.sh')
-rwxr-xr-x | JLanguageTool/i18n_update.sh | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/JLanguageTool/i18n_update.sh b/JLanguageTool/i18n_update.sh new file mode 100755 index 0000000..5ff87c5 --- /dev/null +++ b/JLanguageTool/i18n_update.sh @@ -0,0 +1,21 @@ +#!/bin/sh +# Download latest translations from crowdin and copy them over the existing local files. +# Note that you need to trigger crowdin export via API if you need to make sure everything +# is up-to-date (automatic export may only happen every 24 hours). + +cd ~/workspace/JLanguageTool +mkdir i18n-temp +cd i18n-temp +wget http://crowdin.net/download/project/languagetool.zip +unzip languagetool.zip + +for lang in be ca cs da de es-ES fr gl is it lt nl pl ro ru sk sl sv-SE uk +do + SOURCE="$lang/MessagesBundle.properties" + TARGET="../src/java/de/danielnaber/languagetool/MessagesBundle_${lang}.properties" + echo "Copying $SOURCE to $TARGET" + cp $SOURCE $TARGET +done + +#cd .. +#rm -r i18n-temp |