[gnome-screensaver] Use ngettext for a string.



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]