From 7308d025dad146387b4ad6675f8dfd82656f0bd6 Mon Sep 17 00:00:00 2001 From: Marko Lindqvist Date: Thu, 9 Jun 2022 03:49:55 +0300 Subject: [PATCH 31/31] gtk: Pluralize infrapoint count in infradlg See osdn #44669 Signed-off-by: Marko Lindqvist --- client/gui-gtk-3.22/infradlg.c | 4 +++- client/gui-gtk-4.0/infradlg.c | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/client/gui-gtk-3.22/infradlg.c b/client/gui-gtk-3.22/infradlg.c index 4d0566d687..c41adbc813 100644 --- a/client/gui-gtk-3.22/infradlg.c +++ b/client/gui-gtk-3.22/infradlg.c @@ -140,7 +140,9 @@ void update_infra_dialog(void) if (infra_dialog_open()) { char buffer[100]; - fc_snprintf(buffer, sizeof(buffer), _("%d infrapoints"), + fc_snprintf(buffer, sizeof(buffer), + PL_("%d infrapoint", "%d infrapoints", + client.conn.playing->economic.infra_points), client.conn.playing->economic.infra_points); gtk_label_set_text(GTK_LABEL(points_label), buffer); diff --git a/client/gui-gtk-4.0/infradlg.c b/client/gui-gtk-4.0/infradlg.c index a459c08196..146863b444 100644 --- a/client/gui-gtk-4.0/infradlg.c +++ b/client/gui-gtk-4.0/infradlg.c @@ -141,7 +141,9 @@ void update_infra_dialog(void) if (infra_dialog_open()) { char buffer[100]; - fc_snprintf(buffer, sizeof(buffer), _("%d infrapoints"), + fc_snprintf(buffer, sizeof(buffer), + PL_("%d infrapoint", "%d infrapoints", + client.conn.playing->economic.infra_points), client.conn.playing->economic.infra_points); gtk_label_set_text(GTK_LABEL(points_label), buffer); -- 2.35.1