From 90346cd4ea67e4731db2691fdcaffeaa51755e4b Mon Sep 17 00:00:00 2001 From: Pablo Barciela Date: Sun, 23 Dec 2018 12:04:22 +0100 Subject: gsm-app-dialog: make the seconds translatables in the spinbutton --- capplet/gsm-app-dialog.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'capplet') diff --git a/capplet/gsm-app-dialog.c b/capplet/gsm-app-dialog.c index c6b7b26..1c038c9 100644 --- a/capplet/gsm-app-dialog.c +++ b/capplet/gsm-app-dialog.c @@ -166,7 +166,13 @@ on_spin_output (GtkSpinButton *spin, GsmAppDialog *dialog) value = gtk_adjustment_get_value (adjustment); dialog->delay = value; - text = g_strdup_printf (_("%d s"), value); + if (value == 1) + text = g_strdup_printf ("%d %s", value, _("second")); + else if (value > 1) + text = g_strdup_printf ("%d %s", value, _("seconds")); + else + text = g_strdup_printf ("%d", value); + gtk_entry_set_text (GTK_ENTRY (spin), text); g_free (text); -- cgit v1.2.1