[nautilus] file-undo-operations: add plural support for strings
- From: Răzvan-Mihai Chițu <razvanchitu src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus] file-undo-operations: add plural support for strings
- Date: Tue, 23 Aug 2016 12:46:36 +0000 (UTC)
commit c81d968fa85ecc62d04d9945a54bc6cd027e7476
Author: Razvan Chitu <razvan ch95 gmail com>
Date: Tue Aug 23 13:27:25 2016 +0300
file-undo-operations: add plural support for strings
The compression and extraction undo / redo strings lacked plural support.
https://bugzilla.gnome.org/show_bug.cgi?id=770270
src/nautilus-file-undo-operations.c | 13 ++++++++++---
1 files changed, 10 insertions(+), 3 deletions(-)
---
diff --git a/src/nautilus-file-undo-operations.c b/src/nautilus-file-undo-operations.c
index 9e95310..b499922 100644
--- a/src/nautilus-file-undo-operations.c
+++ b/src/nautilus-file-undo-operations.c
@@ -1742,7 +1742,9 @@ extract_strings_func (NautilusFileUndoInfo *info,
*undo_description = g_strdup_printf (_("Delete '%s'"), name);
} else {
- *undo_description = g_strdup_printf (_("Delete %d extracted files"),
+ *undo_description = g_strdup_printf (ngettext ("Delete %d extracted file",
+ "Delete %d extracted files",
+ total_outputs),
total_outputs);
}
@@ -1755,7 +1757,9 @@ extract_strings_func (NautilusFileUndoInfo *info,
*undo_description = g_strdup_printf (_("Extract '%s'"), name);
} else {
- *undo_description = g_strdup_printf (_("Extract %d files"),
+ *undo_description = g_strdup_printf (ngettext ("Extract %d file",
+ "Extract %d files",
+ total_sources),
total_sources);
}
}
@@ -1901,7 +1905,10 @@ compress_strings_func (NautilusFileUndoInfo *info,
*redo_description = g_strdup_printf (_("Compress '%s'"), source_name);
} else {
- *redo_description = g_strdup_printf (_("Compress '%d' files"), sources_count);
+ *redo_description = g_strdup_printf (ngettext ("Compress %d file",
+ "Compress %d files",
+ sources_count),
+ sources_count);
}
*undo_label = g_strdup (_("_Undo Compress"));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]