Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
For bugs related to Red Hat Enterprise Linux 3 product line. The current stable release is 3.9. For Red Hat Enterprise Linux 6 and above, please visit Red Hat JIRA https://issues.redhat.com/secure/CreateIssue!default.jspa?pid=12332745 to report new issues.

Bug 106779

Summary: Please use ngettext for handling plurals in redhat-config-cluster
Product: Red Hat Enterprise Linux 3 Reporter: Christian Rose <menthos>
Component: redhat-config-clusterAssignee: Jim Parsons <jparsons>
Status: CLOSED WONTFIX QA Contact: David Lawrence <dkl>
Severity: low Docs Contact:
Priority: low    
Version: 3.0CC: cluster-maint
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: 2007-10-19 19:34: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-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.