Bug 106185 - Please use ngettext for handling plurals in redhat-config-kickstart
Summary: Please use ngettext for handling plurals in redhat-config-kickstart
Status: CLOSED DEFERRED
Alias: None
Product: Red Hat Linux Beta
Classification: Retired
Component: redhat-config-kickstart
Version: beta2
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Brent Fox
QA Contact: David Lawrence
URL: http://developer.gnome.org/doc/tutori...
Whiteboard:
Keywords:
Depends On:
Blocks: 106150
TreeView+ depends on / blocked
 
Reported: 2003-10-03 15:09 UTC by Christian Rose
Modified: 2007-04-18 16:58 UTC (History)
0 users

(edit)
Clone Of:
(edit)
Last Closed: 2003-10-08 03:27:34 UTC


Attachments (Terms of Use)

Description Christian Rose 2003-10-03 15:09:59 UTC
#: ../src/raidOptionsWindow.py:77
msgid "You currently have %d software RAID partition(s) free to use."


It would be nice to handle singular/plural here. In that case, please use
ngettext as mentioned in
http://developer.gnome.org/doc/tutorials/gnome-i18n/developer.html#plurals.
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 Brent Fox 2003-10-08 03:27:34 UTC
I may be wrong, but I believe that ngettext was introduced in Python 2.3.  We
will be staying with Python 2.2 for Cambridge, so I'll defer this to a future
release.


Note You need to log in before you can comment on or make changes to this bug.