Red Hat Bugzilla – Bug 106280
Please use ngettext for handling plurals in rhn-applet
Last modified: 2007-07-26 20:18:23 EDT
msgid "%d updates available (%d ignored)"
msgid "%d update available (%d ignored)"
msgid "No updates available (%d ignored)"
As mentioned in
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),
Something similar should work in Python 2.3 too.
fedora core stays with python 2.2 for now. So, assuming I understand your
report correctly, this means this will have to be done after the next release.
If that's the case, yes.
Okay so target would be the next version of Fedora Core (assuming things
go as planned).
Do you have some kind of patch ? The URL indicates how to do this from C
but not how to do it from python, it seems you know how to do this and
that would save me some time then needed. A pointer is fine.
"ngettext( singular, plural, n)
Like gettext(), but consider plural forms. If a translation is found,
apply the plural formula to n, and return the resulting message (some
languages have more than two plural forms). If no translation is found,
return singular if n is 1; return plural otherwise.
The Plural formula is taken from the catalog header. It is a C or Python
expression that has a free variable n; the expression evaluates to the
index of the plural in the catalog. See the GNU gettext documentation for
the precise syntax to be used in .po files, and the formulas for a variety
New in version 2.3."
That's the best I can do -- I don't know Python, and I don't know where to look
for recent enough rhn-applet code.
Red Hat Linux is no longer supported by Red Hat, Inc. If you are still running
Red Hat Linux, you are strongly advised to upgrade to a current Fedora Core
release or Red Hat Enterprise Linux or comparable. Some information on which
option may be right for you is available at
Red Hat apologizes that these issues have not been resolved yet. We do want to
make sure that no important bugs slip through the cracks. Please check if this
issue is still present in a current Fedora Core release. If so, please change
the product and version to match, and check the box indicating that the
requested information has been provided. Note that any bug still open against
Red Hat Linux by the end of 2006 will be closed as 'CANTFIX'. Thanks again for
User email@example.com's account has been closed
Closing as CANTFIX.