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)
This commit is contained in:
shipmints 2025-02-02 11:39:55 -05:00 committed by Stefan Kangas
parent 788380cf6a
commit b2d2ad58ea

View file

@ -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))