Fixed translation stuff
This commit is contained in:
@@ -28,7 +28,7 @@ import FreeCADGui as Gui
|
||||
from PyQt4 import QtGui,QtCore
|
||||
# Module
|
||||
import Plot
|
||||
from plotUtils import Paths, Translator
|
||||
from plotUtils import Paths
|
||||
|
||||
class TaskPanel:
|
||||
def __init__(self):
|
||||
@@ -127,19 +127,19 @@ class TaskPanel:
|
||||
def retranslateUi(self):
|
||||
""" Set user interface locale strings.
|
||||
"""
|
||||
self.form.setWindowTitle(Translator.translate("Configure axes"))
|
||||
self.form.findChild(QtGui.QLabel, "axesLabel").setText(Translator.translate("Active axes"))
|
||||
self.form.all.setText(Translator.translate("Apply to all axes"))
|
||||
self.form.findChild(QtGui.QLabel, "dimLabel").setText(Translator.translate("Dimensions"))
|
||||
self.form.findChild(QtGui.QLabel, "xPosLabel").setText(Translator.translate("X axis position"))
|
||||
self.form.findChild(QtGui.QLabel, "yPosLabel").setText(Translator.translate("Y axis position"))
|
||||
self.form.findChild(QtGui.QLabel, "scalesLabel").setText(Translator.translate("Scales"))
|
||||
self.form.xAuto.setText(Translator.translate("X auto"))
|
||||
self.form.yAuto.setText(Translator.translate("Y auto"))
|
||||
self.form.findChild(QtGui.QCheckBox, "allAxes").setText(Translator.translate("Apply to all axes"))
|
||||
self.form.findChild(QtGui.QLabel, "dimLabel").setText(Translator.translate("Dimensions"))
|
||||
self.form.findChild(QtGui.QLabel, "xPosLabel").setText(Translator.translate("X axis position"))
|
||||
self.form.findChild(QtGui.QLabel, "yPosLabel").setText(Translator.translate("Y axis position"))
|
||||
self.form.setWindowTitle(str(QtGui.QApplication.translate("plot_axes", "Configure axes").toAscii()))
|
||||
self.form.findChild(QtGui.QLabel, "axesLabel").setText(str(QtGui.QApplication.translate("plot_axes", "Active axes").toAscii()))
|
||||
self.form.all.setText(str(QtGui.QApplication.translate("plot_axes", "Apply to all axes").toAscii()))
|
||||
self.form.findChild(QtGui.QLabel, "dimLabel").setText(str(QtGui.QApplication.translate("plot_axes", "Dimensions").toAscii()))
|
||||
self.form.findChild(QtGui.QLabel, "xPosLabel").setText(str(QtGui.QApplication.translate("plot_axes", "X axis position").toAscii()))
|
||||
self.form.findChild(QtGui.QLabel, "yPosLabel").setText(str(QtGui.QApplication.translate("plot_axes", "Y axis position").toAscii()))
|
||||
self.form.findChild(QtGui.QLabel, "scalesLabel").setText(str(QtGui.QApplication.translate("plot_axes", "Scales").toAscii()))
|
||||
self.form.xAuto.setText(str(QtGui.QApplication.translate("plot_axes", "X auto").toAscii()))
|
||||
self.form.yAuto.setText(str(QtGui.QApplication.translate("plot_axes", "Y auto").toAscii()))
|
||||
self.form.findChild(QtGui.QCheckBox, "allAxes").setText(str(QtGui.QApplication.translate("plot_axes", "Apply to all axes").toAscii()))
|
||||
self.form.findChild(QtGui.QLabel, "dimLabel").setText(str(QtGui.QApplication.translate("plot_axes", "Dimensions").toAscii()))
|
||||
self.form.findChild(QtGui.QLabel, "xPosLabel").setText(str(QtGui.QApplication.translate("plot_axes", "X axis position").toAscii()))
|
||||
self.form.findChild(QtGui.QLabel, "yPosLabel").setText(str(QtGui.QApplication.translate("plot_axes", "Y axis position").toAscii()))
|
||||
|
||||
def onAxesId(self, value):
|
||||
""" Executed when axes index is modified. """
|
||||
@@ -178,7 +178,7 @@ class TaskPanel:
|
||||
return
|
||||
# Don't remove first axes
|
||||
if not self.form.axId.value():
|
||||
msg = Translator.translate("Axes 0 can't be deleted")
|
||||
msg = str(QtGui.QApplication.translate("plot_axes", "Axes 0 can not be deleted".toAscii()))
|
||||
App.Console.PrintError(msg+"\n")
|
||||
return
|
||||
# Remove axes
|
||||
|
||||
Reference in New Issue
Block a user