1
0
Fork 0
mirror of https://github.com/syncthing/syncthing-android.git synced 2024-11-22 20:31:16 +00:00
syncthing-android/scripts/pull-translations.bash
André Colomb 6b677b3e29
Fix Transifex config to make pull script work again. (#1993)
* Migrate to new tx config file format.
* Remove obsolete CLI flag specifying the resource ID.
* Imported translations
2023-11-07 22:20:26 +01:00

22 lines
756 B
Bash
Executable file

#!/usr/bin/env bash
set -e
printf "Pulling Translations
-----------------------------
"
# Force pull to make sure this is executed. Apparently tx only compares timestamps, not file
# contents. So if a file was `touch`ed, it won't be updated by default.
# Use multiple transifex instances for pulling to speed things up.
tx pull -a -f "syncthing-android.stringsxml" &
tx pull -a -f "syncthing-android.description_fulltxt" &
tx pull -a -f "syncthing-android.description_shorttxt" &
tx pull -a -f "syncthing-android.titletxt" &
wait
./gradlew deleteUnsupportedPlayTranslations
git add -A "app/src/main/play/"
git add -A "app/src/main/res/values-*/strings.xml"
if ! git diff --cached --exit-code >/dev/null;
then
git commit -m "Imported translations"
fi