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 8c8fc944fc
commit 8a5d222ecf
11 changed files with 211 additions and 159 deletions

View File

@@ -43,6 +43,8 @@ try:
import matplotlib
Gui.addWorkbench(PlotWorkbench())
except ImportError:
msg = QtCore.QT_TRANSLATE_NOOP("plot", "matplotlib not found, Plot module will be disabled")
from PyQt4 import QtCore, QtGui
msg = QtGui.QApplication.translate("plot_console", "matplotlib not found, Plot module will be disabled",
None,QtGui.QApplication.UnicodeUTF8)
FreeCAD.Console.PrintMessage(msg + '\n')