2016-03-20 08:43:04 +00:00
|
|
|
|
#!/bin/bash
|
|
|
|
|
. tools/config.sh
|
|
|
|
|
|
|
|
|
|
#https://github.com/mendhak/Crowdin-Android-Importer
|
2018-07-08 13:04:12 +00:00
|
|
|
|
#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/
|
2018-07-10 09:23:05 +00:00
|
|
|
|
rm -R ${project_dir}/app/src/main/res/values-fi*
|
2018-07-08 13:04:12 +00:00
|
|
|
|
|
|
|
|
|
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/
|
|
|
|
|
|
|
|
|
|
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/
|
|
|
|
|
|
|
|
|
|
sed -i s/-2016/–2018/ ${project_dir}/app/src/main/res/values*/strings.xml
|
|
|
|
|
sed -i s/–2016/–2018/ ${project_dir}/app/src/main/res/values*/strings.xml
|
|
|
|
|
sed -i s/-2017/–2018/ ${project_dir}/app/src/main/res/values*/strings.xml
|
|
|
|
|
sed -i s/–2017/–2018/ ${project_dir}/app/src/main/res/values*/strings.xml
|