[frogr] [i18n] Use ngettext propertly for plural forms in the main view (#675540)



commit 2b39a639c1d7b0746f27d6047584aa5fe277db97
Author: Mario Sanchez Prada <msanchez gnome org>
Date:   Sun Nov 4 23:02:55 2012 +0100

    [i18n] Use ngettext propertly for plural forms in the main view (#675540)
    
    https://bugzilla.gnome.org/show_bug.cgi?id=675540

 src/frogr-main-view.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/frogr-main-view.c b/src/frogr-main-view.c
index a55c3cd..9064dbe 100644
--- a/src/frogr-main-view.c
+++ b/src/frogr-main-view.c
@@ -1400,9 +1400,9 @@ _craft_state_description (FrogrMainView *mainview)
       /* Will show in the status bar the amount of pictures and data
          (in KB, MB or GB) that would be uploaded as the sum of the
          sizes for every picture loaded in the application */
-      upload_size_str = g_strdup_printf (n_pictures > 1
-                                         ? _(" - %d files to upload (%s)")
-                                         : _(" - %d file to upload (%s)"),
+      upload_size_str = g_strdup_printf (ngettext (" - %d file to upload (%s)",
+                                                   " - %d files to upload (%s)",
+                                                   n_pictures),
                                          n_pictures, total_size_str);
       g_free (total_size_str);
     }



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