def retranslate(self, all=True): """For dynamic retranslation of the plugin text strings """ self.left.setTabToolTip(self.indexSF, qApp.translate("SearchPlugin", "Search Form")) self.left.setTabToolTip( self.indexFB, qApp.translate("SearchPlugin", "Filter Builder")) self.searchForm.retranslateUi(self.searchForm) self.filterBuilder.retranslateUi(self.searchForm) self.str_SEARCH_RESULT = qApp.translate("SearchPlugin", "Search Result") if all: self.retranslateUi(self) for tab in self.right.children(): try: tab.retranslate() except AttributeError: pass
def retranslate(self, all=True): """For dynamic retranslation of the plugin text strings """ self.left.setTabToolTip( self.indexSF, qApp.translate("SearchPlugin", "Search Form")) self.left.setTabToolTip( self.indexFB, qApp.translate("SearchPlugin", "Filter Builder")) self.searchForm.retranslateUi(self.searchForm) self.filterBuilder.retranslateUi(self.searchForm) self.str_SEARCH_RESULT = qApp.translate( "SearchPlugin", "Search Result" ) if all: self.retranslateUi(self) for tab in self.right.children(): try: tab.retranslate() except AttributeError: pass
def tr(self, text): return qApp.translate("ActionEditorDialog", text)
def tr(self, text): return qApp.translate("ActionEditorWidget", text)