[nautilus] file-undo-operations: add plural support for strings
- From: Alexandru-Ionut Pandelea <alexpandelea src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus] file-undo-operations: add plural support for strings
- Date: Tue, 30 Aug 2016 20:40:05 +0000 (UTC)
commit 945b3e595067ca4a25c22c68d67b4b39ad039740
Author: Alexandru Pandelea <alexandru pandelea gmail com>
Date: Tue Aug 30 21:57:52 2016 +0300
file-undo-operations: add plural support for strings
The undo and redo descriptions didn't have plural support
https://bugzilla.gnome.org/show_bug.cgi?id=770594
src/nautilus-file-undo-operations.c | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/src/nautilus-file-undo-operations.c b/src/nautilus-file-undo-operations.c
index e94ccfa..02508f4 100644
--- a/src/nautilus-file-undo-operations.c
+++ b/src/nautilus-file-undo-operations.c
@@ -1103,9 +1103,13 @@ batch_rename_strings_func (NautilusFileUndoInfo *info,
{
NautilusFileUndoInfoBatchRename *self = NAUTILUS_FILE_UNDO_INFO_BATCH_RENAME (info);
- *undo_description = g_strdup_printf (_("Batch rename '%d' files"),
+ *undo_description = g_strdup_printf (ngettext ("Batch rename %d file",
+ "Batch rename %d files",
+ g_list_length (self->priv->new_files)),
g_list_length (self->priv->new_files));
- *redo_description = g_strdup_printf (_("Batch rename '%d' files"),
+ *redo_description = g_strdup_printf (ngettext ("Batch rename %d file",
+ "Batch rename %d files",
+ g_list_length (self->priv->new_files)),
g_list_length (self->priv->new_files));
*undo_label = g_strdup (_("_Undo Batch Rename"));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]