Skip to content

Commit 90346cd

Browse files
committed
gsm-app-dialog: make the seconds translatables in the spinbutton
1 parent 784a0ee commit 90346cd

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

capplet/gsm-app-dialog.c

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,13 @@ on_spin_output (GtkSpinButton *spin, GsmAppDialog *dialog)
166166
value = gtk_adjustment_get_value (adjustment);
167167
dialog->delay = value;
168168

169-
text = g_strdup_printf (_("%d s"), value);
169+
if (value == 1)
170+
text = g_strdup_printf ("%d %s", value, _("second"));
171+
else if (value > 1)
172+
text = g_strdup_printf ("%d %s", value, _("seconds"));
173+
else
174+
text = g_strdup_printf ("%d", value);
175+
170176
gtk_entry_set_text (GTK_ENTRY (spin), text);
171177
g_free (text);
172178

0 commit comments

Comments
 (0)