Subject: bug#35981: closed (Re: [PATCH] Use ngettext in `count-lines-page')

From: [email-masked] (GNU bug Tracking System)
Date: Mon, 10 Jun 2019 00:05:02 +0000

Your bug report

#35981: [PATCH] Use ngettext in `count-lines-page'

which was filed against the emacs package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to [email-masked].

-- 
35981: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=35981
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: Re: [PATCH] Use ngettext in `count-lines-page'
From: Paul Eggert <[email-masked]>
To: Stefan Kangas <[email-masked]>
Cc: "Basil L. Contovounesios" <[email-masked]>, [email-masked]
Date: Sun, 9 Jun 2019 17:03:52 -0700
List-Id: <debbugs-submit.debbugs.gnu.org>

When a diagnostic this short it's typically more straightforward to give 
the translators the whole diagnostic than to ask them to figure out how 
it's pieced together and to restrict their translations algorithmically, 
so I installed the attached patch instead. Thanks for reporting the problem.

>From bcea7e843936da41619df67faedf5f508db7d722 Mon Sep 17 00:00:00 2001
From: Paul Eggert <[email-masked]>
Date: Sun, 9 Jun 2019 16:59:43 -0700
Subject: [PATCH] Fig grammar of count-lines-page

* lisp/textmodes/page.el (count-lines-page):
Say "Page has 1 line", not "Page has 1 lines" (Bug#35981).
---
 lisp/textmodes/page.el | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/lisp/textmodes/page.el b/lisp/textmodes/page.el
index 2b0cea4c64..8921b697f3 100644
--- a/lisp/textmodes/page.el
+++ b/lisp/textmodes/page.el
@@ -141,7 +141,9 @@ count-lines-page
       (setq total (count-lines beg end)
 	    before (count-lines beg opoint)
 	    after (count-lines opoint end))
-      (message "Page has %d lines (%d + %d)" total before after))))
+      (message (ngettext "Page has %d line (%d + %d)"
+			 "Page has %d lines (%d + %d)" total)
+	       total before after))))
 
 (defun what-page ()
   "Print page and line number of point."
-- 
2.21.0

Subject: [PATCH] Use ngettext in `count-lines-page'
From: Stefan Kangas <[email-masked]>
To: [email-masked]
Date: Wed, 29 May 2019 11:34:12 +0200
List-Id: <debbugs-submit.debbugs.gnu.org>

See attached patch to correctly use ngettext in `count-lines-page' to get
pluralization.

Thanks,
Stefan Kangas