aboutsummaryrefslogtreecommitdiff
path: root/files/translation_migration.sh
blob: cfdd4704586ecdbbf4fe88068e075442bffbdd59 (plain)
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
#!/usr/bin/env bash

BASE_MODULE=kpref-activity
FOLDER=values-de-rDE
OUTPUT=values-de

cd ..

current=${PWD##*/}

if [ "$current" != "KAU" ]; then
    echo "Not in KAU";
    return;
fi

mkdir -p about/src/main/res/${OUTPUT}
mv ${BASE_MODULE}/src/main/res/${FOLDER}/strings_about.xml about/src/main/res/${OUTPUT}/strings_about.xml

mkdir -p colorpicker/src/main/res/${OUTPUT}
mv ${BASE_MODULE}/src/main/res/${FOLDER}/strings_colorpicker.xml colorpicker/src/main/res/${OUTPUT}/strings_colorpicker.xml

mkdir -p core/src/main/res-public/${OUTPUT}
mv ${BASE_MODULE}/src/main/res/${FOLDER}/strings_commons.xml core/src/main/res-public/${OUTPUT}/strings_commons.xml

mkdir -p mediapicker/src/main/res/${OUTPUT}
mv ${BASE_MODULE}/src/main/res/${FOLDER}/strings_mediapicker.xml mediapicker/src/main/res/${OUTPUT}/strings_mediapicker.xml