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

@@ -24,9 +24,6 @@
# FreeCAD
import FreeCAD
# Plot module
from plotUtils import Paths, Translator
# PyQt4
from PyQt4 import QtCore, QtGui
@@ -38,8 +35,8 @@ try:
from matplotlib.backends.backend_qt4agg import NavigationToolbar2QTAgg as NavigationToolbar
from matplotlib.figure import Figure
except ImportError:
msg = Translator.translate("matplotlib not installed, so Plot module is disabled.\n")
FreeCAD.Console.PrintError(msg)
msg = QtCore.QT_TRANSLATE_NOOP("plot", "matplotlib not found, so Plot module can not be loaded")
FreeCAD.Console.PrintMessage(msg + '\n')
raise ImportError("matplotlib not installed")
def getMainWindow():