Welcome to the Pacman bug tracker. Please search the current bugs and feature requests before filing a new one! Use advanced search and select "Search in Comments".

* Please select the correct category and version.
* Write a descriptive summary, background info, and provide a reproducible test case whenever possible.

FS#70556 - Use plural-form string with ngettext in pacman-key

Attached to Project: Pacman
Opened by Rafael Fontenelle (josephg) - Friday, 23 April 2021, 09:43 GMT
Task Type Bug Report
Category Scripts & Tools
Status Unconfirmed
Assigned To No-one
Architecture All
Severity Low
Priority Normal
Reported Version git
Due in Version Undecided
Due Date Undecided
Percent Complete 0%
Votes 0
Private No


Summary and Info:

Two strings from 'pacman-key' contain a variable for key count, and as such should be used as plural-form string[1]. Not using a plural-form string, might be OK in English and most languages, but might be harder for other languages with a more complex plural rules[2].

The strings are:
- "Disabled %s keys." (line 376)
- "Locally signed %s keys." (line 507)

My suggestion is to use "ngettext" and set a singular and a plural versions of this string, even if the singular form is never going to be used. This way 1) translators are sure that %s means a count, and 2) the translation respects the target locale's plural-form.

See attached git-diff from master branch.


This task depends upon