summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuriy Penkin <yuriy.penkin@gmail.com>2012-08-20 18:40:55 -0400
committerWilliam Jon McCann <jmccann@redhat.com>2012-08-20 21:56:37 -0400
commitc59ee71862939a4732a9ff9c95b9738bb12bd98d (patch)
tree0ae45bcbd4b34bb7f7d34e613cf2ff2aeb2eebed
parent24cddd96bb717b98c4f42fed95dfbd43a6a92915 (diff)
downloadnautilus-c59ee71862939a4732a9ff9c95b9738bb12bd98d.tar.gz
use plural form only for messages with explicit number
https://bugzilla.gnome.org/show_bug.cgi?id=552053
-rw-r--r--src/nautilus-view.c54
1 files changed, 36 insertions, 18 deletions
diff --git a/src/nautilus-view.c b/src/nautilus-view.c
index 50a929b84..f2243581b 100644
--- a/src/nautilus-view.c
+++ b/src/nautilus-view.c
@@ -8122,33 +8122,51 @@ update_restore_from_trash_action (GtkAction *action,
tooltip = g_strdup_printf (_("Move the open folder out of the trash to “%s”"), original_name);
} else if (files_are_all_directories (files)) {
if (original_name != NULL) {
- tooltip = g_strdup_printf (ngettext ("Move the selected folder out of the trash to “%s”",
- "Move the selected folders out of the trash to “%s”",
- g_list_length (files)), original_name);
+ if (g_list_length (files) == 1) {
+ tooltip = g_strdup_printf (_("Move the selected folder out of the trash to “%s”"),
+ original_name);
+ } else {
+ tooltip = g_strdup_printf (_("Move the selected folders out of the trash to “%s”"),
+ original_name);
+ }
} else {
- tooltip = g_strdup_printf (ngettext ("Move the selected folder out of the trash",
- "Move the selected folders out of the trash",
- g_list_length (files)));
+ if (g_list_length (files) == 1) {
+ tooltip = g_strdup (_("Move the selected folder out of the trash"));
+ } else {
+ tooltip = g_strdup (_("Move the selected folders out of the trash"));
+ }
}
} else if (files_is_none_directory (files)) {
if (original_name != NULL) {
- tooltip = g_strdup_printf (ngettext ("Move the selected file out of the trash to “%s”",
- "Move the selected files out of the trash to “%s”",
- g_list_length (files)), original_name);
+ if (g_list_length (files) == 1) {
+ tooltip = g_strdup_printf (_("Move the selected file out of the trash to “%s”"),
+ original_name);
+ } else {
+ tooltip = g_strdup_printf (_("Move the selected files out of the trash to “%s”"),
+ original_name);
+ }
} else {
- tooltip = g_strdup_printf (ngettext ("Move the selected file out of the trash",
- "Move the selected files out of the trash",
- g_list_length (files)));
+ if (g_list_length (files) == 1) {
+ tooltip = g_strdup (_("Move the selected file out of the trash"));
+ } else {
+ tooltip = g_strdup (_("Move the selected files out of the trash"));
+ }
}
} else {
if (original_name != NULL) {
- tooltip = g_strdup_printf (ngettext ("Move the selected item out of the trash to “%s”",
- "Move the selected items out of the trash to “%s”",
- g_list_length (files)), original_name);
+ if (g_list_length (files) == 1) {
+ tooltip = g_strdup_printf (_("Move the selected item out of the trash to “%s”"),
+ original_name);
+ } else {
+ tooltip = g_strdup_printf (_("Move the selected items out of the trash to “%s”"),
+ original_name);
+ }
} else {
- tooltip = g_strdup_printf (ngettext ("Move the selected item out of the trash",
- "Move the selected items out of the trash",
- g_list_length (files)));
+ if (g_list_length (files) == 1) {
+ tooltip = g_strdup (_("Move the selected item out of the trash"));
+ } else {
+ tooltip = g_strdup (_("Move the selected items out of the trash"));
+ }
}
}
g_free (original_name);