Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 502490 - emerge should count news items and add "s" to "item" and "need" as appropriate
Summary: emerge should count news items and add "s" to "item" and "need" as appropriate
Status: UNCONFIRMED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core - Interface (emerge) (show other bugs)
Hardware: All Linux
: Normal trivial (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-02-26 06:43 UTC by André Terpstra
Modified: 2014-03-03 19:57 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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