Introduce the plural form from gettext()

This commit is contained in:
Pierre Pronchery 2020-02-10 05:38:17 +01:00
parent 00af44155a
commit 6c0181f59a

View File

@ -1841,8 +1841,10 @@ void browser_selection_delete(Browser * browser)
cnt++;
if(cnt != 0 && (browser->prefs.confirm_before_delete != TRUE
|| _browser_confirm(browser,
_("Are you sure you want to delete %lu"
" file(s)?"), cnt) == 0)
ngettext(
"Are you sure you want to delete %lu file?",
"Are you sure you want to delete %lu files?",
cnt), cnt) == 0)
&& _common_exec(PROGNAME_DELETE, "-ir", selection) != 0)
browser_error(browser, strerror(errno), 1);
g_list_foreach(selection, (GFunc)free, NULL);