From a333e2024bcbceb318c048f7800f535f0345249f Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Tue, 25 Feb 2020 15:32:11 +1000 Subject: [PATCH] add shortcut to update translations to makefile --- Makefile | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/Makefile b/Makefile index 2a90b3e11..f1a22e879 100644 --- a/Makefile +++ b/Makefile @@ -106,3 +106,16 @@ add-buildhash: @ver=$$(cat meta/version); \ hash=$$(cat meta/buildhash); \ rename "s/-$${ver}-/-$${ver}+$${hash}-/" dist/*-$$ver-* + + +.PHONY: pull-i18n +pull-i18n: + (cd rslib/ftl && scripts/fetch-latest-translations) + (cd qt/ftl && scripts/fetch-latest-translations) + (cd qt/i18n && ./pull-git) + +.PHONY: push-i18n +push-i18n: pull-i18n + (cd rslib/ftl && scripts/upload-latest-templates) + (cd qt/ftl && scripts/upload-latest-templates) + (cd qt/i18n && ./sync-po-git)