예제 #1
0
    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
예제 #2
0
파일: Search.py 프로젝트: einaru/luma
    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
예제 #3
0
 def tr(self, text):
 
     return qApp.translate("ActionEditorDialog", text)
예제 #4
0
 def tr(self, text):
 
     return qApp.translate("ActionEditorWidget", text)