Improved translation stuff in order to support more languages

This commit is contained in:
Jose Luis Cercos Pita
2012-11-03 16:03:26 +01:00
parent 72fb3fdb36
commit 7d11b0fb16
11 changed files with 211 additions and 159 deletions

View File

@@ -35,7 +35,8 @@ try:
from matplotlib.backends.backend_qt4agg import NavigationToolbar2QTAgg as NavigationToolbar
from matplotlib.figure import Figure
except ImportError:
msg = QtCore.QT_TRANSLATE_NOOP("plot", "matplotlib not found, so Plot module can not be loaded")
msg = QtGui.QApplication.translate("plot_console", "matplotlib not found, so Plot module can not be loaded",
None,QtGui.QApplication.UnicodeUTF8)
FreeCAD.Console.PrintMessage(msg + '\n')
raise ImportError("matplotlib not installed")