Bug 106779 - Please use ngettext for handling plurals in redhat-config-cluster
Summary: Please use ngettext for handling plurals in redhat-config-cluster
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Enterprise Linux 3
Classification: Red Hat
Component: redhat-config-cluster
Version: 3.0
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Jim Parsons
QA Contact: David Lawrence
URL:
Whiteboard:
Depends On:
Blocks: 106150
TreeView+ depends on / blocked
 
Reported: 2003-10-10 14:59 UTC by Christian Rose
Modified: 2009-04-16 19:36 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2007-10-19 19:34:01 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Christian Rose 2003-10-10 14:59:17 UTC
#: src/configure/daemonPropDialog.py:470
#, python-format
msgid ""
"Cluster has %s members:\n"
"Disk Tiebreaker and Network Tiebreaker will not be used."

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 2.3 too.

Comment 1 Hardy Merrill 2003-10-14 19:44:59 UTC
I just researched ngettext in the Python documentation - ngettext is new in
Python 2.3, and Taroon (RHEL3) has Python 2.2.3.  So this change won't be
possible until the next RHEL release which contains at least Python 2.3.

Comment 2 Hardy Merrill 2003-10-14 20:10:49 UTC
Mistake - didn't mean to close it.

Comment 3 RHEL Program Management 2007-10-19 19:34:01 UTC
This bug is filed against RHEL 3, which is in maintenance phase.
During the maintenance phase, only security errata and select mission
critical bug fixes will be released for enterprise products. Since
this bug does not meet that criteria, it is now being closed.
 
For more information of the RHEL errata support policy, please visit:
http://www.redhat.com/security/updates/errata/
 
If you feel this bug is indeed mission critical, please contact your
support representative. You may be asked to provide detailed
information on how this bug is affecting you.


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