[nautilus] batch-rename-dialog: add plural support for strings
- From: Alexandru-Ionut Pandelea <alexpandelea src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus] batch-rename-dialog: add plural support for strings
- Date: Tue, 30 Aug 2016 20:39:59 +0000 (UTC)
commit df6dd263fe1c6ccdb88b1d659e8074fe7c857a54
Author: Alexandru Pandelea <alexandru pandelea gmail com>
Date: Tue Aug 30 16:41:10 2016 +0300
batch-rename-dialog: add plural support for strings
The title of the dialog didn't have plural support.
https://bugzilla.gnome.org/show_bug.cgi?id=770594
src/nautilus-batch-rename-dialog.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/src/nautilus-batch-rename-dialog.c b/src/nautilus-batch-rename-dialog.c
index 798a069..a8193e6 100644
--- a/src/nautilus-batch-rename-dialog.c
+++ b/src/nautilus-batch-rename-dialog.c
@@ -3221,7 +3221,9 @@ nautilus_batch_rename_dialog_new (GList *selection,
GTK_WINDOW (window));
dialog_title = g_string_new ("");
- g_string_append_printf (dialog_title, "Rename %d Files", g_list_length (selection));
+ g_string_append_printf (dialog_title,
+ ngettext ("Rename %d File", "Rename %d Files", g_list_length (selection)),
+ g_list_length (selection));
gtk_window_set_title (GTK_WINDOW (dialog), dialog_title->str);
nautilus_batch_rename_dialog_initialize_actions (dialog);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]