From b2d2ad58ea45bbbcde772152b240f1c2c5a7c2fa Mon Sep 17 00:00:00 2001 From: shipmints Date: Sun, 2 Feb 2025 11:39:55 -0500 Subject: Correct project-remember/forget-projects-under message grammar * lisp/progmodes/project.el: (project-remember-projects-under): Correct grammar for the singular case. Rather than "1 projects were found", say "1 project was found". (project-forget-projects-under): Ditto. (Bug#76016) --- lisp/progmodes/project.el | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/lisp/progmodes/project.el b/lisp/progmodes/project.el index f2a27ff91dd..5dd10071a1c 100644 --- a/lisp/progmodes/project.el +++ b/lisp/progmodes/project.el @@ -2054,8 +2054,9 @@ projects." (if (zerop count) (message "No projects were found") (project--write-project-list) - (message "%d project%s were found" - count (if (= count 1) "" "s"))) + (message (ngettext "%d project was found" + "%d projects were found" + count) count)) count)) (defun project-forget-zombie-projects () @@ -2085,8 +2086,9 @@ forgotten projects." (if (zerop count) (message "No projects were forgotten") (project--write-project-list) - (message "%d project%s were forgotten" - count (if (= count 1) "" "s"))) + (message (ngettext "%d project was forgotten" + "%d projects were forgotten" + count) count)) count)) -- cgit v1.3