rosetta truncated plural form for pl and that breaks python apps

Bug #63344 reported by malQi
42
Affects Status Importance Assigned to Milestone
language-pack-pl (Ubuntu)
Fix Released
Medium
Martin Pitt

Bug Description

Used plural forms seem to well formated.

msgid_plural "%d packages are going to be removed."
msgid_plural "%d new packages are going to be installed."
msgid_plural "%d packages are going to be upgraded."
msgid_plural "You can install %s updates"

Binary package hint: update-manager

after recent update of edgy, the update-manager is unable to start, in console after "sudo update-manager" there is such output:
Traceback (most recent call last):
  File "/usr/bin/update-manager", line 50, in ?
    parser = OptionParser()
  File "/usr/lib/python2.4/optparse.py", line 1111, in __init__
    self.set_usage(usage)
  File "/usr/lib/python2.4/optparse.py", line 1169, in set_usage
    self.usage = _("%prog [options]")
  File "/usr/lib/python2.4/gettext.py", line 568, in gettext
    return dgettext(_current_domain, message)
  File "/usr/lib/python2.4/gettext.py", line 532, in dgettext
    codeset=_localecodesets.get(domain))
  File "/usr/lib/python2.4/gettext.py", line 480, in translation
    t = _translations.setdefault(key, class_(open(mofile, 'rb')))
  File "/usr/lib/python2.4/gettext.py", line 177, in __init__
    self._parse(fp)
  File "/usr/lib/python2.4/gettext.py", line 302, in _parse
    self.plural = c2py(plural)
  File "/usr/lib/python2.4/gettext.py", line 86, in c2py
    raise ValueError, \
ValueError: plural forms expression error, maybe unbalanced parenthesis

Revision history for this message
Sebastian Heinlein (glatzor) wrote :

Which language do you use? Please run "export LANG=C" in the terminal before you start update-manager.

Revision history for this message
malQi (malqav) wrote :

i use polish language. maybe stupid question, but should i change command "export LANG=C" in some way, because it's not helping.

Revision history for this message
Paweł T. Jochym (jochym) wrote :

I can confirm this bug. It stopped to work after update from the edgy beta CD install to the current state. The repositories dialog shows the same error. The LANG trick does not help. I am also using polish version.

Revision history for this message
Michael Vogt (mvo) wrote :

could you please run the following commands in a gnome-terminal:
$ unset LANGUAGE
$ export LC_ALL=C
$ update-manager
?

I suspect that this is a broken translation in the langpack for polish.

Cheers,
 Michael

Changed in update-manager:
importance: Undecided → Medium
status: Unconfirmed → Needs Info
Revision history for this message
Paweł T. Jochym (jochym) wrote :

This (unset LANGUAGE ; export LC_ALL=C) did the trick.
I guess that you are right - this must be connected to the polish translation package. Should we refile the bug against some other package? which?

description: updated
description: updated
description: updated
Revision history for this message
Sebastian Heinlein (glatzor) wrote : Re: [update-manager] wrong translation crashes application

I can reproduce the crash here using the latest po file from rosetta.

description: updated
Revision history for this message
Sebastian Heinlein (glatzor) wrote :

The problem seems to be an error in launchpad po file export function. It turncates the plural definition in a wrong way. So if you reimport a po file, it will break.

Revision history for this message
Sebastian Heinlein (glatzor) wrote :
Revision history for this message
Dominik Zablotny (doza) wrote :

I have reimported file with corrected plural, so it should be fixed soon

Revision history for this message
Paweł T. Jochym (jochym) wrote :

It is still not fixed. The same messages are printed. This is a real problem. The update-manager is a program ALL ubuntu users use (or are supose to use) often. And it is run as one of the first programs after installation. This bug leads to the confusing situation for any inexperienced user (workaround: just select "Install all updates" (Zainstaluj wszystkie aktualizacje) from the popup menu). And this bug affects at least all polish users. Please fix this before release.

Revision history for this message
Dominik Zablotny (doza) wrote :

Corrected file is still in import queue

Revision history for this message
Sebastian Heinlein (glatzor) wrote :

There is no need to remember us of the importance of the bug. We all know very well about this. The import queue seems to have some serious problems again :/ I uploaded po files some days ago.

Revision history for this message
Paweł T. Jochym (jochym) wrote :

Sorry! I was not remainding.
I have submitted the report after checking that recent (2 days ago) language pack upgrade did not fix this issue. I was just trying to be helpfull... Do not get mad :)

Take care!
Paweł

Revision history for this message
Sebastian Heinlein (glatzor) wrote :

Sorry, I did not intend to insult you. But this bug covers a lot of my daily bug emails (duplicates).

Michael Vogt (mvo)
Changed in language-pack-pl:
status: Needs Info → Confirmed
Revision history for this message
Martin Pitt (pitti) wrote :

New langpacks will be uploaded at Friday. If Rosetta still exports wrong Polish data for update-manager, I will manually fix them.

Please test the daily language packs and report back:

 deb http://people.ubuntu.com/~pitti/langpacks/daily/edgy/ ./

Changed in language-pack-pl:
assignee: nobody → pitti
status: Confirmed → In Progress
Revision history for this message
Martin Pitt (pitti) wrote :

Will be fixed with today's langpacks.

Changed in language-pack-pl:
status: In Progress → Fix Committed
Revision history for this message
Martin Pitt (pitti) wrote :

Fixed langpacks were uploaded.

Changed in language-pack-pl:
status: Fix Committed → Fix Released
Revision history for this message
Paweł T. Jochym (jochym) wrote :

It is fixed now. After today's upgrade and restart software properties and update manager works fine in polish locale.

Thanks everyone fo another squashed bug. :)

Revision history for this message
Cezar (cezar-damian) wrote :

Hi,
I have the same problem for Romanian language

ro_RO:ro

Can you upload a corrected langpack version ?

Thank you,
Cezar

Revision history for this message
Martin Pitt (pitti) wrote :

Cezar, was that fixed with the current edgy-updates language packs?

Revision history for this message
Cezar (cezar-damian) wrote : Re: [Bug 63344] Re: rosetta truncated plural form for pl and that breaks python apps

Nope, doesn't.
The problem is for ro language

----- Original Message ----
From: Martin Pitt <email address hidden>
To: <email address hidden>
Sent: Monday, January 8, 2007 3:59:46 PM
Subject: [Bug 63344] Re: rosetta truncated plural form for pl and that breaks python apps

Cezar, was that fixed with the current edgy-updates language packs?

--
rosetta truncated plural form for pl and that breaks python apps
https://launchpad.net/bugs/63344

____________________________________________________________________________________
Want to start your own business?
Learn how on Yahoo! Small Business.
http://smallbusiness.yahoo.com/r-index

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.