Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 502490

Summary: emerge should count news items and add "s" to "item" and "need" as appropriate
Product: Portage Development Reporter: André Terpstra <andre>
Component: Core - Interface (emerge)Assignee: Portage team <dev-portage>
Status: UNCONFIRMED ---    
Severity: trivial    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description André Terpstra 2014-02-26 06:43:41 UTC
In the output of app-admin/eselect-1.4.1 a minor spelling issue occurs

Reproducible: Always

Actual Results:  
The output reads:

 * IMPORTANT: 1 news items need reading for repository 'gentoo'.
 * Use eselect news to read news items.

Expected Results:  
"items" should be changed to "item(s)"
"need" should be changed to "need(s)"

or the nouns should somehow default to singular and change to plural if the actual number of new items > 1
Comment 1 Arfrever Frehtes Taifersar Arahesis 2014-02-27 07:33:26 UTC
(In reply to André Terpstra from comment #0)
> or the nouns should somehow default to singular and change to plural if the
> actual number of new items > 1

It would be often incorrect:
https://www.gnu.org/software/gettext/manual/html_node/Plural-forms.html
Comment 2 Alexander Berntsen (RETIRED) gentoo-dev 2014-02-27 17:25:01 UTC
(In reply to Arfrever Frehtes Taifersar Arahesis from comment #1)
> It would be often incorrect:
> https://www.gnu.org/software/gettext/manual/html_node/Plural-forms.html

Do we care about i18n? eselect is hardly set up for it. If not, I think we should go with the naïve approach suggested by André.
Comment 3 André Terpstra 2014-03-03 19:57:28 UTC
(In reply to Alexander Berntsen from comment #2)
> (In reply to Arfrever Frehtes Taifersar Arahesis from comment #1)
> > It would be often incorrect:
> > https://www.gnu.org/software/gettext/manual/html_node/Plural-forms.html
> 
> Do we care about i18n? eselect is hardly set up for it. If not, I think we
> should go with the naïve approach suggested by André.

Hm my suggestion was indeed based on simplicity, but naive? By the way the URL from comment 1 no longer exists, probably https://www.gnu.org/software/gettext/manual/html_node/Plural-forms.html#Plural-forms was meant