diff options
author | Allan Wang <me@allanwang.ca> | 2017-10-24 21:06:37 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-10-24 21:06:37 -0400 |
commit | 64dbf74b7a44a25f41ed7ff2ebfa11db0bc91769 (patch) | |
tree | f4d192349f824ae28fcee309d9b8f72ac98afe7b /files/translation_migration.sh | |
parent | 3e0d4547a5618463508cb9f13a4c8158c161b11f (diff) | |
download | frost-64dbf74b7a44a25f41ed7ff2ebfa11db0bc91769.tar.gz frost-64dbf74b7a44a25f41ed7ff2ebfa11db0bc91769.tar.bz2 frost-64dbf74b7a44a25f41ed7ff2ebfa11db0bc91769.zip |
Translations (#443)
* Merge dev
* Update kau
* Add translations
* Update some strings
* Update readme
Diffstat (limited to 'files/translation_migration.sh')
-rw-r--r-- | files/translation_migration.sh | 24 |
1 files changed, 24 insertions, 0 deletions
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 |