summaryrefslogtreecommitdiff
path: root/capplet
diff options
context:
space:
mode:
authorPablo Barciela <[email protected]>2018-12-23 12:04:22 +0100
committerZenWalker <[email protected]>2018-12-28 12:32:06 +0100
commit90346cd4ea67e4731db2691fdcaffeaa51755e4b (patch)
tree4610338cbf9bbb30ac3041fc0fa1eb4c029e1ef9 /capplet
parent784a0eed0c48ee48478b00db14b8f89d4eee8fa9 (diff)
downloadmate-session-manager-90346cd4ea67e4731db2691fdcaffeaa51755e4b.tar.bz2
mate-session-manager-90346cd4ea67e4731db2691fdcaffeaa51755e4b.tar.xz
gsm-app-dialog: make the seconds translatables in the spinbutton
Diffstat (limited to 'capplet')
-rw-r--r--capplet/gsm-app-dialog.c8
1 files changed, 7 insertions, 1 deletions
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);