diff options
author | Allan Wang <me@allanwang.ca> | 2017-12-02 22:14:03 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-12-02 22:14:03 -0500 |
commit | 4e37571742da6a8ad087239fa5f7968a9e2fe465 (patch) | |
tree | 6d436f50644d11e7aa6934f14ee6d0c9556e09d1 /files/translation_migration.sh | |
parent | 7038128dd14ca6cdde6f2fa84f34f75b3e457202 (diff) | |
download | kau-4e37571742da6a8ad087239fa5f7968a9e2fe465.tar.gz kau-4e37571742da6a8ad087239fa5f7968a9e2fe465.tar.bz2 kau-4e37571742da6a8ad087239fa5f7968a9e2fe465.zip |
Translations (#109)
* New translations strings_about.xml (Afrikaans)
* New translations strings_mediapicker.xml (Norwegian)
* New translations strings_mediapicker.xml (Portuguese, Brazilian)
* New translations strings_commons.xml (Portuguese, Brazilian)
* New translations strings_colorpicker.xml (Portuguese, Brazilian)
* New translations strings_about.xml (Portuguese, Brazilian)
* New translations strings_mediapicker.xml (Portuguese)
* New translations strings_commons.xml (Portuguese)
* New translations strings_colorpicker.xml (Portuguese)
* New translations strings_about.xml (Portuguese)
* New translations strings_mediapicker.xml (Polish)
* New translations strings_commons.xml (Polish)
* New translations strings_colorpicker.xml (Polish)
* New translations strings_about.xml (Polish)
* New translations strings_commons.xml (Norwegian)
* New translations strings_colorpicker.xml (Romanian)
* New translations strings_colorpicker.xml (Norwegian)
* New translations strings_about.xml (Norwegian)
* New translations strings_mediapicker.xml (Korean)
* New translations strings_commons.xml (Korean)
* New translations strings_colorpicker.xml (Korean)
* New translations strings_about.xml (Korean)
* New translations strings_mediapicker.xml (Japanese)
* New translations strings_commons.xml (Japanese)
* New translations strings_colorpicker.xml (Japanese)
* New translations strings_about.xml (Japanese)
* New translations strings_mediapicker.xml (Italian)
* New translations strings_commons.xml (Italian)
* New translations strings_colorpicker.xml (Italian)
* New translations strings_about.xml (Romanian)
* New translations strings_commons.xml (Romanian)
* New translations strings_mediapicker.xml (Hungarian)
* New translations strings_commons.xml (Swedish)
* New translations strings_commons.xml (Vietnamese)
* New translations strings_colorpicker.xml (Vietnamese)
* New translations strings_about.xml (Vietnamese)
* New translations strings_mediapicker.xml (Ukrainian)
* New translations strings_commons.xml (Ukrainian)
* New translations strings_colorpicker.xml (Ukrainian)
* New translations strings_about.xml (Ukrainian)
* New translations strings_mediapicker.xml (Turkish)
* New translations strings_commons.xml (Turkish)
* New translations strings_colorpicker.xml (Turkish)
* New translations strings_about.xml (Turkish)
* New translations strings_mediapicker.xml (Swedish)
* New translations strings_colorpicker.xml (Swedish)
* New translations strings_mediapicker.xml (Romanian)
* New translations strings_about.xml (Swedish)
* New translations strings_mediapicker.xml (Spanish)
* New translations strings_commons.xml (Spanish)
* New translations strings_colorpicker.xml (Spanish)
* New translations strings_about.xml (Spanish)
* New translations strings_mediapicker.xml (Serbian (Cyrillic))
* New translations strings_commons.xml (Serbian (Cyrillic))
* New translations strings_colorpicker.xml (Serbian (Cyrillic))
* New translations strings_about.xml (Serbian (Cyrillic))
* New translations strings_mediapicker.xml (Russian)
* New translations strings_commons.xml (Russian)
* New translations strings_colorpicker.xml (Russian)
* New translations strings_about.xml (Russian)
* New translations strings_about.xml (Italian)
* New translations strings_commons.xml (Hungarian)
* New translations strings_colorpicker.xml (Afrikaans)
* New translations strings_about.xml (Chinese Traditional)
* New translations strings_about.xml (Dutch)
* New translations strings_mediapicker.xml (Danish)
* New translations strings_commons.xml (Danish)
* New translations strings_colorpicker.xml (Danish)
* New translations strings_about.xml (Danish)
* New translations strings_mediapicker.xml (Czech)
* New translations strings_commons.xml (Czech)
* New translations strings_colorpicker.xml (Czech)
* New translations strings_about.xml (Czech)
* New translations strings_mediapicker.xml (Chinese Traditional)
* New translations strings_commons.xml (Chinese Traditional)
* New translations strings_colorpicker.xml (Chinese Traditional)
* New translations strings_mediapicker.xml (Chinese Simplified)
* New translations strings_commons.xml (Dutch)
* New translations strings_commons.xml (Chinese Simplified)
* New translations strings_colorpicker.xml (Chinese Simplified)
* New translations strings_about.xml (Chinese Simplified)
* New translations strings_mediapicker.xml (Catalan)
* New translations strings_commons.xml (Catalan)
* New translations strings_colorpicker.xml (Catalan)
* New translations strings_about.xml (Catalan)
* New translations strings_mediapicker.xml (Arabic)
* New translations strings_commons.xml (Arabic)
* New translations strings_colorpicker.xml (Arabic)
* New translations strings_about.xml (Arabic)
* New translations strings_mediapicker.xml (Afrikaans)
* New translations strings_commons.xml (Afrikaans)
* New translations strings_colorpicker.xml (Dutch)
* New translations strings_mediapicker.xml (Dutch)
* New translations strings_colorpicker.xml (Hungarian)
* New translations strings_mediapicker.xml (Galician)
* New translations strings_about.xml (Hungarian)
* New translations strings_mediapicker.xml (Hebrew)
* New translations strings_commons.xml (Hebrew)
* New translations strings_colorpicker.xml (Hebrew)
* New translations strings_about.xml (Hebrew)
* New translations strings_mediapicker.xml (Greek)
* New translations strings_commons.xml (Greek)
* New translations strings_colorpicker.xml (Greek)
* New translations strings_about.xml (Greek)
* New translations strings_mediapicker.xml (German)
* New translations strings_commons.xml (German)
* New translations strings_colorpicker.xml (German)
* New translations strings_about.xml (German)
* New translations strings_commons.xml (Galician)
* New translations strings_about.xml (English)
* New translations strings_colorpicker.xml (Galician)
* New translations strings_about.xml (Galician)
* New translations strings_mediapicker.xml (French)
* New translations strings_commons.xml (French)
* New translations strings_colorpicker.xml (French)
* New translations strings_about.xml (French)
* New translations strings_mediapicker.xml (Finnish)
* New translations strings_commons.xml (Finnish)
* New translations strings_colorpicker.xml (Finnish)
* New translations strings_about.xml (Finnish)
* New translations strings_mediapicker.xml (English)
* New translations strings_commons.xml (English)
* New translations strings_colorpicker.xml (English)
* New translations strings_mediapicker.xml (Vietnamese)
* New translations strings_mediapicker.xml (Chinese Simplified)
* New translations strings_commons.xml (Dutch)
* New translations strings_commons.xml (Chinese Simplified)
* New translations strings_commons.xml (Portuguese, Brazilian)
* New translations strings_colorpicker.xml (Portuguese, Brazilian)
* New translations strings_about.xml (Portuguese, Brazilian)
* New translations strings_mediapicker.xml (Chinese Simplified)
* New translations strings_commons.xml (Dutch)
* New translations strings_commons.xml (Chinese Simplified)
* New translations strings_commons.xml (Portuguese, Brazilian)
* New translations strings_mediapicker.xml (Portuguese, Brazilian)
* Update gradle
* New translations strings_commons.xml (Polish)
* New translations strings_commons.xml (Japanese)
* New translations strings_commons.xml (English)
* New translations strings_commons.xml (Dutch)
* New translations strings_commons.xml (Chinese Traditional)
* New translations strings_mediapicker.xml (Japanese)
* New translations strings_about.xml (Polish)
* New translations strings_about.xml (Japanese)
* New translations strings_about.xml (English)
* New translations strings_about.xml (Dutch)
* New translations strings_about.xml (Chinese Traditional)
* New translations strings_colorpicker.xml (Polish)
* New translations strings_colorpicker.xml (Japanese)
* New translations strings_colorpicker.xml (English)
* New translations strings_colorpicker.xml (Dutch)
* New translations strings_colorpicker.xml (Chinese Traditional)
* Remove unnecessary builds
* Update readme, changelog, and travis
* Update appcompat
* Update readme
Diffstat (limited to 'files/translation_migration.sh')
-rw-r--r-- | files/translation_migration.sh | 20 |
1 files changed, 7 insertions, 13 deletions
diff --git a/files/translation_migration.sh b/files/translation_migration.sh index cfdd470..0b26250 100644 --- a/files/translation_migration.sh +++ b/files/translation_migration.sh @@ -1,26 +1,20 @@ #!/usr/bin/env bash -BASE_MODULE=kpref-activity -FOLDER=values-de-rDE -OUTPUT=values-de +MODULE=KAU cd .. current=${PWD##*/} -if [ "$current" != "KAU" ]; then - echo "Not in KAU"; +if [ "$current" != "$MODULE" ]; then + echo "Not in $MODULE"; 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 +# DANGEROUS! Removes all files matching regex -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 +egrep -lir --include="*.xml" "<resources.*></resources>" "./" | tr '\n' '\0' | xargs -0 -n1 rm -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 +# Delete empty directories -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 +find . -type d -empty -delete
\ No newline at end of file |