diff options
-rw-r--r-- | .github/workflows/translate.yml | 6 | ||||
-rw-r--r-- | changelog/unreleased/9105 | 7 | ||||
-rw-r--r-- | translations/Makefile | 24 |
3 files changed, 27 insertions, 10 deletions
diff --git a/.github/workflows/translate.yml b/.github/workflows/translate.yml index baf7a7600..eef079f18 100644 --- a/.github/workflows/translate.yml +++ b/.github/workflows/translate.yml @@ -22,6 +22,9 @@ jobs: submodules: recursive ref: 2.8 + - name: l10n-remove-old + run: bash .github/workflows/run-in-docker.sh rabits/qt:5.12-desktop "cd translations && make l10n-remove-old" + - name: l10n-read run: bash .github/workflows/run-in-docker.sh rabits/qt:5.12-desktop "cd translations && make l10n-read" @@ -32,9 +35,6 @@ jobs: - name: l10n-pull run: bash .github/workflows/run-in-docker.sh owncloudci/transifex:latest "cd translations && make l10n-pull" - - name: l10n-write - run: bash .github/workflows/run-in-docker.sh owncloudci/transifex:latest "cd translations && make l10n-write" - - name: l10n-clean run: bash .github/workflows/run-in-docker.sh owncloudci/transifex:latest "cd translations && make l10n-clean" diff --git a/changelog/unreleased/9105 b/changelog/unreleased/9105 new file mode 100644 index 000000000..a7a24718f --- /dev/null +++ b/changelog/unreleased/9105 @@ -0,0 +1,7 @@ +Bugfix: Remove outdated translations + +Due to a bug we were not removing the translations that fell below +a required quality margin, we only stopped updating them. +Resulting in even worse translations in some cases. + +https://github.com/owncloud/client/issues/9105 diff --git a/translations/Makefile b/translations/Makefile index 47fd930bd..711482457 100644 --- a/translations/Makefile +++ b/translations/Makefile @@ -1,23 +1,33 @@ # # Translation #-------------------------------------- +# pull all changes push none, intended for local testing +.PHONY: dry +dry: l10n-remove-old l10n-read l10n-pull +# remove outdated translations +.PHONY: l10n-remove-old +l10n-remove-old: + rm *.ts + git checkout client_en.ts + +# update the generated source translation +.PHONY: l10n-read +l10n-read: + cd .. && lupdate src -no-obsolete -ts translations/client_en.ts + +# push the changed from l10n-read .PHONY: l10n-push l10n-push: tx -d push -s --skip --no-interactive +# pull all translation from transifex .PHONY: l10n-pull l10n-pull: tx -d pull --force --skip --all --minimum-perc=75 +# tx might apply changes to .tx/config, we don't want that .PHONY: l10n-clean l10n-clean: - rm -rf l10n/ git checkout .tx/config -.PHONY: l10n-read -l10n-read: - cd .. && lupdate src -no-obsolete -ts translations/client_en.ts - -.PHONY: l10n-write -l10n-write: ; |