diff options
author | Joas Schilling <213943+nickvergessen@users.noreply.github.com> | 2022-10-19 12:20:24 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-19 12:20:24 +0300 |
commit | 320ad515a79f7e17dd027eed6a4fbeb3252d1d48 (patch) | |
tree | d4eff992ac1cf0a4874eeb9a29b21032bfa5dbe0 | |
parent | 663e3ffebcc06c832e6f1ff31aa75a95f80da790 (diff) | |
parent | f41c7578be0102f3a64e333d5be11001745ce45d (diff) |
Merge pull request #450 from nextcloud/bugfix/noid/fix-android-translations-2
Fix android translations 2
-rwxr-xr-x | translations/handlePlainTranslations.sh | 33 |
1 files changed, 26 insertions, 7 deletions
diff --git a/translations/handlePlainTranslations.sh b/translations/handlePlainTranslations.sh index 033c71c..a5225cf 100755 --- a/translations/handlePlainTranslations.sh +++ b/translations/handlePlainTranslations.sh @@ -13,13 +13,6 @@ git clone git@github.com:$1/$2 /app versions="master $(git branch -r | grep -E "origin\/stable\-[0-9\.]+$" | cut -f2 -d"/")" -# Migrate the transifex config to the new client version -tx migrate -git add .tx/config -rm .tx/config_* -git commit -am "[tx-robot] Update transifex configuration" -s || true -git push - # remove existing translations to cleanup not maintained languages # default Android app if [ -d src/main/res ]; then @@ -69,6 +62,14 @@ if [ $1 = "nextcloud" -a $2 = "talk-android" ]; then for version in $versions do git checkout $version + + # Migrate the transifex config to the new client version + tx migrate + git add .tx/config + rm .tx/config_* + git commit -am "[tx-robot] Update transifex configuration" -s || true + git push + cp app/src/main/res/values/strings.xml stable-values/$version.xml done @@ -131,6 +132,24 @@ do git checkout -- src/main/res/values/strings.xml fi + # for the default Android app rename the informal german to the formal version + if [ -d src/main/res ]; then + rm -rf src/main/res/values-de + mv src/main/res/values-de-rDE src/main/res/values-de + fi + + # for the Android talk and files app rename the informal german to the formal version + if [ -d app/src/main/res ]; then + rm -rf app/src/main/res/values-de + mv app/src/main/res/values-de-rDE app/src/main/res/values-de + fi + + # for the Android news app rename the informal german to the formal version + if [ -d News-Android-App/src/main/res ]; then + rm -rf News-Android-App/src/main/res/values-de + mv News-Android-App/src/main/res/values-de-rDE News-Android-App/src/main/res/values-de + fi + if [ -e "scripts/metadata/generate_metadata.py" ]; then # copy transifex strings to fastlane python3 scripts/metadata/generate_metadata.py |