Bug 106151

Summary: Please use ngettext for handling plurals in anaconda
Product: [Retired] Red Hat Linux Beta Reporter: Christian Rose <menthos>
Component: anacondaAssignee: Michael Fulbright <msf>
Status: CLOSED DEFERRED QA Contact: Mike McLean <mikem>
Severity: medium Docs Contact:
Priority: medium    
Version: beta2   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
URL: http://developer.gnome.org/doc/tutorials/gnome-i18n/developer.html#plurals
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2003-10-03 18:39:01 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:
Bug Depends On:    
Bug Blocks: 106150    

Description Christian Rose 2003-10-03 10:38:24 UTC
#: ../iw/progress_gui.py:43
msgid " Byte"

#: ../iw/progress_gui.py:45
msgid " Bytes"


As mentioned in
http://developer.gnome.org/doc/tutorials/gnome-i18n/developer.html#plurals,
this way of handling plurals is broken for many locales. A way to solve
this is by using ngettext instead as mentioned in that document.
A simple code example of code using ngettext:

  g_printf (ngettext ("Found %d file.", "Found %d files.", nbr_of_files),
nbr_of_files);

Something similar should work in Python too.

Comment 1 Jeremy Katz 2003-10-03 18:39:01 UTC
python doesn't currently have an ngettext implementation.

Comment 2 Christian Rose 2003-10-15 22:47:42 UTC
This also applies to:

#: ../iw/progress_gui.py:167
#, python-format
msgid "Remaining time: %s minutes"