From 31f4fd3607e3f02d81ba3937a71e4cfff72e9ad2 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jean-No=C3=ABl=20Avila?= <jn.avila@free.fr>
Date: Fri, 22 May 2020 22:52:19 +0200
Subject: [PATCH] prepare translation files when updating from sources
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Signed-off-by: Jean-No챘l Avila <jn.avila@free.fr>
---
 Makefile | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/Makefile b/Makefile
index 7d6905d..8fd9f12 100644
--- a/Makefile
+++ b/Makefile
@@ -24,6 +24,8 @@ po4a-stamp: po4a.conf $(EN_SOURCES) $(LANGUAGE_PO) Makefile
 
 update-sources:
 	./scripts/update-sources.sh
+	$(QUIET_PO4A)PERL5LIB=./po4a/lib po4a/po4a -v po4a.conf
+	for f in po/documentation.*.po; do ./scripts/pre-translate-po $f; ./scripts/set-priorities $f; done
 
 define MAKE_TARGET
 
-- 
GitLab