aboutsummaryrefslogtreecommitdiff
path: root/files/translation_migration.sh
diff options
context:
space:
mode:
authorAllan Wang <me@allanwang.ca>2017-10-24 15:40:22 -0400
committerGitHub <noreply@github.com>2017-10-24 15:40:22 -0400
commit87c8c5394638b50e561a9ffd7165f40ef29d2302 (patch)
tree36ec0d44dfb38256fe0193a72bc321e72ca63dda /files/translation_migration.sh
parent989b8c2c1e9d0b99e890625bbb1f7c9b86b374c2 (diff)
downloadkau-87c8c5394638b50e561a9ffd7165f40ef29d2302.tar.gz
kau-87c8c5394638b50e561a9ffd7165f40ef29d2302.tar.bz2
kau-87c8c5394638b50e561a9ffd7165f40ef29d2302.zip
Add french translations (#94)
* Add french translations * Add translatable tags to about
Diffstat (limited to 'files/translation_migration.sh')
-rw-r--r--files/translation_migration.sh26
1 files changed, 26 insertions, 0 deletions
diff --git a/files/translation_migration.sh b/files/translation_migration.sh
new file mode 100644
index 0000000..04f24c3
--- /dev/null
+++ b/files/translation_migration.sh
@@ -0,0 +1,26 @@
+#!/usr/bin/env bash
+
+BASE_MODULE=kpref-activity
+FOLDER=values-fr-rFR
+OUTPUT=values-fr
+
+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 \ No newline at end of file