Use gettext plural forms

Bug #625199 reported by Khaled Hosny
18
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Ubuntu Translations
Fix Released
Medium
Unassigned
Unity
Fix Released
Low
Gord Allott
unity (Ubuntu)
Fix Released
Low
Canonical Desktop Experience Team
Maverick
Fix Released
Low
Canonical Desktop Experience Team

Bug Description

Binary package hint: unity

Unity has the following string "%d items", which assumes all languages has simple plural forms which is not true, it should be properly handled using gettext plural formula, see http://www.gnu.org/software/hello/manual/gettext/Plural-forms.html for more details.

Tags: patch

Related branches

Revision history for this message
Khaled Hosny (khaledhosny) wrote :

I don't know Vala, but if the gettext use is the same as in C (as I read somewhere), then the attached patch should address this issue. Unfortunately, I don't have enough up to date build environment to test it, but xgettext seems to extract plural forms properly.

tags: added: patch
Gord Allott (gordallott)
Changed in unity:
status: New → Confirmed
importance: Undecided → Low
assignee: nobody → Gord Allott (gordallott)
Gord Allott (gordallott)
Changed in unity:
milestone: none → 2010-09-02
Changed in unity (Ubuntu Maverick):
importance: Undecided → Low
assignee: nobody → Canonical Desktop Experience Team (canonical-dx-team)
Gord Allott (gordallott)
Changed in unity:
status: Confirmed → Fix Committed
Gord Allott (gordallott)
Changed in unity:
status: Fix Committed → Fix Released
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package unity - 0.2.34-0ubuntu1

---------------
unity (0.2.34-0ubuntu1) maverick; urgency=low

  * New upstream release:
    - Use gettext plural form (LP: #625199)
    - Fix newly pinned app is removed from the launcher on closing that app but
      works fine afterward (LP: #614329)
    - Fix Memory leak in places (LP: #628588)
  * remove debian/source/:
    - revert to previous format, seems to confuse daily build and we don't have
      anymore bin patch
  * remove upstreamed debian/trash.png, debian/applications.png and
    debian/files.png
  * debian/rules:
    - remove copying debian/*png
  * debian/libunity0.symbols:
    - refreshed
 -- Didier Roche <email address hidden> Fri, 03 Sep 2010 17:00:45 +0200

Changed in unity (Ubuntu Maverick):
status: New → Fix Released
David Planella (dpm)
Changed in ubuntu-translations:
status: New → Fix Released
importance: Undecided → Medium
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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