From 150aec0af3a57aa685d80c79ae3a49da1e6299bb Mon Sep 17 00:00:00 2001 From: Noam Postavsky Date: Sun, 14 Jul 2019 08:42:32 -0400 Subject: [PATCH] Use ngettext in vc-dir-clean-files * lisp/vc/vc-dir.el (vc-dir-clean-files): Use ngettext to separate pluralization from format string. --- lisp/vc/vc-dir.el | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lisp/vc/vc-dir.el b/lisp/vc/vc-dir.el index 436a0a67223..b823f2b3930 100644 --- a/lisp/vc/vc-dir.el +++ b/lisp/vc/vc-dir.el @@ -780,8 +780,9 @@ system; see `vc-dir-delete-file'." 'unregistered))) files))) (when tracked - (user-error "Trying to clean tracked file%s: %s" - (if (= (length tracked) 1) "" "s") + (user-error (ngettext "Trying to clean tracked file: %s" + "Trying to clean tracked files: %s" + (length tracked)) (mapconcat #'file-name-nondirectory tracked ", "))) (map-y-or-n-p "Delete %s? " #'delete-file files) (revert-buffer))) -- 2.39.2