[gnome-screensaver] Use ngettext for a string.
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-screensaver] Use ngettext for a string.
- Date: Tue, 15 Mar 2011 12:22:44 +0000 (UTC)
commit e1660948771a7ff05860d4871521d0061c9937ae
Author: Matthias Clasen <mclasen redhat com>
Date: Tue Mar 15 08:21:56 2011 -0400
Use ngettext for a string.
Pointed out in https://bugzilla.gnome.org/show_bug.cgi?id=644802.
src/gnome-screensaver-command.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/gnome-screensaver-command.c b/src/gnome-screensaver-command.c
index 295c970..418bdee 100644
--- a/src/gnome-screensaver-command.c
+++ b/src/gnome-screensaver-command.c
@@ -253,7 +253,7 @@ do_command (GDBusConnection *connection)
g_variant_get (body, "(i)", &t);
g_object_unref (reply);
- g_print (_("The screensaver has been active for %d seconds.\n"), t);
+ g_print (ngettext ("The screensaver has been active for %d second.\n", "The screensaver has been active for %d seconds.\n", t), t);
} else {
g_print (_("The screensaver is not currently active.\n"));
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]