Draft: trying different method to solve encoding problem

This commit is contained in:
Yorik van Havre
2017-06-26 23:51:45 -03:00
parent ed56ce5236
commit 0f844c421c
2 changed files with 2 additions and 2 deletions

View File

@@ -647,7 +647,7 @@ class DraftToolBar:
self.autoGroupButton = self._pushbutton("autoGroup",self.bottomtray,icon="Draft_AutoGroup_off",hide=False,width=120)
self.autoGroupButton.setText("None")
self.wplabel.setToolTip(translate("draft", "Current working plane:")+self.wplabel.text())
self.wplabel.setToolTip(translate("draft", "Current working plane:",utf8_decode=True)+self.wplabel.text())
self.constrButton.setToolTip(translate("draft", "Toggle construction mode"))
self.colorButton.setToolTip(translate("draft", "Curreont line color"))
self.facecolorButton.setToolTip(translate("draft", "Current face color"))

View File

@@ -435,7 +435,7 @@ class SelectPlane(DraftTool):
elif type(arg).__name__ == 'Vector':
plv = 'd('+str(arg.x)+','+str(arg.y)+','+str(arg.z)+')'
self.ui.wplabel.setText(plv+suffix)
self.ui.wplabel.setToolTip(translate("draft", "Current working plane:").decode("utf8")+self.ui.wplabel.text())
self.ui.wplabel.setToolTip(translate("draft", "Current working plane:",utf8_decode=True)+self.ui.wplabel.text())
FreeCADGui.doCommandGui("FreeCADGui.Snapper.setGrid()")
#---------------------------------------------------------------------------