diff options
Diffstat (limited to 'translations/Makefile')
-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: ; |