@@ -74,19 +74,19 @@ class ui_manager_class(ui_manager_base_class):
7474 def __init__ (self , plugin_root_fld , mainwindow , combobox_workbench , combobox_workbench_update , fsm ):
7575
7676 if not isinstance (plugin_root_fld , str ):
77- raise QgistTypeError (' plugin_root_fld must be str' )
77+ raise QgistTypeError (translate ( 'global' , ' plugin_root_fld must be str') )
7878 if not os .path .exists (plugin_root_fld ):
79- raise QgistValueError (' plugin_root_fld must exists' )
79+ raise QgistValueError (translate ( 'global' , ' plugin_root_fld must exists') )
8080 if not os .path .isdir (plugin_root_fld ):
81- raise QgistValueError (' plugin_root_fld must be a directory' )
81+ raise QgistValueError (translate ( 'global' , ' plugin_root_fld must be a directory') )
8282 if not isinstance (mainwindow , QMainWindow ):
83- raise QgistTypeError (' mainwindow must be a QGis mainwindow' )
83+ raise QgistTypeError (translate ( 'global' , ' mainwindow must be a QGis mainwindow') )
8484 if not isinstance (combobox_workbench , QComboBox ):
85- raise QgistTypeError (' combobox_workbench must be a QGis mainwindow' )
85+ raise QgistTypeError (translate ( 'global' , ' combobox_workbench must be a QGis mainwindow') )
8686 if not hasattr (combobox_workbench_update , '__call__' ):
87- raise QgistTypeError (' combobox_workbench_update must be callable' )
87+ raise QgistTypeError (translate ( 'global' , ' combobox_workbench_update must be callable') )
8888 if not isinstance (fsm , dtype_fsm_class ):
89- raise QgistTypeError (' fsm must be a workbench finite state machine' )
89+ raise QgistTypeError (translate ( 'global' , ' fsm must be a workbench finite state machine') )
9090
9191 super ().__init__ (plugin_root_fld )
9292
@@ -133,7 +133,7 @@ def _toolbutton_new_clicked(self):
133133
134134 new_name , user_ok = QInputDialog .getText (
135135 self ,
136- translate ('global' , 'New work bench ' ),
136+ translate ('global' , 'New workbench ' ),
137137 translate ('global' , 'Name of new workbench' )
138138 )
139139
0 commit comments