From 5296436f26a676bd3f65391739300336ffedd609 Mon Sep 17 00:00:00 2001 From: Marko Lindqvist Date: Wed, 25 May 2022 23:47:56 +0300 Subject: [PATCH 21/21] Pluralize "steal times" in citydlg See osdn #44667 Signed-off-by: Marko Lindqvist --- client/gui-gtk-3.0/citydlg.c | 3 ++- client/gui-gtk-3.22/citydlg.c | 3 ++- client/gui-gtk-4.0/citydlg.c | 3 ++- client/gui-qt/citydlg.cpp | 2 +- 4 files changed, 7 insertions(+), 4 deletions(-) diff --git a/client/gui-gtk-3.0/citydlg.c b/client/gui-gtk-3.0/citydlg.c index 37ec7a2b3b..386300f565 100644 --- a/client/gui-gtk-3.0/citydlg.c +++ b/client/gui-gtk-3.0/citydlg.c @@ -1858,7 +1858,8 @@ static void city_dialog_update_information(GtkWidget **info_ebox, (float)illness / 10.0); } if (pcity->steal) { - fc_snprintf(buf[INFO_STEAL], sizeof(buf[INFO_STEAL]), _("%d times"), pcity->steal); + fc_snprintf(buf[INFO_STEAL], sizeof(buf[INFO_STEAL]), PL_("%d time", "%d times", pcity->steal), + pcity->steal); } else { fc_snprintf(buf[INFO_STEAL], sizeof(buf[INFO_STEAL]), _("Not stolen")); } diff --git a/client/gui-gtk-3.22/citydlg.c b/client/gui-gtk-3.22/citydlg.c index 444be45a85..6016b318e7 100644 --- a/client/gui-gtk-3.22/citydlg.c +++ b/client/gui-gtk-3.22/citydlg.c @@ -1889,7 +1889,8 @@ static void city_dialog_update_information(GtkWidget **info_ebox, (float)illness / 10.0); } if (pcity->steal) { - fc_snprintf(buf[INFO_STEAL], sizeof(buf[INFO_STEAL]), _("%d times"), pcity->steal); + fc_snprintf(buf[INFO_STEAL], sizeof(buf[INFO_STEAL]), PL_("%d time", "%d times", pcity->steal), + pcity->steal); } else { fc_snprintf(buf[INFO_STEAL], sizeof(buf[INFO_STEAL]), _("Not stolen")); } diff --git a/client/gui-gtk-4.0/citydlg.c b/client/gui-gtk-4.0/citydlg.c index 2e615e460c..b5df3d909c 100644 --- a/client/gui-gtk-4.0/citydlg.c +++ b/client/gui-gtk-4.0/citydlg.c @@ -1883,7 +1883,8 @@ static void city_dialog_update_information(GtkWidget **info_label, (float)illness / 10.0); } if (pcity->steal) { - fc_snprintf(buf[INFO_STEAL], sizeof(buf[INFO_STEAL]), _("%d times"), pcity->steal); + fc_snprintf(buf[INFO_STEAL], sizeof(buf[INFO_STEAL]), PL_("%d time", "%d times", pcity->steal), + pcity->steal); } else { fc_snprintf(buf[INFO_STEAL], sizeof(buf[INFO_STEAL]), _("Not stolen")); } diff --git a/client/gui-qt/citydlg.cpp b/client/gui-qt/citydlg.cpp index 7610e8592e..b7725e0aeb 100644 --- a/client/gui-qt/citydlg.cpp +++ b/client/gui-qt/citydlg.cpp @@ -3089,7 +3089,7 @@ void city_dialog::update_info_label() } if (dlgcity->steal) { fc_snprintf(buf_info[INFO_STEAL], sizeof(buf_info[INFO_STEAL]), - _("%d times"), dlgcity->steal); + PL_("%d time", "%d times", dlgcity->steal), dlgcity->steal); } else { fc_snprintf(buf_info[INFO_STEAL], sizeof(buf_info[INFO_STEAL]), _("Not stolen")); -- 2.35.1