summaryrefslogtreecommitdiff
path: root/gui
diff options
context:
space:
mode:
authorBrian Cameron <brian.cameron@sun.com>2006-05-15 18:51:37 +0000
committerBrian Cameron <bcameron@src.gnome.org>2006-05-15 18:51:37 +0000
commitcfa3a1f92a7721d7e02d94d8618c072f5d3e77a8 (patch)
tree64f6fa95bfd8ffdaa69d6ce4566f72f2f65bb369 /gui
parent310f8090681f6338cf041261290c162b65c5ee1a (diff)
downloadgdm-cfa3a1f92a7721d7e02d94d8618c072f5d3e77a8.tar.gz
Use ngettext. Patch provided by Benoit Dejean <benoit@placenet.org>. Fixes
2006-05-15 Brian Cameron <brian.cameron@sun.com> * gui/gdmcommon.c: Use ngettext. Patch provided by Benoit Dejean <benoit@placenet.org>. Fixes bug #341680.
Diffstat (limited to 'gui')
-rw-r--r--gui/gdmcommon.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/gui/gdmcommon.c b/gui/gdmcommon.c
index 7166526f..ae2dc6dc 100644
--- a/gui/gdmcommon.c
+++ b/gui/gdmcommon.c
@@ -701,12 +701,8 @@ gdm_common_expand_text (const gchar *text)
g_string_append (str, name.sysname);
break;
case 't':
- g_string_append_printf (str, "%d", gdm_timed_delay);
- if (gdm_timed_delay != 1)
- g_string_append (str, _(" seconds"));
- else
- g_string_append (str, _(" second"));
- break;
+ g_string_append_printf (str, ngettext("%d second", "%d seconds", gdm_timed_delay),
+ gdm_timed_delay);
case 'u':
g_string_append (str, ve_sure_string (gdm_config_get_string (GDM_KEY_TIMED_LOGIN)));
break;