From ab55d7e426304884554cffea220dac6067f364c5 Mon Sep 17 00:00:00 2001
From: Marko Lindqvist <cazfi74@gmail.com>
Date: Sat, 5 Nov 2022 02:49:40 +0200
Subject: [PATCH 24/24] gtk: Mark mapimg creation error dialog for translation

See osdn #45989

Signed-off-by: Marko Lindqvist <cazfi74@gmail.com>
---
 client/gui-gtk-3.0/pages.c  | 4 ++--
 client/gui-gtk-3.22/pages.c | 4 ++--
 client/gui-gtk-4.0/pages.c  | 3 ++-
 3 files changed, 6 insertions(+), 5 deletions(-)

diff --git a/client/gui-gtk-3.0/pages.c b/client/gui-gtk-3.0/pages.c
index e0e1808295..7d6bd030c9 100644
--- a/client/gui-gtk-3.0/pages.c
+++ b/client/gui-gtk-3.0/pages.c
@@ -3554,11 +3554,11 @@ void mapimg_client_save(const char *filename)
     char msg[512];
 
     fc_snprintf(msg, sizeof(msg), "(%s)", mapimg_error());
-    popup_notify_dialog("Error", "Error Creating the Map Image!", msg);
+    popup_notify_dialog(_("Error"),
+                        _("Error Creating the Map Image!"), msg);
   }
 }
 
-
 /**********************************************************************//**
   Set the list of available rulesets.  The default ruleset should be
   "default", and if the user changes this then set_ruleset() should be
diff --git a/client/gui-gtk-3.22/pages.c b/client/gui-gtk-3.22/pages.c
index 5215532131..bf20953a87 100644
--- a/client/gui-gtk-3.22/pages.c
+++ b/client/gui-gtk-3.22/pages.c
@@ -3553,11 +3553,11 @@ void mapimg_client_save(const char *filename)
     char msg[512];
 
     fc_snprintf(msg, sizeof(msg), "(%s)", mapimg_error());
-    popup_notify_dialog("Error", "Error Creating the Map Image!", msg);
+    popup_notify_dialog(_("Error"),
+                        _("Error Creating the Map Image!"), msg);
   }
 }
 
-
 /**********************************************************************//**
   Set the list of available rulesets.  The default ruleset should be
   "default", and if the user changes this then set_ruleset() should be
diff --git a/client/gui-gtk-4.0/pages.c b/client/gui-gtk-4.0/pages.c
index 1ba6e4f78d..e1b1326fd4 100644
--- a/client/gui-gtk-4.0/pages.c
+++ b/client/gui-gtk-4.0/pages.c
@@ -3667,7 +3667,8 @@ void mapimg_client_save(const char *filename)
     char msg[512];
 
     fc_snprintf(msg, sizeof(msg), "(%s)", mapimg_error());
-    popup_notify_dialog("Error", "Error Creating the Map Image!", msg);
+    popup_notify_dialog(_("Error"),
+                        _("Error Creating the Map Image!"), msg);
   }
 }
 
-- 
2.35.1