From e5d358b79affbff453a7bd36309cf85be37a6937 Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Wed, 25 Sep 2024 20:33:30 +0100 Subject: [PATCH] ; Improve use of ngettext (cherry picked from commit f28793822d86b9c4135c70498b4588629f0c6ea7) --- lisp/vc/diff-mode.el | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lisp/vc/diff-mode.el b/lisp/vc/diff-mode.el index 49159731e30..0cea393538f 100644 --- a/lisp/vc/diff-mode.el +++ b/lisp/vc/diff-mode.el @@ -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) -- 2.39.5