[nautilus] nautilus-view: Use ngettext for plural
- From: Carlos Soriano Sánchez <csoriano src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus] nautilus-view: Use ngettext for plural
- Date: Mon, 2 Feb 2015 18:01:47 +0000 (UTC)
commit 5d7221a856ecb02e040a272990ad86ec5ba86b8b
Author: Carlos Soriano <csoriano gnome org>
Date: Mon Feb 2 16:10:40 2015 +0100
nautilus-view: Use ngettext for plural
https://bugzilla.gnome.org/show_bug.cgi?id=743557
src/nautilus-view.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/src/nautilus-view.c b/src/nautilus-view.c
index 887954f..be86cd4 100644
--- a/src/nautilus-view.c
+++ b/src/nautilus-view.c
@@ -6136,9 +6136,10 @@ update_selection_menu (NautilusView *view)
show_stop = (selection != NULL && selection_count == 1);
show_detect_media = (selection != NULL && selection_count == 1);
start_stop_type = G_DRIVE_START_STOP_TYPE_UNKNOWN;
-
- item_label = g_strdup_printf (_("New Folder with Selection (%'d Items)"),
- selection_count);
+ item_label = g_strdup_printf (ngettext ("New Folder with Selection (%'d Items)",
+ "New Folder with Selection (%'d Items)",
+ selection_count),
+ selection_count);
menu_item = g_menu_item_new (item_label, "view.new-folder-with-selection");
g_menu_item_set_attribute (menu_item, "hidden-when", "s", "action-disabled");
nautilus_gmenu_add_item_in_submodel (view->details->selection_menu,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]