Skip to content
Permalink
Browse files

gsm-app-dialog: make the seconds translatables in the spinbutton

  • Loading branch information...
sc0w committed Dec 23, 2018
1 parent 784a0ee commit 90346cd4ea67e4731db2691fdcaffeaa51755e4b
Showing with 7 additions and 1 deletion.
  1. +7 −1 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);

0 comments on commit 90346cd

Please sign in to comment.
You can’t perform that action at this time.