i18n
- gettext support added in frontends - first draft of frontends french translation
This commit is contained in:
parent
4a293cdaa1
commit
e3ebafd8f3
1 changed files with 1701 additions and 196 deletions
|
|
@ -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()
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue