From 65d99d208210e04c7faf391e7c78a6c27708a6b8 Mon Sep 17 00:00:00 2001
From: zzz <zzz@i2pmail.org>
Date: Sun, 15 Jan 2023 07:05:55 -0500
Subject: [PATCH] Build: Provide hints on how to fix it when msgfmt fails

---
 core/java/bundle-messages.sh | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/core/java/bundle-messages.sh b/core/java/bundle-messages.sh
index 167a481ca9..a5a2b5d39a 100755
--- a/core/java/bundle-messages.sh
+++ b/core/java/bundle-messages.sh
@@ -110,6 +110,7 @@ do
             if [ $? -ne 0 ]
             then
                 echo "ERROR - msgfmt failed on ${i}, not updating translations"
+                echo "sudo apt install gettext, or put require.gettext=false in override.properties"
                 # msgfmt leaves the class file there so the build would work the next time
                 find build -name messages_${LG}.class -exec rm -f {} \;
                 RC=1
@@ -128,6 +129,7 @@ do
             if [ $? -ne 0 ]
             then
                 echo "ERROR - msgfmt failed on ${i}, not updating translations"
+                echo "sudo apt install gettext, or put require.gettext=false in override.properties"
                 # msgfmt leaves the class file there so the build would work the next time
                 find build/obj -name messages_${LG}.class -exec rm -f {} \;
                 RC=1
-- 
GitLab