Translated toolbar title

This commit is contained in:
Jose Luis Cercos Pita
2012-11-04 16:08:24 +01:00
parent 84040c4b28
commit 9ae16f315a
4 changed files with 30 additions and 9 deletions

View File

@@ -31,13 +31,14 @@ class PlotWorkbench ( Workbench ):
ToolTip = "The Plot module is used to edit/save output plots performed by other tools"
def Initialize(self):
# ToolBar
list = ["Plot_SaveFig", "Plot_Axes", "Plot_Series", "Plot_Grid", "Plot_Legend", "Plot_Labels", "Plot_Positions"]
self.appendToolbar("Plot",list)
# Menu
list = ["Plot_SaveFig", "Plot_Axes", "Plot_Series", "Plot_Grid", "Plot_Legend", "Plot_Labels", "Plot_Positions"]
self.appendMenu("Plot",list)
from PyQt4 import QtCore, QtGui
cmdlst = ["Plot_SaveFig", "Plot_Axes", "Plot_Series", "Plot_Grid", "Plot_Legend", "Plot_Labels", "Plot_Positions"]
self.appendToolbar(str(QtGui.QApplication.translate("plot", "Plot edition tools",
None,QtGui.QApplication.UnicodeUTF8)),
cmdlst)
self.appendMenu(str(QtGui.QApplication.translate("plot", "Plot",
None,QtGui.QApplication.UnicodeUTF8)),
cmdlst)
try:
import matplotlib