From 64dbf74b7a44a25f41ed7ff2ebfa11db0bc91769 Mon Sep 17 00:00:00 2001 From: Allan Wang Date: Tue, 24 Oct 2017 21:06:37 -0400 Subject: Translations (#443) * Merge dev * Update kau * Add translations * Update some strings * Update readme --- files/translation_migration.sh | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 files/translation_migration.sh (limited to 'files') diff --git a/files/translation_migration.sh b/files/translation_migration.sh new file mode 100644 index 00000000..bf5a33ca --- /dev/null +++ b/files/translation_migration.sh @@ -0,0 +1,24 @@ +#!/usr/bin/env bash + +cd .. + +current=${PWD##*/} + +if [ "$current" != "Frost-for-Facebook" ]; then + echo "Not in Frost"; + return; +fi + +declare -a folders=("es" "fr" "de") + +cd app/src/main/res + +for d in $(find ./values-* -type d) ; do + key=$(echo $d | cut -d '-' -f2) + + if ! [[ ${folders[*]} =~ "$key" ]]; then + rm -r "$d" + else + mv "$d" "./values-$key" + fi +done \ No newline at end of file -- cgit v1.2.3