From cc165ce580a7fad51dc14140935c8631debba63d Mon Sep 17 00:00:00 2001 From: Marko Lindqvist Date: Sat, 5 Nov 2022 02:54:47 +0200 Subject: [PATCH 26/26] gtk: Mark mapimg creation error dialog for translation See osdn #45989 Signed-off-by: Marko Lindqvist --- client/gui-gtk-2.0/pages.c | 4 ++-- client/gui-gtk-3.0/pages.c | 4 ++-- client/gui-gtk-3.22/pages.c | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/client/gui-gtk-2.0/pages.c b/client/gui-gtk-2.0/pages.c index d5beab2a94..670e602774 100644 --- a/client/gui-gtk-2.0/pages.c +++ b/client/gui-gtk-2.0/pages.c @@ -3420,11 +3420,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.0/pages.c b/client/gui-gtk-3.0/pages.c index f39936cd3b..3e3ef3cd4f 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 1d11f20436..ec72a33e2d 100644 --- a/client/gui-gtk-3.22/pages.c +++ b/client/gui-gtk-3.22/pages.c @@ -3552,11 +3552,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 -- 2.35.1