gnome-about crashed with KeyError in make_info_label()

Bug #199965 reported by Daniel Gurgel
76
This bug affects 2 people
Affects Status Importance Assigned to Milestone
language-pack-gnome-pt (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

bug to be continued in alpha 6 - pt-br

ProblemType: Crash
Architecture: i386
Date: Sat Mar 8 18:59:25 2008
Dependencies: gnome-desktop-data 1:2.21.92-0ubuntu3
DistroRelease: Ubuntu 8.04
ExecutablePath: /usr/bin/gnome-about
InterpreterPath: /usr/bin/python2.5
NonfreeKernelModules: nvidia
Package: gnome-about 1:2.21.92-0ubuntu3
PackageArchitecture: i386
ProcCmdline: /usr/bin/python /usr/bin/gnome-about
ProcEnviron:
 PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
 LANG=pt_BR.UTF-8
 SHELL=/bin/bash
PythonArgs: ['/usr/bin/gnome-about']
SourcePackage: gnome-desktop
Title: gnome-about crashed with KeyError in make_info_label()
Uname: Linux 2.6.24-11-generic i686
UserGroups: adm admin audio cdrom dialout dip floppy lpadmin plugdev sambashare video

Revision history for this message
Daniel Gurgel (danieldemoraisgurgel) wrote :
Revision history for this message
Apport retracing service (apport) wrote : Possible regression detected

This crash has the same stack trace characteristics as bug #186118. However, the latter was already fixed in an earlier package version than the one in this report. This might be a regression or because the problem is in a dependent package.

Revision history for this message
Sebastien Bacher (seb128) wrote :

that's a translation issue

Revision history for this message
Susana Pereira (susana) wrote :

This bug is not present in portuguese from Portugal. Subscribing Ubuntu Brazilian Translators.

Revision history for this message
Og Maciel (ogmaciel) wrote :

Not sure how this is a translation bug... however, the code at line 920 in /usr/bin/gnome-about can be improved.

  File "/usr/bin/gnome-about", line 920, in make_info_label
    label.set_markup (_("<b>%(name)s:</b> %(value)s") % infos_dict)

There's no need to have the variable inside of the gettext function.

Assume param = "foo". If you use _("some %s string" %param) then you will be looking up the interpolated string "some foo string" in the message catalog. The message catalog should have "some %s string" translated. Therefore, % should always be outside of _().

Revision history for this message
Og Maciel (ogmaciel) wrote : FYI

Brazilian Portuguese translation:

#: ../gnome-about/gnome-about.in:865
msgid "%(name)s: %(value)s"
msgstr "%(name)s: %(value)s"

Revision history for this message
Daniel T Chen (crimsun) wrote :

Is this symptom still reproducible in 8.10 or 9.04?

Changed in language-pack-gnome-pt:
status: New → Incomplete
Revision history for this message
Daniel Cordeiro (dcordeiro) wrote :

Tested in 8.10 and works just fine.
Thanks!

Revision history for this message
Victor Vargas (kamus) wrote :

This bug report is being closed due to your last comment regarding this being fixed with an update. Thank you again for taking the time to report this bug and helping to make Ubuntu better. Please submit any future bugs you may find.

Changed in language-pack-gnome-pt (Ubuntu):
status: Incomplete → 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.