android-calculatorpp/crowdin.sh
2014-07-27 18:35:42 +02:00

38 lines
1.6 KiB
Bash
Executable File

#!/bin/bash
rm -r translations
unzip calculatorpp.zip -d translations
function copyTranslation {
from=$1
to=$2
if [ ! -d $to ]; then
# if directory doesn't exist create it
mkdir $to
fi
cp $from $to
}
copyTranslation "translations/ar/app-android/*" "android-app-core/res/values-ar"
copyTranslation "translations/cs/app-android/*" "android-app-core/res/values-cs"
copyTranslation "translations/en/app-android/*" "android-app-core/res/values"
copyTranslation "translations/es-ES/app-android/*" "android-app-core/res/values-es"
copyTranslation "translations/de/app-android/*" "android-app-core/res/values-de"
copyTranslation "translations/fi/app-android/*" "android-app-core/res/values-fi"
copyTranslation "translations/fr/app-android/*" "android-app-core/res/values-fr"
copyTranslation "translations/it/app-android/*" "android-app-core/res/values-it"
copyTranslation "translations/nl/app-android/*" "android-app-core/res/values-nl"
copyTranslation "translations/pl/app-android/*" "android-app-core/res/values-pl"
copyTranslation "translations/pt-BR/app-android/*" "android-app-core/res/values-pt-rbr"
copyTranslation "translations/ru/app-android/*" "android-app-core/res/values-ru"
copyTranslation "translations/vi/app-android/*" "android-app-core/res/values-vi"
copyTranslation "translations/uk/app-android/*" "android-app-core/res/values-uk"
copyTranslation "translations/ja/app-android/*" "android-app-core/res/values-ja"
copyTranslation "translations/zh-CN/app-android/*" "android-app-core/res/values-zh-rcn"
copyTranslation "translations/zh-TW/app-android/*" "android-app-core/res/values-zh-rtw"
rm -r translations