From 5ec8c8f05b23b88c814b0799a02ce1ea86171a1f Mon Sep 17 00:00:00 2001 From: Hannah von Reth Date: Mon, 21 Feb 2022 18:23:32 +0100 Subject: Remove translations before we update them (#9456) Fixes: #9105 --- translations/Makefile | 24 +++++++++++++++++------- 1 file changed, 17 insertions(+), 7 deletions(-) (limited to 'translations') 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: ; -- cgit v1.2.3