gcalctool r2019 - in trunk: . gcalctool



Author: richb
Date: Mon Mar 10 19:47:45 2008
New Revision: 2019
URL: http://svn.gnome.org/viewvc/gcalctool?rev=2019&view=rev

Log:
    * gcalctool/gtk.c:
      Fixed bug #520269 â Possibly incorrect use of plurals.


Modified:
   trunk/ChangeLog
   trunk/gcalctool/gtk.c

Modified: trunk/gcalctool/gtk.c
==============================================================================
--- trunk/gcalctool/gtk.c	(original)
+++ trunk/gcalctool/gtk.c	Mon Mar 10 19:47:45 2008
@@ -543,15 +543,16 @@
     widget = gtk_bin_get_child(GTK_BIN(GET_WIDGET("acc_item_other")));
     gtk_label_set_markup_with_mnemonic(GTK_LABEL(widget), text);
 
-    desc = g_strdup_printf(ngettext("Set accuracy from 0 to %d numeric places.",
-                                    "Set accuracy from 0 to %d numeric places.",
-                                    MAXACC),
+    /* Translators: The accuracy range will always be plural, so no need to
+     *             use ngettext here.
+     */
+    desc = g_strdup_printf(_("Set accuracy from 0 to %d numeric places."),
                            MAXACC);
 
-    /* Translator: This refers to the current accuracy setting */
-    current = g_strdup_printf(ngettext("Currently set to %d places.",
+    /* Translators: This refers to the current accuracy setting */
+    current = g_strdup_printf(ngettext("Currently set to %d place.",
                                        "Currently set to %d places.",
-                                       accuracy),
+                                       accuracy == 1),
                               accuracy);
     tooltip = g_strdup_printf ("%s %s [A]", desc, current);
     gtk_widget_set_tooltip_text (GET_WIDGET("calc_accuracy_button"), tooltip);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]