Translated toolbar title

This commit is contained in:
Jose Luis Cercos Pita 2012-11-04 16:08:24 +01:00
parent 7d11b0fb16
commit f94924ec8e
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" ToolTip = "The Plot module is used to edit/save output plots performed by other tools"
def Initialize(self): def Initialize(self):
# ToolBar from PyQt4 import QtCore, QtGui
list = ["Plot_SaveFig", "Plot_Axes", "Plot_Series", "Plot_Grid", "Plot_Legend", "Plot_Labels", "Plot_Positions"] cmdlst = ["Plot_SaveFig", "Plot_Axes", "Plot_Series", "Plot_Grid", "Plot_Legend", "Plot_Labels", "Plot_Positions"]
self.appendToolbar("Plot",list) self.appendToolbar(str(QtGui.QApplication.translate("plot", "Plot edition tools",
None,QtGui.QApplication.UnicodeUTF8)),
# Menu cmdlst)
list = ["Plot_SaveFig", "Plot_Axes", "Plot_Series", "Plot_Grid", "Plot_Legend", "Plot_Labels", "Plot_Positions"] self.appendMenu(str(QtGui.QApplication.translate("plot", "Plot",
self.appendMenu("Plot",list) None,QtGui.QApplication.UnicodeUTF8)),
cmdlst)
try: try:
import matplotlib import matplotlib

View File

@ -72,6 +72,16 @@
<source>Save plot as image file</source> <source>Save plot as image file</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message>
<location filename="InitGui.py" line="36"/>
<source>Plot edition tools</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="InitGui.py" line="39"/>
<source>Plot</source>
<translation type="unfinished"></translation>
</message>
</context> </context>
<context> <context>
<name>plot_axes</name> <name>plot_axes</name>
@ -129,7 +139,7 @@
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message> <message>
<location filename="InitGui.py" line="47"/> <location filename="InitGui.py" line="48"/>
<source>matplotlib not found, Plot module will be disabled</source> <source>matplotlib not found, Plot module will be disabled</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>

View File

@ -72,6 +72,16 @@
<source>Set labels and legend positions and sizes</source> <source>Set labels and legend positions and sizes</source>
<translation>Modifique la posición y tamaño de títulos y legenda</translation> <translation>Modifique la posición y tamaño de títulos y legenda</translation>
</message> </message>
<message>
<location filename="InitGui.py" line="36"/>
<source>Plot edition tools</source>
<translation>Herramientas de edicion de graficas</translation>
</message>
<message>
<location filename="InitGui.py" line="39"/>
<source>Plot</source>
<translation>Grafica</translation>
</message>
</context> </context>
<context> <context>
<name>plot_axes</name> <name>plot_axes</name>
@ -129,7 +139,7 @@
<translation>No se puede encontrar matplotlib, y por tanto no se puede cargar el modulo de graficado</translation> <translation>No se puede encontrar matplotlib, y por tanto no se puede cargar el modulo de graficado</translation>
</message> </message>
<message> <message>
<location filename="InitGui.py" line="47"/> <location filename="InitGui.py" line="48"/>
<source>matplotlib not found, Plot module will be disabled</source> <source>matplotlib not found, Plot module will be disabled</source>
<translation>No se puede encontrar matplotlib, el modulo de graficado sera desactivado</translation> <translation>No se puede encontrar matplotlib, el modulo de graficado sera desactivado</translation>
</message> </message>