diff --git a/src/Mod/Arch/ArchAxis.py b/src/Mod/Arch/ArchAxis.py index 59815bf66..a41b968d0 100644 --- a/src/Mod/Arch/ArchAxis.py +++ b/src/Mod/Arch/ArchAxis.py @@ -499,13 +499,13 @@ class _AxisTaskPanel: return True def retranslateUi(self, TaskPanel): - TaskPanel.setWindowTitle(QtGui.QApplication.translate("Arch", "Axes", None, QtGui.QApplication.UnicodeUTF8)) - self.delButton.setText(QtGui.QApplication.translate("Arch", "Remove", None, QtGui.QApplication.UnicodeUTF8)) - self.addButton.setText(QtGui.QApplication.translate("Arch", "Add", None, QtGui.QApplication.UnicodeUTF8)) - self.title.setText(QtGui.QApplication.translate("Arch", "Distances (mm) and angles (deg) between axes", None, QtGui.QApplication.UnicodeUTF8)) - self.tree.setHeaderLabels([QtGui.QApplication.translate("Arch", "Axis", None, QtGui.QApplication.UnicodeUTF8), - QtGui.QApplication.translate("Arch", "Distance", None, QtGui.QApplication.UnicodeUTF8), - QtGui.QApplication.translate("Arch", "Angle", None, QtGui.QApplication.UnicodeUTF8)]) + TaskPanel.setWindowTitle(QtGui.QApplication.translate("Arch", "Axes", None)) + self.delButton.setText(QtGui.QApplication.translate("Arch", "Remove", None)) + self.addButton.setText(QtGui.QApplication.translate("Arch", "Add", None)) + self.title.setText(QtGui.QApplication.translate("Arch", "Distances (mm) and angles (deg) between axes", None)) + self.tree.setHeaderLabels([QtGui.QApplication.translate("Arch", "Axis", None), + QtGui.QApplication.translate("Arch", "Distance", None), + QtGui.QApplication.translate("Arch", "Angle", None)]) if FreeCAD.GuiUp: FreeCADGui.addCommand('Arch_Axis',_CommandAxis()) diff --git a/src/Mod/Arch/ArchComponent.py b/src/Mod/Arch/ArchComponent.py index ed1aa7df7..b0f9d7a67 100644 --- a/src/Mod/Arch/ArchComponent.py +++ b/src/Mod/Arch/ArchComponent.py @@ -138,7 +138,7 @@ class SelectionTaskPanel: """A temp taks panel to wait for a selection""" def __init__(self): self.baseform = QtGui.QLabel() - self.baseform.setText(QtGui.QApplication.translate("Arch", "Please select a base object", None, QtGui.QApplication.UnicodeUTF8)) + self.baseform.setText(QtGui.QApplication.translate("Arch", "Please select a base object", None)) def getStandardButtons(self): return int(QtGui.QDialogButtonBox.Cancel) @@ -292,19 +292,19 @@ class ComponentTaskPanel: FreeCADGui.ActiveDocument.setEdit(obj.Name,0) def retranslateUi(self, TaskPanel): - self.baseform.setWindowTitle(QtGui.QApplication.translate("Arch", "Components", None, QtGui.QApplication.UnicodeUTF8)) - self.delButton.setText(QtGui.QApplication.translate("Arch", "Remove", None, QtGui.QApplication.UnicodeUTF8)) - self.addButton.setText(QtGui.QApplication.translate("Arch", "Add", None, QtGui.QApplication.UnicodeUTF8)) - self.title.setText(QtGui.QApplication.translate("Arch", "Components of this object", None, QtGui.QApplication.UnicodeUTF8)) - self.treeBase.setText(0,QtGui.QApplication.translate("Arch", "Base component", None, QtGui.QApplication.UnicodeUTF8)) - self.treeAdditions.setText(0,QtGui.QApplication.translate("Arch", "Additions", None, QtGui.QApplication.UnicodeUTF8)) - self.treeSubtractions.setText(0,QtGui.QApplication.translate("Arch", "Subtractions", None, QtGui.QApplication.UnicodeUTF8)) - self.treeObjects.setText(0,QtGui.QApplication.translate("Arch", "Objects", None, QtGui.QApplication.UnicodeUTF8)) - self.treeAxes.setText(0,QtGui.QApplication.translate("Arch", "Axes", None, QtGui.QApplication.UnicodeUTF8)) - self.treeComponents.setText(0,QtGui.QApplication.translate("Arch", "Components", None, QtGui.QApplication.UnicodeUTF8)) - self.treeFixtures.setText(0,QtGui.QApplication.translate("Arch", "Fixtures", None, QtGui.QApplication.UnicodeUTF8)) - self.treeArmatures.setText(0,QtGui.QApplication.translate("Arch", "Armatures", None, QtGui.QApplication.UnicodeUTF8)) - self.treeGroup.setText(0,QtGui.QApplication.translate("Arch", "Group", None, QtGui.QApplication.UnicodeUTF8)) + self.baseform.setWindowTitle(QtGui.QApplication.translate("Arch", "Components", None)) + self.delButton.setText(QtGui.QApplication.translate("Arch", "Remove", None)) + self.addButton.setText(QtGui.QApplication.translate("Arch", "Add", None)) + self.title.setText(QtGui.QApplication.translate("Arch", "Components of this object", None)) + self.treeBase.setText(0,QtGui.QApplication.translate("Arch", "Base component", None)) + self.treeAdditions.setText(0,QtGui.QApplication.translate("Arch", "Additions", None)) + self.treeSubtractions.setText(0,QtGui.QApplication.translate("Arch", "Subtractions", None)) + self.treeObjects.setText(0,QtGui.QApplication.translate("Arch", "Objects", None)) + self.treeAxes.setText(0,QtGui.QApplication.translate("Arch", "Axes", None)) + self.treeComponents.setText(0,QtGui.QApplication.translate("Arch", "Components", None)) + self.treeFixtures.setText(0,QtGui.QApplication.translate("Arch", "Fixtures", None)) + self.treeArmatures.setText(0,QtGui.QApplication.translate("Arch", "Armatures", None)) + self.treeGroup.setText(0,QtGui.QApplication.translate("Arch", "Group", None)) class Component: "The default Arch Component object" diff --git a/src/Mod/Arch/ArchCutPlane.py b/src/Mod/Arch/ArchCutPlane.py index 264809732..1b3776cf9 100644 --- a/src/Mod/Arch/ArchCutPlane.py +++ b/src/Mod/Arch/ArchCutPlane.py @@ -127,11 +127,11 @@ class _CutPlaneTaskPanel: self.previewObj.Shape = cutVolume def retranslateUi(self, TaskPanel): - TaskPanel.setWindowTitle(QtGui.QApplication.translate("Arch", "Cut Plane", None, QtGui.QApplication.UnicodeUTF8)) - self.title.setText(QtGui.QApplication.translate("Arch", "Cut Plane options", None, QtGui.QApplication.UnicodeUTF8)) - self.infoText.setText(QtGui.QApplication.translate("Arch", "Wich side to cut", None, QtGui.QApplication.UnicodeUTF8)) - self.combobox.addItems([QtGui.QApplication.translate("Arch", "Behind", None, QtGui.QApplication.UnicodeUTF8), - QtGui.QApplication.translate("Arch", "Front", None, QtGui.QApplication.UnicodeUTF8)]) + TaskPanel.setWindowTitle(QtGui.QApplication.translate("Arch", "Cut Plane", None)) + self.title.setText(QtGui.QApplication.translate("Arch", "Cut Plane options", None)) + self.infoText.setText(QtGui.QApplication.translate("Arch", "Wich side to cut", None)) + self.combobox.addItems([QtGui.QApplication.translate("Arch", "Behind", None), + QtGui.QApplication.translate("Arch", "Front", None)]) if FreeCAD.GuiUp: FreeCADGui.addCommand('Arch_CutPlane',_CommandCutPlane()) diff --git a/src/Mod/Arch/ArchPanel.py b/src/Mod/Arch/ArchPanel.py index ebe3e9867..2208d288a 100644 --- a/src/Mod/Arch/ArchPanel.py +++ b/src/Mod/Arch/ArchPanel.py @@ -932,11 +932,11 @@ class SheetTaskPanel(ArchComponent.ComponentTaskPanel): ArchComponent.ComponentTaskPanel.__init__(self) self.obj = obj self.optwid = QtGui.QWidget() - self.optwid.setWindowTitle(QtGui.QApplication.translate("Arch", "Tools", None, QtGui.QApplication.UnicodeUTF8)) + self.optwid.setWindowTitle(QtGui.QApplication.translate("Arch", "Tools", None)) lay = QtGui.QVBoxLayout(self.optwid) self.editButton = QtGui.QPushButton(self.optwid) self.editButton.setIcon(QtGui.QIcon(":/icons/Draft_Edit.svg")) - self.editButton.setText(QtGui.QApplication.translate("Arch", "Edit views positions", None, QtGui.QApplication.UnicodeUTF8)) + self.editButton.setText(QtGui.QApplication.translate("Arch", "Edit views positions", None)) lay.addWidget(self.editButton) QtCore.QObject.connect(self.editButton, QtCore.SIGNAL("clicked()"), self.editNodes) self.form = [self.form,self.optwid] diff --git a/src/Mod/Arch/ArchPrecast.py b/src/Mod/Arch/ArchPrecast.py index 507e5a847..15210c893 100644 --- a/src/Mod/Arch/ArchPrecast.py +++ b/src/Mod/Arch/ArchPrecast.py @@ -853,25 +853,25 @@ class _PrecastTaskPanel: def retranslateUi(self, dialog): from PySide import QtGui - self.form.setWindowTitle(QtGui.QApplication.translate("Arch", "Precast elements", None, QtGui.QApplication.UnicodeUTF8)) - self.labelSlabType.setText(QtGui.QApplication.translate("Arch", "Slab type", None, QtGui.QApplication.UnicodeUTF8)) - self.labelChamfer.setText(QtGui.QApplication.translate("Arch", "Chamfer", None, QtGui.QApplication.UnicodeUTF8)) - self.labelDentLength.setText(QtGui.QApplication.translate("Arch", "Dent length", None, QtGui.QApplication.UnicodeUTF8)) - self.labelDentWidth.setText(QtGui.QApplication.translate("Arch", "Dent width", None, QtGui.QApplication.UnicodeUTF8)) - self.labelDentHeight.setText(QtGui.QApplication.translate("Arch", "Dent height", None, QtGui.QApplication.UnicodeUTF8)) - self.labelBase.setText(QtGui.QApplication.translate("Arch", "Slab base", None, QtGui.QApplication.UnicodeUTF8)) - self.labelHoleNumber.setText(QtGui.QApplication.translate("Arch", "Number of holes", None, QtGui.QApplication.UnicodeUTF8)) - self.labelHoleMajor.setText(QtGui.QApplication.translate("Arch", "Major diameter of holes", None, QtGui.QApplication.UnicodeUTF8)) - self.labelHoleMinor.setText(QtGui.QApplication.translate("Arch", "Minor diameter of holes", None, QtGui.QApplication.UnicodeUTF8)) - self.labelHoleSpacing.setText(QtGui.QApplication.translate("Arch", "Spacing between holes", None, QtGui.QApplication.UnicodeUTF8)) - self.labelGrooveNumber.setText(QtGui.QApplication.translate("Arch", "Number of grooves", None, QtGui.QApplication.UnicodeUTF8)) - self.labelGrooveDepth.setText(QtGui.QApplication.translate("Arch", "Depth of grooves", None, QtGui.QApplication.UnicodeUTF8)) - self.labelGrooveHeight.setText(QtGui.QApplication.translate("Arch", "Height of grooves", None, QtGui.QApplication.UnicodeUTF8)) - self.labelGrooveSpacing.setText(QtGui.QApplication.translate("Arch", "Spacing between grooves", None, QtGui.QApplication.UnicodeUTF8)) - self.labelRiserNumber.setText(QtGui.QApplication.translate("Arch", "Number of risers", None, QtGui.QApplication.UnicodeUTF8)) - self.labelDownLength.setText(QtGui.QApplication.translate("Arch", "Length of down floor", None, QtGui.QApplication.UnicodeUTF8)) - self.labelRiser.setText(QtGui.QApplication.translate("Arch", "Height of risers", None, QtGui.QApplication.UnicodeUTF8)) - self.labelTread.setText(QtGui.QApplication.translate("Arch", "Depth of treads", None, QtGui.QApplication.UnicodeUTF8)) + self.form.setWindowTitle(QtGui.QApplication.translate("Arch", "Precast elements", None)) + self.labelSlabType.setText(QtGui.QApplication.translate("Arch", "Slab type", None)) + self.labelChamfer.setText(QtGui.QApplication.translate("Arch", "Chamfer", None)) + self.labelDentLength.setText(QtGui.QApplication.translate("Arch", "Dent length", None)) + self.labelDentWidth.setText(QtGui.QApplication.translate("Arch", "Dent width", None)) + self.labelDentHeight.setText(QtGui.QApplication.translate("Arch", "Dent height", None)) + self.labelBase.setText(QtGui.QApplication.translate("Arch", "Slab base", None)) + self.labelHoleNumber.setText(QtGui.QApplication.translate("Arch", "Number of holes", None)) + self.labelHoleMajor.setText(QtGui.QApplication.translate("Arch", "Major diameter of holes", None)) + self.labelHoleMinor.setText(QtGui.QApplication.translate("Arch", "Minor diameter of holes", None)) + self.labelHoleSpacing.setText(QtGui.QApplication.translate("Arch", "Spacing between holes", None)) + self.labelGrooveNumber.setText(QtGui.QApplication.translate("Arch", "Number of grooves", None)) + self.labelGrooveDepth.setText(QtGui.QApplication.translate("Arch", "Depth of grooves", None)) + self.labelGrooveHeight.setText(QtGui.QApplication.translate("Arch", "Height of grooves", None)) + self.labelGrooveSpacing.setText(QtGui.QApplication.translate("Arch", "Spacing between grooves", None)) + self.labelRiserNumber.setText(QtGui.QApplication.translate("Arch", "Number of risers", None)) + self.labelDownLength.setText(QtGui.QApplication.translate("Arch", "Length of down floor", None)) + self.labelRiser.setText(QtGui.QApplication.translate("Arch", "Height of risers", None)) + self.labelTread.setText(QtGui.QApplication.translate("Arch", "Depth of treads", None)) def setPreset(self,preset): self.preview.hide() @@ -1256,17 +1256,17 @@ class _DentsTaskPanel: def retranslateUi(self, dialog): from PySide import QtGui - self.form.setWindowTitle(QtGui.QApplication.translate("Arch", "Precast options", None, QtGui.QApplication.UnicodeUTF8)) - self.labelDents.setText(QtGui.QApplication.translate("Arch", "Dents list", None, QtGui.QApplication.UnicodeUTF8)) - self.buttonAdd.setText(QtGui.QApplication.translate("Arch", "Add dent", None, QtGui.QApplication.UnicodeUTF8)) - self.buttonRemove.setText(QtGui.QApplication.translate("Arch", "Remove dent", None, QtGui.QApplication.UnicodeUTF8)) - self.labelLength.setText(QtGui.QApplication.translate("Arch", "Length", None, QtGui.QApplication.UnicodeUTF8)) - self.labelWidth.setText(QtGui.QApplication.translate("Arch", "Width", None, QtGui.QApplication.UnicodeUTF8)) - self.labelHeight.setText(QtGui.QApplication.translate("Arch", "Height", None, QtGui.QApplication.UnicodeUTF8)) - self.labelSlant.setText(QtGui.QApplication.translate("Arch", "Slant", None, QtGui.QApplication.UnicodeUTF8)) - self.labelLevel.setText(QtGui.QApplication.translate("Arch", "Level", None, QtGui.QApplication.UnicodeUTF8)) - self.labelRotation.setText(QtGui.QApplication.translate("Arch", "Rotation", None, QtGui.QApplication.UnicodeUTF8)) - self.labelOffset.setText(QtGui.QApplication.translate("Arch", "Offset", None, QtGui.QApplication.UnicodeUTF8)) + self.form.setWindowTitle(QtGui.QApplication.translate("Arch", "Precast options", None)) + self.labelDents.setText(QtGui.QApplication.translate("Arch", "Dents list", None)) + self.buttonAdd.setText(QtGui.QApplication.translate("Arch", "Add dent", None)) + self.buttonRemove.setText(QtGui.QApplication.translate("Arch", "Remove dent", None)) + self.labelLength.setText(QtGui.QApplication.translate("Arch", "Length", None)) + self.labelWidth.setText(QtGui.QApplication.translate("Arch", "Width", None)) + self.labelHeight.setText(QtGui.QApplication.translate("Arch", "Height", None)) + self.labelSlant.setText(QtGui.QApplication.translate("Arch", "Slant", None)) + self.labelLevel.setText(QtGui.QApplication.translate("Arch", "Level", None)) + self.labelRotation.setText(QtGui.QApplication.translate("Arch", "Rotation", None)) + self.labelOffset.setText(QtGui.QApplication.translate("Arch", "Offset", None)) def getValues(self): l = [] diff --git a/src/Mod/Arch/ArchRoof.py b/src/Mod/Arch/ArchRoof.py index 1b9a81168..b79825e17 100644 --- a/src/Mod/Arch/ArchRoof.py +++ b/src/Mod/Arch/ArchRoof.py @@ -775,15 +775,15 @@ class _RoofTaskPanel: return True def retranslateUi(self, TaskPanel): - TaskPanel.setWindowTitle(QtGui.QApplication.translate("Arch", "Roof", None, QtGui.QApplication.UnicodeUTF8)) - self.title.setText(QtGui.QApplication.translate("Arch", "Parameters of the profiles of the roof:\n* Angle : slope in degrees compared to the horizontal one.\n* Run : outdistance between the wall and the ridge sheathing.\n* Thickness : thickness of the side of roof.\n* Overhang : outdistance between the sewer and the wall.\n* Height : height of the ridge sheathing (calculated automatically)\n* IdRel : Relative Id for calculations automatic.\n---\nIf Angle = 0 and Run = 0 then profile is identical to the relative profile.\nIf Angle = 0 then angle is calculated so that the height is the same one as the relative profile.\nIf Run = 0 then Run is calculated so that the height is the same one as the relative profile.", None, QtGui.QApplication.UnicodeUTF8)) - self.tree.setHeaderLabels([QtGui.QApplication.translate("Arch", "Id", None, QtGui.QApplication.UnicodeUTF8), - QtGui.QApplication.translate("Arch", "Angle (deg)", None, QtGui.QApplication.UnicodeUTF8), - QtGui.QApplication.translate("Arch", "Run (mm)", None, QtGui.QApplication.UnicodeUTF8), - QtGui.QApplication.translate("Arch", "IdRel", None, QtGui.QApplication.UnicodeUTF8), - QtGui.QApplication.translate("Arch", "Thickness (mm)", None, QtGui.QApplication.UnicodeUTF8), - QtGui.QApplication.translate("Arch", "Overhang (mm)", None, QtGui.QApplication.UnicodeUTF8), - QtGui.QApplication.translate("Arch", "Height (mm)", None, QtGui.QApplication.UnicodeUTF8)]) + TaskPanel.setWindowTitle(QtGui.QApplication.translate("Arch", "Roof", None)) + self.title.setText(QtGui.QApplication.translate("Arch", "Parameters of the profiles of the roof:\n* Angle : slope in degrees compared to the horizontal one.\n* Run : outdistance between the wall and the ridge sheathing.\n* Thickness : thickness of the side of roof.\n* Overhang : outdistance between the sewer and the wall.\n* Height : height of the ridge sheathing (calculated automatically)\n* IdRel : Relative Id for calculations automatic.\n---\nIf Angle = 0 and Run = 0 then profile is identical to the relative profile.\nIf Angle = 0 then angle is calculated so that the height is the same one as the relative profile.\nIf Run = 0 then Run is calculated so that the height is the same one as the relative profile.", None)) + self.tree.setHeaderLabels([QtGui.QApplication.translate("Arch", "Id", None), + QtGui.QApplication.translate("Arch", "Angle (deg)", None), + QtGui.QApplication.translate("Arch", "Run (mm)", None), + QtGui.QApplication.translate("Arch", "IdRel", None), + QtGui.QApplication.translate("Arch", "Thickness (mm)", None), + QtGui.QApplication.translate("Arch", "Overhang (mm)", None), + QtGui.QApplication.translate("Arch", "Height (mm)", None)]) if FreeCAD.GuiUp: FreeCADGui.addCommand('Arch_Roof',_CommandRoof()) diff --git a/src/Mod/Arch/ArchSectionPlane.py b/src/Mod/Arch/ArchSectionPlane.py index 30310e096..4a92f8a1a 100644 --- a/src/Mod/Arch/ArchSectionPlane.py +++ b/src/Mod/Arch/ArchSectionPlane.py @@ -726,10 +726,10 @@ class SectionPlaneTaskPanel: return True def retranslateUi(self, TaskPanel): - TaskPanel.setWindowTitle(QtGui.QApplication.translate("Arch", "Objects", None, QtGui.QApplication.UnicodeUTF8)) - self.delButton.setText(QtGui.QApplication.translate("Arch", "Remove", None, QtGui.QApplication.UnicodeUTF8)) - self.addButton.setText(QtGui.QApplication.translate("Arch", "Add", None, QtGui.QApplication.UnicodeUTF8)) - self.title.setText(QtGui.QApplication.translate("Arch", "Objects seen by this section plane", None, QtGui.QApplication.UnicodeUTF8)) + TaskPanel.setWindowTitle(QtGui.QApplication.translate("Arch", "Objects", None)) + self.delButton.setText(QtGui.QApplication.translate("Arch", "Remove", None)) + self.addButton.setText(QtGui.QApplication.translate("Arch", "Add", None)) + self.title.setText(QtGui.QApplication.translate("Arch", "Objects seen by this section plane", None)) if FreeCAD.GuiUp: FreeCADGui.addCommand('Arch_SectionPlane',_CommandSectionPlane()) diff --git a/src/Mod/Arch/ArchSpace.py b/src/Mod/Arch/ArchSpace.py index a14c66833..433225d60 100644 --- a/src/Mod/Arch/ArchSpace.py +++ b/src/Mod/Arch/ArchSpace.py @@ -600,7 +600,7 @@ class SpaceTaskPanel(ArchComponent.ComponentTaskPanel): self.editButton.setObjectName("editButton") self.editButton.setIcon(QtGui.QIcon(":/icons/Draft_Edit.svg")) self.grid.addWidget(self.editButton, 4, 0, 1, 2) - self.editButton.setText(QtGui.QApplication.translate("Arch", "Set text position", None, QtGui.QApplication.UnicodeUTF8)) + self.editButton.setText(QtGui.QApplication.translate("Arch", "Set text position", None)) QtCore.QObject.connect(self.editButton, QtCore.SIGNAL("clicked()"), self.setTextPos) def setTextPos(self): diff --git a/src/Mod/Arch/ArchStructure.py b/src/Mod/Arch/ArchStructure.py index df3d47fc3..cbc73aca5 100644 --- a/src/Mod/Arch/ArchStructure.py +++ b/src/Mod/Arch/ArchStructure.py @@ -708,40 +708,40 @@ class StructureTaskPanel(ArchComponent.ComponentTaskPanel): def __init__(self,obj): ArchComponent.ComponentTaskPanel.__init__(self) self.optwid = QtGui.QWidget() - self.optwid.setWindowTitle(QtGui.QApplication.translate("Arch", "Node Tools", None, QtGui.QApplication.UnicodeUTF8)) + self.optwid.setWindowTitle(QtGui.QApplication.translate("Arch", "Node Tools", None)) lay = QtGui.QVBoxLayout(self.optwid) self.resetButton = QtGui.QPushButton(self.optwid) self.resetButton.setIcon(QtGui.QIcon(":/icons/edit-undo.svg")) - self.resetButton.setText(QtGui.QApplication.translate("Arch", "Reset nodes", None, QtGui.QApplication.UnicodeUTF8)) + self.resetButton.setText(QtGui.QApplication.translate("Arch", "Reset nodes", None)) lay.addWidget(self.resetButton) QtCore.QObject.connect(self.resetButton, QtCore.SIGNAL("clicked()"), self.resetNodes) self.editButton = QtGui.QPushButton(self.optwid) self.editButton.setIcon(QtGui.QIcon(":/icons/Draft_Edit.svg")) - self.editButton.setText(QtGui.QApplication.translate("Arch", "Edit nodes", None, QtGui.QApplication.UnicodeUTF8)) + self.editButton.setText(QtGui.QApplication.translate("Arch", "Edit nodes", None)) lay.addWidget(self.editButton) QtCore.QObject.connect(self.editButton, QtCore.SIGNAL("clicked()"), self.editNodes) self.extendButton = QtGui.QPushButton(self.optwid) self.extendButton.setIcon(QtGui.QIcon(":/icons/Snap_Perpendicular.svg")) - self.extendButton.setText(QtGui.QApplication.translate("Arch", "Extend nodes", None, QtGui.QApplication.UnicodeUTF8)) - self.extendButton.setToolTip(QtGui.QApplication.translate("Arch", "Extends the nodes of this element to reach the nodes of another element", None, QtGui.QApplication.UnicodeUTF8)) + self.extendButton.setText(QtGui.QApplication.translate("Arch", "Extend nodes", None)) + self.extendButton.setToolTip(QtGui.QApplication.translate("Arch", "Extends the nodes of this element to reach the nodes of another element", None)) lay.addWidget(self.extendButton) QtCore.QObject.connect(self.extendButton, QtCore.SIGNAL("clicked()"), self.extendNodes) self.connectButton = QtGui.QPushButton(self.optwid) self.connectButton.setIcon(QtGui.QIcon(":/icons/Snap_Intersection.svg")) - self.connectButton.setText(QtGui.QApplication.translate("Arch", "Connect nodes", None, QtGui.QApplication.UnicodeUTF8)) - self.connectButton.setToolTip(QtGui.QApplication.translate("Arch", "Connects nodes of this element with the nodes of another element", None, QtGui.QApplication.UnicodeUTF8)) + self.connectButton.setText(QtGui.QApplication.translate("Arch", "Connect nodes", None)) + self.connectButton.setToolTip(QtGui.QApplication.translate("Arch", "Connects nodes of this element with the nodes of another element", None)) lay.addWidget(self.connectButton) QtCore.QObject.connect(self.connectButton, QtCore.SIGNAL("clicked()"), self.connectNodes) self.toggleButton = QtGui.QPushButton(self.optwid) self.toggleButton.setIcon(QtGui.QIcon(":/icons/dagViewVisible.svg")) - self.toggleButton.setText(QtGui.QApplication.translate("Arch", "Toggle all nodes", None, QtGui.QApplication.UnicodeUTF8)) - self.toggleButton.setToolTip(QtGui.QApplication.translate("Arch", "Toggles all structural nodes of the document on/off", None, QtGui.QApplication.UnicodeUTF8)) + self.toggleButton.setText(QtGui.QApplication.translate("Arch", "Toggle all nodes", None)) + self.toggleButton.setToolTip(QtGui.QApplication.translate("Arch", "Toggles all structural nodes of the document on/off", None)) lay.addWidget(self.toggleButton) QtCore.QObject.connect(self.toggleButton, QtCore.SIGNAL("clicked()"), self.toggleNodes) diff --git a/src/Mod/Arch/ArchWindow.py b/src/Mod/Arch/ArchWindow.py index b6228b674..4fe32ac02 100644 --- a/src/Mod/Arch/ArchWindow.py +++ b/src/Mod/Arch/ArchWindow.py @@ -1352,28 +1352,28 @@ class _ArchWindowTaskPanel: return True def retranslateUi(self, TaskPanel): - TaskPanel.setWindowTitle(QtGui.QApplication.translate("Arch", "Components", None, QtGui.QApplication.UnicodeUTF8)) - self.delButton.setText(QtGui.QApplication.translate("Arch", "Remove", None, QtGui.QApplication.UnicodeUTF8)) - self.addButton.setText(QtGui.QApplication.translate("Arch", "Add", None, QtGui.QApplication.UnicodeUTF8)) - self.editButton.setText(QtGui.QApplication.translate("Arch", "Edit", None, QtGui.QApplication.UnicodeUTF8)) - self.createButton.setText(QtGui.QApplication.translate("Arch", "Create/update component", None, QtGui.QApplication.UnicodeUTF8)) - self.title.setText(QtGui.QApplication.translate("Arch", "Base 2D object", None, QtGui.QApplication.UnicodeUTF8)) - self.wiretree.setHeaderLabels([QtGui.QApplication.translate("Arch", "Wires", None, QtGui.QApplication.UnicodeUTF8)]) - self.comptree.setHeaderLabels([QtGui.QApplication.translate("Arch", "Components", None, QtGui.QApplication.UnicodeUTF8)]) - self.newtitle.setText(QtGui.QApplication.translate("Arch", "Create new component", None, QtGui.QApplication.UnicodeUTF8)) - self.new1.setText(QtGui.QApplication.translate("Arch", "Name", None, QtGui.QApplication.UnicodeUTF8)) - self.new2.setText(QtGui.QApplication.translate("Arch", "Type", None, QtGui.QApplication.UnicodeUTF8)) - self.new3.setText(QtGui.QApplication.translate("Arch", "Wires", None, QtGui.QApplication.UnicodeUTF8)) - self.new4.setText(QtGui.QApplication.translate("Arch", "Thickness", None, QtGui.QApplication.UnicodeUTF8)) - self.new5.setText(QtGui.QApplication.translate("Arch", "Z offset", None, QtGui.QApplication.UnicodeUTF8)) - self.new6.setText(QtGui.QApplication.translate("Arch", "Hinge", None, QtGui.QApplication.UnicodeUTF8)) - self.new7.setText(QtGui.QApplication.translate("Arch", "Opening mode", None, QtGui.QApplication.UnicodeUTF8)) - self.field6.setText(QtGui.QApplication.translate("Arch", "Get selected edge", None, QtGui.QApplication.UnicodeUTF8)) - self.field6.setToolTip(QtGui.QApplication.translate("Arch", "Press to retrieve the selected edge", None, QtGui.QApplication.UnicodeUTF8)) + TaskPanel.setWindowTitle(QtGui.QApplication.translate("Arch", "Components", None)) + self.delButton.setText(QtGui.QApplication.translate("Arch", "Remove", None)) + self.addButton.setText(QtGui.QApplication.translate("Arch", "Add", None)) + self.editButton.setText(QtGui.QApplication.translate("Arch", "Edit", None)) + self.createButton.setText(QtGui.QApplication.translate("Arch", "Create/update component", None)) + self.title.setText(QtGui.QApplication.translate("Arch", "Base 2D object", None)) + self.wiretree.setHeaderLabels([QtGui.QApplication.translate("Arch", "Wires", None)]) + self.comptree.setHeaderLabels([QtGui.QApplication.translate("Arch", "Components", None)]) + self.newtitle.setText(QtGui.QApplication.translate("Arch", "Create new component", None)) + self.new1.setText(QtGui.QApplication.translate("Arch", "Name", None)) + self.new2.setText(QtGui.QApplication.translate("Arch", "Type", None)) + self.new3.setText(QtGui.QApplication.translate("Arch", "Wires", None)) + self.new4.setText(QtGui.QApplication.translate("Arch", "Thickness", None)) + self.new5.setText(QtGui.QApplication.translate("Arch", "Z offset", None)) + self.new6.setText(QtGui.QApplication.translate("Arch", "Hinge", None)) + self.new7.setText(QtGui.QApplication.translate("Arch", "Opening mode", None)) + self.field6.setText(QtGui.QApplication.translate("Arch", "Get selected edge", None)) + self.field6.setToolTip(QtGui.QApplication.translate("Arch", "Press to retrieve the selected edge", None)) for i in range(len(WindowPartTypes)): - self.field2.setItemText(i, QtGui.QApplication.translate("Arch", WindowPartTypes[i], None, QtGui.QApplication.UnicodeUTF8)) + self.field2.setItemText(i, QtGui.QApplication.translate("Arch", WindowPartTypes[i], None)) for i in range(len(WindowOpeningModes)): - self.field7.setItemText(i, QtGui.QApplication.translate("Arch", WindowOpeningModes[i], None, QtGui.QApplication.UnicodeUTF8)) + self.field7.setItemText(i, QtGui.QApplication.translate("Arch", WindowOpeningModes[i], None)) if FreeCAD.GuiUp: FreeCADGui.addCommand('Arch_Window',_CommandWindow())