Python + GtkBuilder: translations not shown
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Awn Extras |
Fix Released
|
Medium
|
onox |
Bug Description
Distribution: Ubuntu 10.04 Lucid Lynx
Awn and Awn Extras: 0.4.0-0ubuntu1 (installed from Ubuntu repository lucid/universe)
Newest translations installed.
Cairo Clock translations are not shown, although they exist.
Steps to reproduce: Switch to French locale, be sure you have the translation files (due to bug #583948 they might not be there), open Cairo Clock's preferences. The preference dialog should be fully translated but it isn't.
I understand no python at all, but my assumption is that this is connected with GtkBuilder. The other python-applets have translated preference dialogs, but they are all coded in the python script itself, whereas Cairo Clock uses a .ui-file and GtkBuilder.
Related branches
tags: | added: applet cairo-clock i18n |
Changed in awn-extras: | |
assignee: | nobody → onox (onox) |
importance: | Undecided → Medium |
summary: |
- cairo-clock translations not shown + Python + GtkBuilder: translations not shown |
tags: | added: bandwidth-monitor battery comics cpu-freq hardware-sensors mail media-control media-player mount shinyswitcher volume-control weather |
Changed in awn-extras: | |
status: | Fix Committed → Fix Released |
I found a possible solution at https:/ /bugzilla. gnome.org/ show_bug. cgi?id= 574520
Adding these lines to cairo-clock.py helps:
import gtk.glade bindtextdomain( "awn-extras" , "/usr/share/ locale/ ") textdomain( "awn-extras" )
gtk.glade.
gtk.glade.
I guess it's not a good solution though. In the aforementioned Gnome bug are more details, also a comment from Ubuntu's Sebastien Bacher.
And there are more applets affected, e.g. the weather applet.