Skip to content

Commit

Permalink
gsm-app-dialog: make the seconds translatables in the spinbutton
Browse files Browse the repository at this point in the history
  • Loading branch information
sc0w committed Dec 28, 2018
1 parent 784a0ee commit 90346cd
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion capplet/gsm-app-dialog.c
Expand Up @@ -166,7 +166,13 @@ on_spin_output (GtkSpinButton *spin, GsmAppDialog *dialog)
value = gtk_adjustment_get_value (adjustment); value = gtk_adjustment_get_value (adjustment);
dialog->delay = value; 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); gtk_entry_set_text (GTK_ENTRY (spin), text);
g_free (text); g_free (text);


Expand Down

0 comments on commit 90346cd

Please sign in to comment.