forked from Gitoffthelawn/NetGuard
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcrowdin.sh
41 lines (35 loc) · 2.18 KB
/
crowdin.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#!/bin/bash
. tools/config.sh
#https://github.com/mendhak/Crowdin-Android-Importer
#git clone https://github.com/mendhak/Crowdin-Android-Importer.git
#sudo apt-get install python python-pip
#sudo apt-get install libssl-dev libcurl4-openssl-dev
#pip install pycurl
rm -R ${project_dir}/app/src/main/res/values-iw/
rm -R ${project_dir}/app/src/main/res/values-ar-rBH/
rm -R ${project_dir}/app/src/main/res/values-ar-rEG/
rm -R ${project_dir}/app/src/main/res/values-ar-rSA/
rm -R ${project_dir}/app/src/main/res/values-ar-rYE/
rm -R ${project_dir}/app/src/main/res/values-fi*
rm -R ${project_dir}/app/src/main/res/values-nb/
python ${importer_dir}/crowdin.py --p=app/src/main -a=get -i netguard -k ${api_key}
mkdir -p ${project_dir}/app/src/main/res/values-iw/
mkdir -p ${project_dir}/app/src/main/res/values-ar-rBH/
mkdir -p ${project_dir}/app/src/main/res/values-ar-rEG/
mkdir -p ${project_dir}/app/src/main/res/values-ar-rSA/
mkdir -p ${project_dir}/app/src/main/res/values-ar-rYE/
mkdir -p ${project_dir}/app/src/main/res/values-nb/
cp -R ${project_dir}/app/src/main/res/values-he/* ${project_dir}/app/src/main/res/values-iw/
cp -R ${project_dir}/app/src/main/res/values-ar/* ${project_dir}/app/src/main/res/values-ar-rBH/
cp -R ${project_dir}/app/src/main/res/values-ar/* ${project_dir}/app/src/main/res/values-ar-rEG/
cp -R ${project_dir}/app/src/main/res/values-ar/* ${project_dir}/app/src/main/res/values-ar-rSA/
cp -R ${project_dir}/app/src/main/res/values-ar/* ${project_dir}/app/src/main/res/values-ar-rYE/
cp -R ${project_dir}/app/src/main/res/values-no/* ${project_dir}/app/src/main/res/values-nb/
sed -i s/-2016/–2020/ ${project_dir}/app/src/main/res/values*/strings.xml
sed -i s/–2016/–2020/ ${project_dir}/app/src/main/res/values*/strings.xml
sed -i s/-2017/–2020/ ${project_dir}/app/src/main/res/values*/strings.xml
sed -i s/–2017/–2020/ ${project_dir}/app/src/main/res/values*/strings.xml
sed -i s/-2018/–2020/ ${project_dir}/app/src/main/res/values*/strings.xml
sed -i s/–2018/–2020/ ${project_dir}/app/src/main/res/values*/strings.xml
sed -i s/-2019/–2020/ ${project_dir}/app/src/main/res/values*/strings.xml
sed -i s/–2019/–2020/ ${project_dir}/app/src/main/res/values*/strings.xml