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 d147c5ece8
commit 6407f7a83d
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')

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")

View File

@ -45,8 +45,8 @@ class Save:
def GetResources(self):
from plotUtils import Paths
IconPath = Paths.iconsPath() + "/Save.svg"
MenuText = str(QtGui.QApplication.translate("plot", "Save plot").toAscii())
ToolTip = str(QtGui.QApplication.translate("plot", "Save plot as image file").toAscii())
MenuText = QtCore.QT_TRANSLATE_NOOP("plot", "Save plot")
ToolTip = QtCore.QT_TRANSLATE_NOOP("plot", "Save plot as image file")
return {'Pixmap' : IconPath, 'MenuText': MenuText, 'ToolTip': ToolTip}
class Axes:
@ -57,8 +57,8 @@ class Axes:
def GetResources(self):
from plotUtils import Paths
IconPath = Paths.iconsPath() + "/Axes.svg"
MenuText = str(QtGui.QApplication.translate("plot", "Configure axes").toAscii())
ToolTip = str(QtGui.QApplication.translate("plot", "Configure axes parameters").toAscii())
MenuText = QtCore.QT_TRANSLATE_NOOP("plot", "Configure axes")
ToolTip = QtCore.QT_TRANSLATE_NOOP("plot", "Configure axes parameters")
return {'Pixmap' : IconPath, 'MenuText': MenuText, 'ToolTip': ToolTip}
class Series:
@ -69,8 +69,8 @@ class Series:
def GetResources(self):
from plotUtils import Paths
IconPath = Paths.iconsPath() + "/Series.svg"
MenuText = str(QtGui.QApplication.translate("plot", "Configure series").toAscii())
ToolTip = str(QtGui.QApplication.translate("plot", "Configure series drawing style and label").toAscii())
MenuText = QtCore.QT_TRANSLATE_NOOP("plot", "Configure series")
ToolTip = QtCore.QT_TRANSLATE_NOOP("plot", "Configure series drawing style and label")
return {'Pixmap' : IconPath, 'MenuText': MenuText, 'ToolTip': ToolTip}
class Grid:
@ -78,7 +78,8 @@ class Grid:
import Plot
plt = Plot.getPlot()
if not plt:
msg = str(QtGui.QApplication.translate("plot", "Grid must be activated on top of a plot document").toAscii())
msg = QtGui.QApplication.translate("plot_console", "Grid must be activated on top of a plot document",
None,QtGui.QApplication.UnicodeUTF8)
FreeCAD.Console.PrintError(msg+"\n")
return
flag = plt.isGrid()
@ -87,8 +88,8 @@ class Grid:
def GetResources(self):
from plotUtils import Paths
IconPath = Paths.iconsPath() + "/Grid.svg"
MenuText = str(QtGui.QApplication.translate("plot", "Show/Hide grid").toAscii())
ToolTip = str(QtGui.QApplication.translate("plot", "Show/Hide grid on selected plot").toAscii())
MenuText = QtCore.QT_TRANSLATE_NOOP("plot", "Show/Hide grid")
ToolTip = QtCore.QT_TRANSLATE_NOOP("plot", "Show/Hide grid on selected plot")
return {'Pixmap' : IconPath, 'MenuText': MenuText, 'ToolTip': ToolTip}
class Legend:
@ -96,7 +97,8 @@ class Legend:
import Plot
plt = Plot.getPlot()
if not plt:
msg = str(QtGui.QApplication.translate("plot", "Legend must be activated on top of a plot document").toAscii())
msg = QtGui.QApplication.translate("plot_console", "Legend must be activated on top of a plot document",
None,QtGui.QApplication.UnicodeUTF8)
FreeCAD.Console.PrintError(msg+"\n")
return
flag = plt.isLegend()
@ -105,8 +107,8 @@ class Legend:
def GetResources(self):
from plotUtils import Paths
IconPath = Paths.iconsPath() + "/Legend.svg"
MenuText = str(QtGui.QApplication.translate("plot", "Show/Hide legend").toAscii())
ToolTip = str(QtGui.QApplication.translate("plot", "Show/Hide legend on selected plot").toAscii())
MenuText = QtCore.QT_TRANSLATE_NOOP("plot", "Show/Hide legend")
ToolTip = QtCore.QT_TRANSLATE_NOOP("plot", "Show/Hide legend on selected plot")
return {'Pixmap' : IconPath, 'MenuText': MenuText, 'ToolTip': ToolTip}
class Labels:
@ -117,8 +119,8 @@ class Labels:
def GetResources(self):
from plotUtils import Paths
IconPath = Paths.iconsPath() + "/Labels.svg"
MenuText = str(QtGui.QApplication.translate("plot", "Set labels").toAscii())
ToolTip = str(QtGui.QApplication.translate("plot", "Set title and axes labels").toAscii())
MenuText = QtCore.QT_TRANSLATE_NOOP("plot", "Set labels")
ToolTip = QtCore.QT_TRANSLATE_NOOP("plot", "Set title and axes labels")
return {'Pixmap' : IconPath, 'MenuText': MenuText, 'ToolTip': ToolTip}
class Positions:
@ -129,8 +131,8 @@ class Positions:
def GetResources(self):
from plotUtils import Paths
IconPath = Paths.iconsPath() + "/Positions.svg"
MenuText = str(QtGui.QApplication.translate("plot", "Set positions and sizes").toAscii())
ToolTip = str(QtGui.QApplication.translate("plot", "Set labels and legend positions and sizes").toAscii())
MenuText = QtCore.QT_TRANSLATE_NOOP("plot", "Set positions and sizes")
ToolTip = QtCore.QT_TRANSLATE_NOOP("plot", "Set labels and legend positions and sizes")
return {'Pixmap' : IconPath, 'MenuText': MenuText, 'ToolTip': ToolTip}
FreeCADGui.addCommand('Plot_SaveFig', Save())

View File

@ -127,19 +127,32 @@ class TaskPanel:
def retranslateUi(self):
""" Set user interface locale strings.
"""
self.form.setWindowTitle(str(QtGui.QApplication.translate("plot_axes", "Configure axes").toAscii()))
self.form.findChild(QtGui.QLabel, "axesLabel").setText(str(QtGui.QApplication.translate("plot_axes", "Active axes").toAscii()))
self.form.all.setText(str(QtGui.QApplication.translate("plot_axes", "Apply to all axes").toAscii()))
self.form.findChild(QtGui.QLabel, "dimLabel").setText(str(QtGui.QApplication.translate("plot_axes", "Dimensions").toAscii()))
self.form.findChild(QtGui.QLabel, "xPosLabel").setText(str(QtGui.QApplication.translate("plot_axes", "X axis position").toAscii()))
self.form.findChild(QtGui.QLabel, "yPosLabel").setText(str(QtGui.QApplication.translate("plot_axes", "Y axis position").toAscii()))
self.form.findChild(QtGui.QLabel, "scalesLabel").setText(str(QtGui.QApplication.translate("plot_axes", "Scales").toAscii()))
self.form.xAuto.setText(str(QtGui.QApplication.translate("plot_axes", "X auto").toAscii()))
self.form.yAuto.setText(str(QtGui.QApplication.translate("plot_axes", "Y auto").toAscii()))
self.form.findChild(QtGui.QCheckBox, "allAxes").setText(str(QtGui.QApplication.translate("plot_axes", "Apply to all axes").toAscii()))
self.form.findChild(QtGui.QLabel, "dimLabel").setText(str(QtGui.QApplication.translate("plot_axes", "Dimensions").toAscii()))
self.form.findChild(QtGui.QLabel, "xPosLabel").setText(str(QtGui.QApplication.translate("plot_axes", "X axis position").toAscii()))
self.form.findChild(QtGui.QLabel, "yPosLabel").setText(str(QtGui.QApplication.translate("plot_axes", "Y axis position").toAscii()))
self.form.setWindowTitle(QtGui.QApplication.translate("plot_axes", "Configure axes",
None,QtGui.QApplication.UnicodeUTF8))
self.form.findChild(QtGui.QLabel, "axesLabel").setText(QtGui.QApplication.translate("plot_axes", "Active axes",
None,QtGui.QApplication.UnicodeUTF8))
self.form.all.setText(QtGui.QApplication.translate("plot_axes", "Apply to all axes",
None,QtGui.QApplication.UnicodeUTF8))
self.form.findChild(QtGui.QLabel, "dimLabel").setText(QtGui.QApplication.translate("plot_axes", "Dimensions",
None,QtGui.QApplication.UnicodeUTF8))
self.form.findChild(QtGui.QLabel, "xPosLabel").setText(QtGui.QApplication.translate("plot_axes", "X axis position",
None,QtGui.QApplication.UnicodeUTF8))
self.form.findChild(QtGui.QLabel, "yPosLabel").setText(QtGui.QApplication.translate("plot_axes", "Y axis position",
None,QtGui.QApplication.UnicodeUTF8))
self.form.findChild(QtGui.QLabel, "scalesLabel").setText(QtGui.QApplication.translate("plot_axes", "Scales",
None,QtGui.QApplication.UnicodeUTF8))
self.form.xAuto.setText(QtGui.QApplication.translate("plot_axes", "X auto",
None,QtGui.QApplication.UnicodeUTF8))
self.form.yAuto.setText(QtGui.QApplication.translate("plot_axes", "Y auto",
None,QtGui.QApplication.UnicodeUTF8))
self.form.findChild(QtGui.QCheckBox, "allAxes").setText(QtGui.QApplication.translate("plot_axes", "Apply to all axes",
None,QtGui.QApplication.UnicodeUTF8))
self.form.findChild(QtGui.QLabel, "dimLabel").setText(QtGui.QApplication.translate("plot_axes", "Dimensions",
None,QtGui.QApplication.UnicodeUTF8))
self.form.findChild(QtGui.QLabel, "xPosLabel").setText(QtGui.QApplication.translate("plot_axes", "X axis position",
None,QtGui.QApplication.UnicodeUTF8))
self.form.findChild(QtGui.QLabel, "yPosLabel").setText(QtGui.QApplication.translate("plot_axes", "Y axis position",
None,QtGui.QApplication.UnicodeUTF8))
def onAxesId(self, value):
""" Executed when axes index is modified. """
@ -178,7 +191,8 @@ class TaskPanel:
return
# Don't remove first axes
if not self.form.axId.value():
msg = str(QtGui.QApplication.translate("plot_axes", "Axes 0 can not be deleted".toAscii()))
msg = QtGui.QApplication.translate("plot_console", "Axes 0 can not be deleted",
None,QtGui.QApplication.UnicodeUTF8)
App.Console.PrintError(msg+"\n")
return
# Remove axes

View File

@ -106,11 +106,16 @@ class TaskPanel:
def retranslateUi(self):
""" Set user interface locale strings.
"""
self.form.setWindowTitle(str(QtGui.QApplication.translate("plot_labels", "Set labels").toAscii()))
self.form.findChild(QtGui.QLabel, "axesLabel").setText(str(QtGui.QApplication.translate("plot_labels", "Active axes").toAscii()))
self.form.findChild(QtGui.QLabel, "titleLabel").setText(str(QtGui.QApplication.translate("plot_labels", "Title").toAscii()))
self.form.findChild(QtGui.QLabel, "xLabel").setText(str(QtGui.QApplication.translate("plot_labels", "X label").toAscii()))
self.form.findChild(QtGui.QLabel, "yLabel").setText(str(QtGui.QApplication.translate("plot_labels", "Y label").toAscii()))
self.form.setWindowTitle(QtGui.QApplication.translate("plot_labels", "Set labels",
None,QtGui.QApplication.UnicodeUTF8))
self.form.findChild(QtGui.QLabel, "axesLabel").setText(QtGui.QApplication.translate("plot_labels", "Active axes",
None,QtGui.QApplication.UnicodeUTF8))
self.form.findChild(QtGui.QLabel, "titleLabel").setText(QtGui.QApplication.translate("plot_labels", "Title",
None,QtGui.QApplication.UnicodeUTF8))
self.form.findChild(QtGui.QLabel, "xLabel").setText(QtGui.QApplication.translate("plot_labels", "X label",
None,QtGui.QApplication.UnicodeUTF8))
self.form.findChild(QtGui.QLabel, "yLabel").setText(QtGui.QApplication.translate("plot_labels", "Y label",
None,QtGui.QApplication.UnicodeUTF8))
def onAxesId(self, value):
""" Executed when axes index is modified. """

View File

@ -97,9 +97,12 @@ class TaskPanel:
def retranslateUi(self):
""" Set user interface locale strings.
"""
self.form.setWindowTitle(str(QtGui.QApplication.translate("plot_positions", "Set positions and sizes").toAscii()))
self.form.findChild(QtGui.QLabel, "posLabel").setText(str(QtGui.QApplication.translate("plot_positions", "Position").toAscii()))
self.form.findChild(QtGui.QLabel, "sizeLabel").setText(str(QtGui.QApplication.translate("plot_positions", "Size").toAscii()))
self.form.setWindowTitle(QtGui.QApplication.translate("plot_positions", "Set positions and sizes",
None,QtGui.QApplication.UnicodeUTF8))
self.form.findChild(QtGui.QLabel, "posLabel").setText(QtGui.QApplication.translate("plot_positions", "Position",
None,QtGui.QApplication.UnicodeUTF8))
self.form.findChild(QtGui.QLabel, "sizeLabel").setText(QtGui.QApplication.translate("plot_positions", "Size",
None,QtGui.QApplication.UnicodeUTF8))
def onItem(self, row):
""" Executed when selected item is modified. """

View File

@ -38,7 +38,8 @@ class TaskPanel:
def accept(self):
plt = Plot.getPlot()
if not plt:
msg = str(QtGui.QApplication.translate("plot_save", "Plot document must be selected in order to save it").toAscii())
msg = QtGui.QApplication.translate("plot_console", "Plot document must be selected in order to save it",
None,QtGui.QApplication.UnicodeUTF8)
App.Console.PrintError(msg+"\n")
return False
path = unicode(self.form.path.text())
@ -102,9 +103,12 @@ class TaskPanel:
def retranslateUi(self):
""" Set user interface locale strings.
"""
self.form.setWindowTitle(str(QtGui.QApplication.translate("plot_save", "Save figure").toAscii()))
self.form.findChild(QtGui.QLabel, "sizeLabel").setText(str(QtGui.QApplication.translate("plot_save", "Inches").toAscii()))
self.form.findChild(QtGui.QLabel, "dpiLabel").setText(str(QtGui.QApplication.translate("plot_save", "Dots per Inch").toAscii()))
self.form.setWindowTitle(QtGui.QApplication.translate("plot_save", "Save figure",
None,QtGui.QApplication.UnicodeUTF8))
self.form.findChild(QtGui.QLabel, "sizeLabel").setText(QtGui.QApplication.translate("plot_save", "Inches",
None,QtGui.QApplication.UnicodeUTF8))
self.form.findChild(QtGui.QLabel, "dpiLabel").setText(QtGui.QApplication.translate("plot_save", "Dots per Inch",
None,QtGui.QApplication.UnicodeUTF8))
def updateUI(self):
""" Setup UI controls values if possible """

View File

@ -110,11 +110,16 @@ class TaskPanel:
def retranslateUi(self):
""" Set user interface locale strings.
"""
self.form.setWindowTitle(str(QtGui.QApplication.translate("plot_series", "Configure series").toAscii()))
self.form.isLabel.setText(str(QtGui.QApplication.translate("plot_series", "No label").toAscii()))
self.form.remove.setText(str(QtGui.QApplication.translate("plot_series", "Remove serie").toAscii()))
self.form.findChild(QtGui.QLabel, "styleLabel").setText(str(QtGui.QApplication.translate("plot_series", "Line style").toAscii()))
self.form.findChild(QtGui.QLabel, "markerLabel").setText(str(QtGui.QApplication.translate("plot_series", "Marker").toAscii()))
self.form.setWindowTitle(QtGui.QApplication.translate("plot_series", "Configure series",
None,QtGui.QApplication.UnicodeUTF8))
self.form.isLabel.setText(QtGui.QApplication.translate("plot_series", "No label",
None,QtGui.QApplication.UnicodeUTF8))
self.form.remove.setText(QtGui.QApplication.translate("plot_series", "Remove serie",
None,QtGui.QApplication.UnicodeUTF8))
self.form.findChild(QtGui.QLabel, "styleLabel").setText(QtGui.QApplication.translate("plot_series", "Line style",
None,QtGui.QApplication.UnicodeUTF8))
self.form.findChild(QtGui.QLabel, "markerLabel").setText(QtGui.QApplication.translate("plot_series", "Marker",
None,QtGui.QApplication.UnicodeUTF8))
def fillStyles(self):
""" Fill style combo boxes. """

View File

@ -28,70 +28,50 @@
<translation type="unfinished"></translation>
</message>
<message>
<location filename="PlotGui.py" line="81"/>
<source>Grid must be activated on top of a plot document</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="PlotGui.py" line="90"/>
<location filename="PlotGui.py" line="91"/>
<source>Show/Hide grid</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="PlotGui.py" line="91"/>
<location filename="PlotGui.py" line="92"/>
<source>Show/Hide grid on selected plot</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="PlotGui.py" line="99"/>
<source>Legend must be activated on top of a plot document</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="PlotGui.py" line="108"/>
<location filename="PlotGui.py" line="110"/>
<source>Show/Hide legend</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="PlotGui.py" line="109"/>
<location filename="PlotGui.py" line="111"/>
<source>Show/Hide legend on selected plot</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="PlotGui.py" line="120"/>
<location filename="PlotGui.py" line="122"/>
<source>Set labels</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="PlotGui.py" line="121"/>
<location filename="PlotGui.py" line="123"/>
<source>Set title and axes labels</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="PlotGui.py" line="132"/>
<location filename="PlotGui.py" line="134"/>
<source>Set positions and sizes</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="PlotGui.py" line="133"/>
<location filename="PlotGui.py" line="135"/>
<source>Set labels and legend positions and sizes</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="InitGui.py" line="46"/>
<source>matplotlib not found, Plot module will be disabled</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="PlotGui.py" line="49"/>
<source>Save plot as image file</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="Plot.py" line="38"/>
<source>matplotlib not found, so Plot module can not be loaded</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>plot_axes</name>
@ -101,46 +81,79 @@
<translation type="unfinished"></translation>
</message>
<message>
<location filename="TaskPanel.py" line="131"/>
<location filename="TaskPanel.py" line="132"/>
<source>Active axes</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="TaskPanel.py" line="139"/>
<location filename="TaskPanel.py" line="148"/>
<source>Apply to all axes</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="TaskPanel.py" line="140"/>
<location filename="TaskPanel.py" line="150"/>
<source>Dimensions</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="TaskPanel.py" line="141"/>
<location filename="TaskPanel.py" line="152"/>
<source>X axis position</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="TaskPanel.py" line="142"/>
<location filename="TaskPanel.py" line="154"/>
<source>Y axis position</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="TaskPanel.py" line="136"/>
<location filename="TaskPanel.py" line="142"/>
<source>Scales</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="TaskPanel.py" line="137"/>
<location filename="TaskPanel.py" line="144"/>
<source>X auto</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="TaskPanel.py" line="138"/>
<location filename="TaskPanel.py" line="146"/>
<source>Y auto</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>plot_console</name>
<message>
<location filename="Plot.py" line="38"/>
<source>matplotlib not found, so Plot module can not be loaded</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="InitGui.py" line="47"/>
<source>matplotlib not found, Plot module will be disabled</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="TaskPanel.py" line="41"/>
<source>Plot document must be selected in order to save it</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="TaskPanel.py" line="194"/>
<source>Axes 0 can not be deleted</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="PlotGui.py" line="81"/>
<source>Grid must be activated on top of a plot document</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="PlotGui.py" line="100"/>
<source>Legend must be activated on top of a plot document</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>plot_labels</name>
<message>
@ -149,22 +162,22 @@
<translation type="unfinished"></translation>
</message>
<message>
<location filename="TaskPanel.py" line="110"/>
<location filename="TaskPanel.py" line="111"/>
<source>Active axes</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="TaskPanel.py" line="111"/>
<location filename="TaskPanel.py" line="113"/>
<source>Title</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="TaskPanel.py" line="112"/>
<location filename="TaskPanel.py" line="115"/>
<source>X label</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="TaskPanel.py" line="113"/>
<location filename="TaskPanel.py" line="117"/>
<source>Y label</source>
<translation type="unfinished"></translation>
</message>
@ -177,12 +190,12 @@
<translation type="unfinished"></translation>
</message>
<message>
<location filename="TaskPanel.py" line="101"/>
<location filename="TaskPanel.py" line="102"/>
<source>Position</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="TaskPanel.py" line="102"/>
<location filename="TaskPanel.py" line="104"/>
<source>Size</source>
<translation type="unfinished"></translation>
</message>
@ -190,45 +203,40 @@
<context>
<name>plot_save</name>
<message>
<location filename="TaskPanel.py" line="105"/>
<location filename="TaskPanel.py" line="106"/>
<source>Save figure</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="TaskPanel.py" line="106"/>
<location filename="TaskPanel.py" line="108"/>
<source>Inches</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="TaskPanel.py" line="107"/>
<location filename="TaskPanel.py" line="110"/>
<source>Dots per Inch</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="TaskPanel.py" line="41"/>
<source>Plot document must be selected in order to save it</source>
<translation type="unfinished"></translation>
</message>
</context>
<context>
<name>plot_series</name>
<message>
<location filename="TaskPanel.py" line="114"/>
<location filename="TaskPanel.py" line="115"/>
<source>No label</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="TaskPanel.py" line="115"/>
<location filename="TaskPanel.py" line="117"/>
<source>Remove serie</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="TaskPanel.py" line="116"/>
<location filename="TaskPanel.py" line="119"/>
<source>Line style</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="TaskPanel.py" line="117"/>
<location filename="TaskPanel.py" line="121"/>
<source>Marker</source>
<translation type="unfinished"></translation>
</message>

View File

@ -2,11 +2,6 @@
<!DOCTYPE TS><TS version="2.0">
<context>
<name>plot</name>
<message>
<location filename="InitGui.py" line="46"/>
<source>matplotlib not found, Plot module will be disabled</source>
<translation>No se puede encontrar matplotlib, el modulo de graficado sera desactivado</translation>
</message>
<message>
<location filename="PlotGui.py" line="48"/>
<source>Save plot</source>
@ -38,60 +33,45 @@
<translation>Establezca el título y el estilo de las curvas trazadas</translation>
</message>
<message>
<location filename="PlotGui.py" line="81"/>
<source>Grid must be activated on top of a plot document</source>
<translation>Para activar la malla se requiere un documento de grafica seleccionado</translation>
</message>
<message>
<location filename="PlotGui.py" line="90"/>
<location filename="PlotGui.py" line="91"/>
<source>Show/Hide grid</source>
<translation>Mostrar/Ocultar la malla</translation>
</message>
<message>
<location filename="PlotGui.py" line="91"/>
<location filename="PlotGui.py" line="92"/>
<source>Show/Hide grid on selected plot</source>
<translation>Muestre/Oculte la malla del gráfico seleccionado</translation>
</message>
<message>
<location filename="PlotGui.py" line="99"/>
<source>Legend must be activated on top of a plot document</source>
<translation>Para activar la legenda se requiere un documento de grafica seleccionado</translation>
</message>
<message>
<location filename="PlotGui.py" line="108"/>
<location filename="PlotGui.py" line="110"/>
<source>Show/Hide legend</source>
<translation>Mostrar/Ocultar la legenda</translation>
</message>
<message>
<location filename="PlotGui.py" line="109"/>
<location filename="PlotGui.py" line="111"/>
<source>Show/Hide legend on selected plot</source>
<translation>Muestre/Oculte la legenda del gráfico seleccionado</translation>
</message>
<message>
<location filename="PlotGui.py" line="120"/>
<location filename="PlotGui.py" line="122"/>
<source>Set labels</source>
<translation>Establecer títulos</translation>
</message>
<message>
<location filename="PlotGui.py" line="121"/>
<location filename="PlotGui.py" line="123"/>
<source>Set title and axes labels</source>
<translation>Establezca los tñitulos de ejes y series de datos</translation>
</message>
<message>
<location filename="PlotGui.py" line="132"/>
<location filename="PlotGui.py" line="134"/>
<source>Set positions and sizes</source>
<translation>Modificar posiciones y tamaños</translation>
</message>
<message>
<location filename="PlotGui.py" line="133"/>
<location filename="PlotGui.py" line="135"/>
<source>Set labels and legend positions and sizes</source>
<translation>Modifique la posición y tamaño de títulos y legenda</translation>
</message>
<message>
<location filename="Plot.py" line="38"/>
<source>matplotlib not found, so Plot module can not be loaded</source>
<translation>No se puede encontrar matplotlib, y por tanto no se puede cargar el modulo de graficado</translation>
</message>
</context>
<context>
<name>plot_axes</name>
@ -101,44 +81,77 @@
<translation>Configuración de los ejes</translation>
</message>
<message>
<location filename="TaskPanel.py" line="131"/>
<location filename="TaskPanel.py" line="132"/>
<source>Active axes</source>
<translation>Ejes activos</translation>
</message>
<message>
<location filename="TaskPanel.py" line="139"/>
<location filename="TaskPanel.py" line="148"/>
<source>Apply to all axes</source>
<translation>Aplicar a todos los ejes</translation>
</message>
<message>
<location filename="TaskPanel.py" line="140"/>
<location filename="TaskPanel.py" line="150"/>
<source>Dimensions</source>
<translation>Dimensiones</translation>
</message>
<message>
<location filename="TaskPanel.py" line="141"/>
<location filename="TaskPanel.py" line="152"/>
<source>X axis position</source>
<translation>Posición del eje X</translation>
</message>
<message>
<location filename="TaskPanel.py" line="142"/>
<location filename="TaskPanel.py" line="154"/>
<source>Y axis position</source>
<translation>Posición del eje Y</translation>
</message>
<message>
<location filename="TaskPanel.py" line="136"/>
<location filename="TaskPanel.py" line="142"/>
<source>Scales</source>
<translation>Escalas</translation>
</message>
<message>
<location filename="TaskPanel.py" line="137"/>
<location filename="TaskPanel.py" line="144"/>
<source>X auto</source>
<translation>Automatica en X</translation>
<translation>Automática en X</translation>
</message>
<message>
<location filename="TaskPanel.py" line="138"/>
<location filename="TaskPanel.py" line="146"/>
<source>Y auto</source>
<translation type="unfinished"></translation>
<translation>Automática en Y</translation>
</message>
</context>
<context>
<name>plot_console</name>
<message>
<location filename="Plot.py" line="38"/>
<source>matplotlib not found, so Plot module can not be loaded</source>
<translation>No se puede encontrar matplotlib, y por tanto no se puede cargar el modulo de graficado</translation>
</message>
<message>
<location filename="InitGui.py" line="47"/>
<source>matplotlib not found, Plot module will be disabled</source>
<translation>No se puede encontrar matplotlib, el modulo de graficado sera desactivado</translation>
</message>
<message>
<location filename="TaskPanel.py" line="41"/>
<source>Plot document must be selected in order to save it</source>
<translation>Debe seleccionar una grafica primero</translation>
</message>
<message>
<location filename="TaskPanel.py" line="194"/>
<source>Axes 0 can not be deleted</source>
<translation>El juego ejes 0 no puede ser eliminado</translation>
</message>
<message>
<location filename="PlotGui.py" line="81"/>
<source>Grid must be activated on top of a plot document</source>
<translation>Para activar la malla seleccione primero una grafica</translation>
</message>
<message>
<location filename="PlotGui.py" line="100"/>
<source>Legend must be activated on top of a plot document</source>
<translation>Para activar la legenda seleccione primero una grafica</translation>
</message>
</context>
<context>
@ -149,22 +162,22 @@
<translation>Selección de títulos</translation>
</message>
<message>
<location filename="TaskPanel.py" line="110"/>
<location filename="TaskPanel.py" line="111"/>
<source>Active axes</source>
<translation>Ejes activos</translation>
</message>
<message>
<location filename="TaskPanel.py" line="111"/>
<location filename="TaskPanel.py" line="113"/>
<source>Title</source>
<translation>Título</translation>
</message>
<message>
<location filename="TaskPanel.py" line="112"/>
<location filename="TaskPanel.py" line="115"/>
<source>X label</source>
<translation>Título del eje X</translation>
</message>
<message>
<location filename="TaskPanel.py" line="113"/>
<location filename="TaskPanel.py" line="117"/>
<source>Y label</source>
<translation>Título del eje Y</translation>
</message>
@ -177,12 +190,12 @@
<translation>Selección de posiciones y tamaños</translation>
</message>
<message>
<location filename="TaskPanel.py" line="101"/>
<location filename="TaskPanel.py" line="102"/>
<source>Position</source>
<translation>Posición</translation>
</message>
<message>
<location filename="TaskPanel.py" line="102"/>
<location filename="TaskPanel.py" line="104"/>
<source>Size</source>
<translation>Tamaño</translation>
</message>
@ -190,25 +203,20 @@
<context>
<name>plot_save</name>
<message>
<location filename="TaskPanel.py" line="105"/>
<location filename="TaskPanel.py" line="106"/>
<source>Save figure</source>
<translation>Guardar figura</translation>
</message>
<message>
<location filename="TaskPanel.py" line="106"/>
<location filename="TaskPanel.py" line="108"/>
<source>Inches</source>
<translation>Pulgadas</translation>
</message>
<message>
<location filename="TaskPanel.py" line="107"/>
<location filename="TaskPanel.py" line="110"/>
<source>Dots per Inch</source>
<translation>Puntos por pulgada</translation>
</message>
<message>
<location filename="TaskPanel.py" line="41"/>
<source>Plot document must be selected in order to save it</source>
<translation>Debe seleccionar una grafica primero</translation>
</message>
</context>
<context>
<name>plot_series</name>
@ -218,22 +226,22 @@
<translation>Configurar series de datos</translation>
</message>
<message>
<location filename="TaskPanel.py" line="114"/>
<location filename="TaskPanel.py" line="115"/>
<source>No label</source>
<translation>Sin título</translation>
</message>
<message>
<location filename="TaskPanel.py" line="115"/>
<location filename="TaskPanel.py" line="117"/>
<source>Remove serie</source>
<translation>Eliminar serie</translation>
</message>
<message>
<location filename="TaskPanel.py" line="116"/>
<location filename="TaskPanel.py" line="119"/>
<source>Line style</source>
<translation>Estilo de línea</translation>
</message>
<message>
<location filename="TaskPanel.py" line="117"/>
<location filename="TaskPanel.py" line="121"/>
<source>Marker</source>
<translation>Marcador</translation>
</message>