From: Noam Postavsky Date: Sun, 14 Jul 2019 12:42:32 +0000 (-0400) Subject: Use ngettext in vc-dir-clean-files X-Git-Tag: emacs-27.0.90~1917 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=150aec0af3a57aa685d80c79ae3a49da1e6299bb;p=emacs.git Use ngettext in vc-dir-clean-files * lisp/vc/vc-dir.el (vc-dir-clean-files): Use ngettext to separate pluralization from format string. --- 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)))