From 27dbcd3b8af3e534978960f9f3afd6e086bfaf7e Mon Sep 17 00:00:00 2001 From: M66B Date: Sun, 20 Mar 2016 09:43:04 +0100 Subject: [PATCH] Added crowdin sync script --- .gitignore | 1 + tools/crowdin.sh | 34 ++++++++++++++++++++++++++++++++++ 2 files changed, 35 insertions(+) create mode 100644 tools/crowdin.sh diff --git a/.gitignore b/.gitignore index 96ca72be..528834c8 100644 --- a/.gitignore +++ b/.gitignore @@ -6,3 +6,4 @@ .DS_Store /build /captures +/tools/config.sh diff --git a/tools/crowdin.sh b/tools/crowdin.sh new file mode 100644 index 00000000..14aeea8f --- /dev/null +++ b/tools/crowdin.sh @@ -0,0 +1,34 @@ +#!/bin/bash +. tools/config.sh + +#https://github.com/mendhak/Crowdin-Android-Importer + +rm -R /home/marcel/Documents/android/projects/NetGuard/app/src/main/res/values-iw/ +rm -R /home/marcel/Documents/android/projects/NetGuard/app/src/main/res/values-ar-rBH/ +rm -R /home/marcel/Documents/android/projects/NetGuard/app/src/main/res/values-ar-rEG/ +rm -R /home/marcel/Documents/android/projects/NetGuard/app/src/main/res/values-ar-rSA/ +rm -R /home/marcel/Documents/android/projects/NetGuard/app/src/main/res/values-ar-rYE/ + +python $importer_dir/crowdin.py --p=app/src/main -a=get -i netguard -k $api_key + +mkdir -p /home/marcel/Documents/android/projects/NetGuard/app/src/main/res/values-iw/ +mkdir -p /home/marcel/Documents/android/projects/NetGuard/app/src/main/res/values-ar-rBH/ +mkdir -p /home/marcel/Documents/android/projects/NetGuard/app/src/main/res/values-ar-rEG/ +mkdir -p /home/marcel/Documents/android/projects/NetGuard/app/src/main/res/values-ar-rSA/ +mkdir -p /home/marcel/Documents/android/projects/NetGuard/app/src/main/res/values-ar-rYE/ + +cp -R /home/marcel/Documents/android/projects/NetGuard/app/src/main/res/values-he/* \ + /home/marcel/Documents/android/projects/NetGuard/app/src/main/res/values-iw/ + +cp -R /home/marcel/Documents/android/projects/NetGuard/app/src/main/res/values-ar/* \ + /home/marcel/Documents/android/projects/NetGuard/app/src/main/res/values-ar-rBH/ + +cp -R /home/marcel/Documents/android/projects/NetGuard/app/src/main/res/values-ar/* \ + /home/marcel/Documents/android/projects/NetGuard/app/src/main/res/values-ar-rEG/ + +cp -R /home/marcel/Documents/android/projects/NetGuard/app/src/main/res/values-ar/* \ + /home/marcel/Documents/android/projects/NetGuard/app/src/main/res/values-ar-rSA/ + +cp -R /home/marcel/Documents/android/projects/NetGuard/app/src/main/res/values-ar/* \ + /home/marcel/Documents/android/projects/NetGuard/app/src/main/res/values-ar-rYE/ +