From c89f281817806cb68f4e47c4e1cd0c561f7e03c4 Mon Sep 17 00:00:00 2001 From: Marko Lindqvist Date: Sat, 5 Nov 2022 02:49:40 +0200 Subject: [PATCH 28/28] gtk: Mark mapimg creation error dialog for translation See osdn #45989 Signed-off-by: Marko Lindqvist --- client/gui-gtk-3.22/pages.c | 4 ++-- client/gui-gtk-4.0/pages.c | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) 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