diff options
author | Alexandru Pandelea <alexandru.pandelea@gmail.com> | 2016-08-30 21:57:52 +0300 |
---|---|---|
committer | Alexandru Pandelea <alexandru.pandelea@gmail.com> | 2016-08-30 23:36:40 +0300 |
commit | 945b3e595067ca4a25c22c68d67b4b39ad039740 (patch) | |
tree | d46b9c530e8f1c65e5bdd500b2fa38d2fb90f9c4 | |
parent | df6dd263fe1c6ccdb88b1d659e8074fe7c857a54 (diff) | |
download | nautilus-945b3e595067ca4a25c22c68d67b4b39ad039740.tar.gz |
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
-rw-r--r-- | 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 e94ccfa08..02508f43e 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")); |