Don't assume simple plurals

Bug #440561 reported by Khaled Hosny
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Ubuntu Translations
Fix Released
Low
Barry Warsaw
computer-janitor (Ubuntu)
Fix Released
Low
Barry Warsaw

Bug Description

Binary package hint: computer-janitor

The following message in computer-janitor translation "You have chosen to <b>remove %d software packages.</b> Removing packages that are still needed can cause errors." assumes simple plural forms which might work for English but not in many other languages, see http://www.gnu.org/software/gettext/manual/gettext.html#Plural-forms for more details.

The attached patch changes computerjanitorapp.setup_gettext() to allow exposing ngettext method, and fixes the rest of source code according.

Revision history for this message
Khaled Hosny (khaledhosny) wrote :
Revision history for this message
to be removed (liw) wrote :

It doesn't actually work for English either. The text in English should be adapted in the next
release cycle so it works for all situations.

Changed in computer-janitor (Ubuntu):
status: New → Triaged
importance: Undecided → Low
David Planella (dpm)
Changed in ubuntu-translations:
status: New → Triaged
importance: Undecided → Low
Revision history for this message
Barry Warsaw (barry) wrote :

In CJ 2.0 (available in my PPA), the message reads:

Software packages to remove: {packages}

where the latter is a placeholder. At least, that works better for English - do the plurals work out better for other languages?

Changed in computer-janitor (Ubuntu):
milestone: none → maverick-alpha-1
assignee: nobody → Barry Warsaw (barry)
status: Triaged → Fix Committed
Barry Warsaw (barry)
Changed in computer-janitor (Ubuntu):
status: Fix Committed → Fix Released
Changed in ubuntu-translations:
assignee: nobody → Barry Warsaw (barry)
status: Triaged → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.