]> git.eshelyaron.com Git - emacs.git/commitdiff
; Improve use of ngettext
authorEli Zaretskii <eliz@gnu.org>
Wed, 25 Sep 2024 19:33:30 +0000 (20:33 +0100)
committerEshel Yaron <me@eshelyaron.com>
Fri, 27 Sep 2024 10:20:43 +0000 (12:20 +0200)
(cherry picked from commit f28793822d86b9c4135c70498b4588629f0c6ea7)

lisp/vc/diff-mode.el

index 49159731e3033d7f6937b93a742ecf9fbdcac7f1..0cea393538f30cfc6068ed2512ed09833b333a2f 100644 (file)
@@ -2092,8 +2092,9 @@ When applying all hunks was successful, then save the changed buffers."
                (save-buffer)))
            (message "Saved %d buffers" (length buffer-edits)))
           (t
-           (message "%d %s failed; no buffers changed"
-                    failures (if (> failures 1) "hunks" "hunk"))))))
+           (message (ngettext "%d hunk failed; no buffers changed"
+                              "%d hunks failed; no buffers changed"
+                              failures))))))
 
 (defalias 'diff-mouse-goto-source #'diff-goto-source)