Bug 460728

Summary: ngettext use for recursive plurals
Product: [Fedora] Fedora Reporter: Miloš Komarčević <kmilos>
Component: anacondaAssignee: Chris Lumens <clumens>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: medium    
Version: rawhideCC: piotrdrag
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2008-09-04 17:02:44 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Miloš Komarčević 2008-08-30 12:39:56 UTC
Kudos for using ngettext, but the one string in anaconda is a bit of a complicated case, as it has two numbers in it the translated sentence will depend on both in many languages [1].

Would it be possible to beak up the string into two so ngettext can be used for each number separately? Something like:

  msgid_plural "%d optional packages"

  #. TRANSLATORS: %s is substituted by the string above
  msgid_plural "%d of %s selected"


[1] https://www.redhat.com/archives/fedora-trans-list/2008-August/msg00059.html

Comment 1 Chris Lumens 2008-09-03 19:30:55 UTC
What if we changed the string to be something along the lines of:

Optional packages selected: %d/%d

Then you don't even need to worry about the plural case, do you?

Comment 2 Miloš Komarčević 2008-09-04 12:06:55 UTC
That could be an easy way out too. In that case "%d of %d" should work just as well.

Comment 3 Chris Lumens 2008-09-04 17:02:44 UTC
Thanks for the tip, committed and pushed.  We should be rebuilding the .pot file sometime soon.