diff frontends/wix/param.py @ 70:8f2ed279784b

i18n - gettext support added in frontends - first draft of frontends french translation
author Goffi <goffi@goffi.org>
date Fri, 05 Mar 2010 20:33:10 +1100
parents a5b5fb5fc9fd
children 23caf1051099
line wrap: on
line diff
--- a/frontends/wix/param.py	Wed Mar 03 17:12:23 2010 +1100
+++ b/frontends/wix/param.py	Fri Mar 05 20:33:10 2010 +1100
@@ -29,7 +29,7 @@
 
 
 class Param(wx.Frame):
-    def __init__(self, host, title="Configuration"):
+    def __init__(self, host, title=_("Configuration")):
         super(Param, self).__init__(None, title=title)
 
         self.host = host
@@ -75,7 +75,7 @@
             elif type=="button":
                 ctrl = wx.Button(panel, -1, value)
             else:
-                error("FIXME FIXME FIXME")  #FIXME !
+                error(_("FIXME FIXME FIXME"))  #FIXME !
                 raise NotImplementedError
             ctrl.param_id=(name, category)
             sizer.Add(ctrl, 1, flag=wx.EXPAND)
@@ -107,12 +107,10 @@
     def onButtonClicked(self, event):
         """Called when a paramated is modified"""
         self.__save_parameters()
-        print "Button Clicked (%s/%s)" % event.GetEventObject().param_id
         name, category = event.GetEventObject().param_id
         data = {"name":name, "category":category}
         id = self.host.bridge.launchAction("button", data)
         self.host.current_action_ids.add(id)
-        print "action id:",id
         event.Skip()
 
     def __save_parameters(self):
@@ -122,7 +120,7 @@
 
     def onClose(self, event):
         """Close event: we have to save the params."""
-        debug("close")
+        debug(_("close"))
         #now we save the modifier params
         self.__save_parameters()