From a2658651244f247678fcc5e6f2b4e263e01615c5 Mon Sep 17 00:00:00 2001 From: ArthurHoaro Date: Sat, 8 Oct 2022 07:25:32 -0400 Subject: [PATCH] Fix translate Makefile target The syntax was invalid and this target was not actually doing anything (it probably worked at some point in another context). This change make sure that the .mo files are properly generated, even in unit tests context and fixes #1893 --- Makefile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 1bfcf995..dada1058 100644 --- a/Makefile +++ b/Makefile @@ -165,7 +165,13 @@ htmldoc: ### Generate Shaarli's translation compiled file (.mo) translate: - @for pofile in $(find inc/languages/ -name shaarli.po); do msgfmt "$pofile" -o "$(dirname "$pofile")/$(basename "$pofile" .po).mo"; done + @echo "----------------------" + @echo "Compile translation files" + @echo "----------------------" + @for pofile in `find inc/languages/ -name shaarli.po`; do \ + echo "Compiling $$pofile"; \ + msgfmt -v "$$pofile" -o "`dirname "$$pofile"`/`basename "$$pofile" .po`.mo"; \ + done; ### Run ESLint check against Shaarli's JS files eslint: