From b992c23efd56f66471944194b24a8cc4bcf01a5f Mon Sep 17 00:00:00 2001 From: Marko Lindqvist Date: Wed, 25 May 2022 23:47:56 +0300 Subject: [PATCH 28/28] Pluralize "steal times" in citydlg See osdn #44667 Signed-off-by: Marko Lindqvist --- client/gui-gtk-3.22/citydlg.c | 3 ++- client/gui-gtk-4.0/citydlg.c | 3 ++- client/gui-qt/citydlg.cpp | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) 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 a3d7b5ef4f..cee0fd772d 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