Gettextise debug functions
authorEnrico Zini <enrico@enricozini.org>
Sun, 14 Jun 2009 05:26:29 +0000 (13:26 +0800)
committerEnrico Zini <enrico@enricozini.org>
Sun, 14 Jun 2009 05:26:29 +0000 (13:26 +0800)
plugins/99_debug.py

index 160fa14b27d7fef620f5f872ab131c4b3ddf2242..b7801e0e0d698a778ed09cb1a5335dea3a7cdb5a 100644 (file)
 # along with this program; if not, write to the Free Software
 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 
-import zavai
 import gtk
 import sys
+import gettext
+_ = gettext.gettext
+import zavai
 
 def init(conf = None, registry = None, **kw):
     debug = registry.menu("main.debug")
 
-    quit = zavai.MenuButton("Quit")
+    quit = zavai.MenuButton(_("Quit"))
     quit.connect("clicked", gtk.main_quit)
     debug.add_child(quit)
 
-    registry.menu("main").add_child(registry.menu_link("main.debug", "Debug"))
+    registry.menu("main").add_child(registry.menu_link("main.debug", _("Debug")))