Status strings during update do not show up translated

Bug #641262 reported by Gabor Kelemen
52
This bug affects 7 people
Affects Status Importance Assigned to Milestone
Ubuntu Translations
Fix Released
Medium
Unassigned
aptdaemon (Ubuntu)
Fix Released
Medium
Sebastian Heinlein
Maverick
Invalid
Medium
Unassigned
Natty
Invalid
Medium
Sebastian Heinlein

Bug Description

Binary package hint: aptdaemon

The status messages during package update do not show up translated. I don't know where are these actually coming from (perhaps even from apt or dpkg?), so filing it here.

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

Those strings are created by the aptdaemon. The problem is that aptdaemon doesn't switch the language (since it can theoretically used by several user with different languages.

In the trunk branch each transaction has got its own gettext translation according to its language. But I am not happy about how I access this translation instance. So expect the fix to land in Natty.

Changed in aptdaemon (Ubuntu):
status: New → Fix Committed
importance: Undecided → Medium
assignee: nobody → Sebastian Heinlein (glatzor)
milestone: none → later
status: Fix Committed → In Progress
David Planella (dpm)
Changed in ubuntu-translations:
status: New → Triaged
importance: Undecided → Medium
Michael Vogt (mvo)
Changed in aptdaemon (Ubuntu Maverick):
status: New → Confirmed
importance: Undecided → Medium
Revision history for this message
Michael Vogt (mvo) wrote :

Sebastian, could you please review the linked branch? It should fix the missing i18n for dpkg and download progress.

Revision history for this message
Sebastian Heinlein (glatzor) wrote : Re: [Bug 641262] Re: Status strings during update do not show up translated

The downloading happens in the main process of aptdaemon. Changing the
locale for the main process could interact with error messages
generated by the daemon for actions of another user. In the trunk
branch there is a mechanism to create error messages in the language
of the transaction. So it would be ok to ship it as a distro patch -
knowing its limitations.

The unsetting of LANGUAGGE seems to be sane, but should happen in the
_fork method. This way it would also be re-used by the dpkg progresses.

Thanks!!!

----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.

Changed in ubuntu-translations:
status: Triaged → Invalid
David Planella (dpm)
Changed in ubuntu-translations:
status: Invalid → Triaged
Revision history for this message
Gabor Kelemen (kelemeng) wrote :

The situation improved in Natty, but still not perfect. The string on the first screenshot is translated now, but the one on the second screenshot (this comes from libapt-pkg4.10) is still not. When running the update in Synaptic, this is translated too.

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

We actually now unset the transalations from apt to have more useful crash logs. Seems to be a negative side effect. Makes sense to create the messages in aptdaemon instead of just using the raw message from apt.

Changed in aptdaemon (Ubuntu):
status: In Progress → Fix Released
Gabor Kelemen (kelemeng)
Changed in ubuntu-translations:
status: Triaged → Fix Committed
Revision history for this message
Gabor Kelemen (kelemeng) wrote :

Just tested it on Precise, and it works fine now, thanks!

Changed in ubuntu-translations:
status: Fix Committed → Fix Released
Revision history for this message
dino99 (9d9) wrote :
Changed in aptdaemon (Ubuntu Natty):
status: In Progress → Invalid
Changed in aptdaemon (Ubuntu Maverick):
status: Confirmed → Invalid
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.