diff options
author | Hannah von Reth <hannah.vonreth@owncloud.com> | 2022-02-21 20:23:32 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-21 20:23:32 +0300 |
commit | 5ec8c8f05b23b88c814b0799a02ce1ea86171a1f (patch) | |
tree | 334decef03595deba0e3a96c4b75267c508757f3 /translations | |
parent | 105d39c19a986164b9c0de6697babd6c3ce7cb8b (diff) |
Remove translations before we update them (#9456)
Fixes: #9105
Diffstat (limited to 'translations')
-rw-r--r-- | translations/Makefile | 24 |
1 files changed, 17 insertions, 7 deletions
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: ; |