51 Public method to define the flask-babel actions. |
51 Public method to define the flask-babel actions. |
52 """ |
52 """ |
53 self.actions = [] |
53 self.actions = [] |
54 |
54 |
55 self.pybabelConfigAct = E5Action( |
55 self.pybabelConfigAct = E5Action( |
56 self.tr('Configure PyBabel'), |
56 self.tr('Configure flask-babel'), |
57 self.tr('&Configure PyBabel'), |
57 self.tr('&Configure flask-babel'), |
58 0, 0, |
58 0, 0, |
59 self, 'flask_config_pybabel') |
59 self, 'flask_config_pybabel') |
60 self.pybabelConfigAct.setStatusTip(self.tr( |
60 self.pybabelConfigAct.setStatusTip(self.tr( |
61 'Shows a dialog to edit the configuration for pybabel')) |
61 'Shows a dialog to edit the configuration for flask-babel')) |
62 self.pybabelConfigAct.setWhatsThis(self.tr( |
62 self.pybabelConfigAct.setWhatsThis(self.tr( |
63 """<b>Configure PyBabel</b>""" |
63 """<b>Configure flask-babel</b>""" |
64 """<p>Shows a dialog to edit the configuration for pybabel.</p>""" |
64 """<p>Shows a dialog to edit the configuration for """ |
|
65 """flask-babel.</p>""" |
65 )) |
66 )) |
66 self.pybabelConfigAct.triggered.connect( |
67 self.pybabelConfigAct.triggered.connect( |
67 self.__configurePyBabel) |
68 self.__configurePyBabel) |
68 self.actions.append(self.pybabelConfigAct) |
69 self.actions.append(self.pybabelConfigAct) |
69 |
70 |