- gettext support added in frontends
- first draft of frontends french translation
This commit is contained in:
Goffi 2010-03-05 20:33:10 +11:00
commit e3ebafd8f3

View file

@ -29,7 +29,7 @@ from tools.jid import JID
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 @@ class Param(wx.Frame):
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 @@ class Param(wx.Frame):
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 @@ class Param(wx.Frame):
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()