Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 63192

Summary: Broken plural hack
Product: [Retired] Red Hat Linux Reporter: Christian Rose <menthos>
Component: rhn-appletAssignee: Daniel Veillard <veillard>
Status: CLOSED RAWHIDE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 7.3   
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2002-04-11 00:02:15 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 Christian Rose 2002-04-10 22:56:49 UTC
#. it is possible that the applet was destroyed during the time it
#. took to update the model.  If the applet is gone, bail now.
#: ../rhn_applet.py:300
msgid "%d update%s available (%d ignored)"

This "tack on an s if it's plural" hack is broken all over the place with
regards to l10n. Please replace this with two separate messages (one non-plural
and one plural) instead of assuming that all languages use an s for the plural
of the word "update" (*).

(*) In fact, plural is even more complex than this, many languages use more than
two forms of plural, and the rules for what is plural vary. This is why
ngettext() should be used instead of gettext() in these cases, but I don't know
if pygettext supports it.

Comment 1 Chip Turner 2002-04-11 00:02:08 UTC
good point.  I don't think ngettext is available, but I have changed it to two
entire strings instead of one

Comment 2 Jay Turner 2002-04-16 14:08:26 UTC
Fix confirmed in 1.0.6-10.