strings in wicd.glade are not localized

Bug #557932 reported by Bitman Zhou
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
wicd (Ubuntu)
New
Undecided
Unassigned

Bug Description

Binary package hint: wicd

I am using wicd_1.7.0+ds1-2 in Ubuntu 9.10 and system locale is zh_CN. All strings contained in wicd.glade are not localized.
There is a bug in wicd-1.7.0/gtk/gui.py and it also needs to include translatable strings from wicd.glade to the po file.

--- gui.pyold 2010-04-08 14:20:01.000000000 +0800
+++ gui.py 2010-04-08 16:34:04.000000000 +0800
@@ -149,7 +149,7 @@
         self.tray = tray

         gladefile = os.path.join(wpath.gtk, "wicd.glade")
- self.wTree = gtk.glade.XML(gladefile)
+ self.wTree = gtk.glade.XML(gladefile, None, "wicd")
         self.window = self.wTree.get_widget("window1")
         self.window.set_icon_name("wicd-gtk")
         size = daemon.ReadWindowSize("main")

To include strings from wicd.glade:

intltool-extract --type=gettext/glade wicd.glade
xgettext --language=Python --keyword=_ --keyword=N_ --output=wicd_glade.pot wicd.glade.h
msginit --input=wicd_glade.pot --locale=zh_CN -o wicd_glade.po

Then merge this wicd_glade.po to the po/zh_CN.po. Anyway, it's better to do all of these automatically.

Tags: patch karmic
tags: added: karmic patch
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.