[easytag] Use ngettext for status bar found files message
- From: David King <davidk src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [easytag] Use ngettext for status bar found files message
- Date: Sun, 19 May 2013 12:01:00 +0000 (UTC)
commit 4ed0b3ee7871c6fd47067c3c241a0f325d929f40
Author: David King <amigadave amigadave com>
Date: Sun May 19 12:42:03 2013 +0100
Use ngettext for status bar found files message
Handle plural forms in the status bar message to report the number of
files found in a directory.
src/easytag.c | 15 ++++++++++++---
1 files changed, 12 insertions(+), 3 deletions(-)
---
diff --git a/src/easytag.c b/src/easytag.c
index 859961d..2a3ed72 100644
--- a/src/easytag.c
+++ b/src/easytag.c
@@ -3320,10 +3320,19 @@ gboolean Read_Directory (gchar *path_real)
/* Prepare message for the status bar */
if (BROWSE_SUBDIR)
- msg = g_strdup_printf(_("Found %d file(s) in this directory and
subdirectories."),ETCore->ETFileDisplayedList_Length);
+ {
+ msg = g_strdup_printf (ngettext ("Found one file in this directory and subdirectories",
+ "Found %d files in this directory and subdirectories",
+ ETCore->ETFileDisplayedList_Length),
+ ETCore->ETFileDisplayedList_Length);
+ }
else
- msg = g_strdup_printf(_("Found %d file(s) in this
directory."),ETCore->ETFileDisplayedList_Length);
-
+ {
+ msg = g_strdup_printf (ngettext ("Found one file in this directory",
+ "Found %d files in this directory",
+ ETCore->ETFileDisplayedList_Length),
+ ETCore->ETFileDisplayedList_Length);
+ }
}else
{
/* Clear entry boxes */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]