Fixed translation stuff

This commit is contained in:
Jose Luis Cercos Pita
2012-11-02 12:20:30 +01:00
parent bdc9fea5e2
commit c84418bc91
23 changed files with 607 additions and 94 deletions

View File

@@ -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):
@@ -106,11 +106,11 @@ class TaskPanel:
def retranslateUi(self):
""" Set user interface locale strings.
"""
self.form.setWindowTitle(Translator.translate("Set labels"))
self.form.findChild(QtGui.QLabel, "axesLabel").setText(Translator.translate("Active axes"))
self.form.findChild(QtGui.QLabel, "titleLabel").setText(Translator.translate("Title"))
self.form.findChild(QtGui.QLabel, "xLabel").setText(Translator.translate("X label"))
self.form.findChild(QtGui.QLabel, "yLabel").setText(Translator.translate("Y label"))
self.form.setWindowTitle(str(QtGui.QApplication.translate("plot_labels", "Set labels").toAscii()))
self.form.findChild(QtGui.QLabel, "axesLabel").setText(str(QtGui.QApplication.translate("plot_labels", "Active axes").toAscii()))
self.form.findChild(QtGui.QLabel, "titleLabel").setText(str(QtGui.QApplication.translate("plot_labels", "Title").toAscii()))
self.form.findChild(QtGui.QLabel, "xLabel").setText(str(QtGui.QApplication.translate("plot_labels", "X label").toAscii()))
self.form.findChild(QtGui.QLabel, "yLabel").setText(str(QtGui.QApplication.translate("plot_labels", "Y label").toAscii()))
def onAxesId(self, value):
""" Executed when axes index is modified. """