diff --git a/CompoundFilter.py b/CompoundFilter.py index 549207f..5676da6 100644 --- a/CompoundFilter.py +++ b/CompoundFilter.py @@ -231,8 +231,8 @@ class _CommandCompoundFilter: else: mb = QtGui.QMessageBox() mb.setIcon(mb.Icon.Warning) - mb.setText(_translate("Lattice_CompoundFilter", "Select a shape that is a compound, first! Second selected item (optional) will be treated as a stencil.", None)) - mb.setWindowTitle(_translate("Lattice_CompoundFilter","Bad selection", None)) + mb.setText(translate("Lattice_CompoundFilter", "Select a shape that is a compound, first! Second selected item (optional) will be treated as a stencil.", None)) + mb.setWindowTitle(translate("Lattice_CompoundFilter","Bad selection", None)) mb.exec_() def IsActive(self): @@ -276,8 +276,8 @@ class _CommandExplode: else: mb = QtGui.QMessageBox() mb.setIcon(mb.Icon.Warning) - mb.setText(_translate("Lattice_CompoundFilter", "Select a shape that is a compound, first!", None)) - mb.setWindowTitle(_translate("Lattice_CompoundFilter","Bad selection", None)) + mb.setText(translate("Lattice_CompoundFilter", "Select a shape that is a compound, first!", None)) + mb.setWindowTitle(translate("Lattice_CompoundFilter","Bad selection", None)) mb.exec_() def IsActive(self): diff --git a/FuseCompound.py b/FuseCompound.py index a198a58..460f49c 100644 --- a/FuseCompound.py +++ b/FuseCompound.py @@ -130,8 +130,8 @@ class _CommandFuseCompound: else: mb = QtGui.QMessageBox() mb.setIcon(mb.Icon.Warning) - mb.setText(_translate("Lattice_FuseCompound", "Select a shape that is a compound whose children intersect, first!", None)) - mb.setWindowTitle(_translate("Lattice_FuseCompound","Bad selection", None)) + mb.setText(translate("Lattice_FuseCompound", "Select a shape that is a compound whose children intersect, first!", None)) + mb.setWindowTitle(translate("Lattice_FuseCompound","Bad selection", None)) mb.exec_() def IsActive(self): diff --git a/latticeBoundBox.py b/latticeBoundBox.py index 1df559a..6486ff8 100644 --- a/latticeBoundBox.py +++ b/latticeBoundBox.py @@ -206,8 +206,8 @@ class _CommandBoundBox: else: mb = QtGui.QMessageBox() mb.setIcon(mb.Icon.Warning) - mb.setText(_translate("Lattice_BoundBox", "Select a shape to make a bounding box for, first!", None)) - mb.setWindowTitle(_translate("Lattice_BoundBox","Bad selection", None)) + mb.setText(translate("Lattice_BoundBox", "Select a shape to make a bounding box for, first!", None)) + mb.setWindowTitle(translate("Lattice_BoundBox","Bad selection", None)) mb.exec_() def IsActive(self): diff --git a/latticeCommon.py b/latticeCommon.py index 1cadfc5..2fb2f72 100644 --- a/latticeCommon.py +++ b/latticeCommon.py @@ -36,10 +36,10 @@ except AttributeError: return s try: _encoding = QtGui.QApplication.UnicodeUTF8 - def _translate(context, text, disambig): + def translate(context, text, disambig): return QtGui.QApplication.translate(context, text, disambig, _encoding) except AttributeError: - def _translate(context, text, disambig): + def translate(context, text, disambig): return QtGui.QApplication.translate(context, text, disambig) #--------------------------/translation-related code ---------------------------------------- diff --git a/latticeDowngrade.py b/latticeDowngrade.py index 5017018..f59a97a 100644 --- a/latticeDowngrade.py +++ b/latticeDowngrade.py @@ -170,8 +170,8 @@ class _CommandLatticeDowngrade: else: mb = QtGui.QMessageBox() mb.setIcon(mb.Icon.Warning) - mb.setText(_translate("Lattice_Downgrade", "Select a shape to downgrade, first!", None)) - mb.setWindowTitle(_translate("Lattice_Downgrade","Bad selection", None)) + mb.setText(translate("Lattice_Downgrade", "Select a shape to downgrade, first!", None)) + mb.setWindowTitle(translate("Lattice_Downgrade","Bad selection", None)) mb.exec_() def IsActive(self):