[easytag] Use ngettext to handle CDDB search plural forms



commit a4881d320d7f083c76bb489b9d29e9f777929b62
Author: David King <amigadave amigadave com>
Date:   Tue May 21 18:17:18 2013 +0100

    Use ngettext to handle CDDB search plural forms

 src/misc.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/misc.c b/src/misc.c
index 8a6772f..f0da2d5 100644
--- a/src/misc.c
+++ b/src/misc.c
@@ -2421,7 +2421,8 @@ Search_File (GtkWidget *search_button)
 
     // Display the number of files in the statusbar
     resultCount = gtk_tree_model_iter_n_children(GTK_TREE_MODEL(SearchResultListModel), NULL);
-    msg = g_strdup_printf(_("Found: %d file(s)"), resultCount);
+    msg = g_strdup_printf (ngettext ("Found one file", "Found %d files",
+                           resultCount), resultCount);
     gtk_statusbar_push(GTK_STATUSBAR(SearchStatusBar),SearchStatusBarContext,msg);
     g_free(msg);
 


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