Translate with the plural form

This commit is contained in:
Pierre Pronchery 2020-03-03 01:02:34 +01:00
parent 9b3569f0b5
commit cb140b1d42

View File

@ -580,12 +580,15 @@ static void _trash_on_delete(gpointer data)
{
Trash * trash = data;
GtkTreeSelection * treesel;
gint cnt;
treesel = gtk_tree_view_get_selection(GTK_TREE_VIEW(trash->view));
if(gtk_tree_selection_count_selected_rows(treesel) > 0
if((cnt = gtk_tree_selection_count_selected_rows(treesel)) > 0
&& _trash_confirm(trash,
_("This will delete the file(s) selected.\n"
"Do you really want to proceed?")))
ngettext("This will delete the file selected.\n"
"Do you really want to proceed?",
"This will delete the files selected.\n"
"Do you really want to proceed?", cnt)))
_trash_delete_selection(trash);
}