Fixed translation stuff
|
@ -6,17 +6,25 @@ SET(PlotMain_SRCS
|
||||||
SOURCE_GROUP("" FILES ${PlotMain_SRCS})
|
SOURCE_GROUP("" FILES ${PlotMain_SRCS})
|
||||||
|
|
||||||
SET(PlotIcons_SRCS
|
SET(PlotIcons_SRCS
|
||||||
Icons/Axes.svg
|
resources/icons/Axes.svg
|
||||||
Icons/Grid.svg
|
resources/icons/Grid.svg
|
||||||
Icons/Icon.svg
|
resources/icons/Icon.svg
|
||||||
Icons/Labels.svg
|
resources/icons/Labels.svg
|
||||||
Icons/Legend.svg
|
resources/icons/Legend.svg
|
||||||
Icons/Positions.svg
|
resources/icons/Positions.svg
|
||||||
Icons/Save.svg
|
resources/icons/Save.svg
|
||||||
Icons/Series.svg
|
resources/icons/Series.svg
|
||||||
)
|
)
|
||||||
SOURCE_GROUP("ploticons" FILES ${PlotIcons_SRCS})
|
SOURCE_GROUP("ploticons" FILES ${PlotIcons_SRCS})
|
||||||
|
|
||||||
|
SET(PlotTranslations_SRCS
|
||||||
|
resources/translations/Plot.ts
|
||||||
|
resources/translations/Plot.qm
|
||||||
|
resources/translations/Plot_es-ES.ts
|
||||||
|
resources/translations/Plot_es-ES.qm
|
||||||
|
)
|
||||||
|
SOURCE_GROUP("plottranslations" FILES ${PlotTranslations_SRCS})
|
||||||
|
|
||||||
SET(PlotAxes_SRCS
|
SET(PlotAxes_SRCS
|
||||||
plotAxes/__init__.py
|
plotAxes/__init__.py
|
||||||
plotAxes/TaskPanel.py
|
plotAxes/TaskPanel.py
|
||||||
|
@ -59,7 +67,7 @@ SET(PlotUtils_SRCS
|
||||||
)
|
)
|
||||||
SOURCE_GROUP("plotutils" FILES ${PlotUtils_SRCS})
|
SOURCE_GROUP("plotutils" FILES ${PlotUtils_SRCS})
|
||||||
|
|
||||||
SET(all_files ${PlotMain_SRCS} ${PlotAxes_SRCS} ${PlotLabels_SRCS} ${PlotPositions_SRCS} ${PlotSave_SRCS} ${PlotSeries_SRCS} ${PlotIcons_SRCS} ${PlotUtils_SRCS})
|
SET(all_files ${PlotMain_SRCS} ${PlotAxes_SRCS} ${PlotLabels_SRCS} ${PlotPositions_SRCS} ${PlotSave_SRCS} ${PlotSeries_SRCS} ${PlotIcons_SRCS} ${PlotTranslations_SRCS} ${PlotUtils_SRCS})
|
||||||
|
|
||||||
ADD_CUSTOM_TARGET(Plot ALL
|
ADD_CUSTOM_TARGET(Plot ALL
|
||||||
SOURCES ${all_files}
|
SOURCES ${all_files}
|
||||||
|
@ -71,7 +79,13 @@ INSTALL(
|
||||||
FILES
|
FILES
|
||||||
${PlotIcons_SRCS}
|
${PlotIcons_SRCS}
|
||||||
DESTINATION
|
DESTINATION
|
||||||
Mod/Plot/Icons
|
Mod/Plot/resources/icons
|
||||||
|
)
|
||||||
|
INSTALL(
|
||||||
|
FILES
|
||||||
|
${PlotTranslations_SRCS}
|
||||||
|
DESTINATION
|
||||||
|
Mod/Plot/resources/translations
|
||||||
)
|
)
|
||||||
INSTALL(
|
INSTALL(
|
||||||
FILES
|
FILES
|
||||||
|
|
|
@ -23,15 +23,14 @@
|
||||||
|
|
||||||
class PlotWorkbench ( Workbench ):
|
class PlotWorkbench ( Workbench ):
|
||||||
""" @brief Workbench of Plot module. Here toolbars & icons are append. """
|
""" @brief Workbench of Plot module. Here toolbars & icons are append. """
|
||||||
from plotUtils import Paths, Translator
|
from plotUtils import Paths
|
||||||
import PlotGui
|
import PlotGui
|
||||||
|
|
||||||
Icon = Paths.iconsPath() + "/Icon.svg"
|
Icon = Paths.iconsPath() + "/Icon.svg"
|
||||||
MenuText = str(Translator.translate("Plot"))
|
MenuText = "Plot"
|
||||||
ToolTip = str(Translator.translate("Plot"))
|
ToolTip = "The Plot module is used to edit/save output plots performed by other tools"
|
||||||
|
|
||||||
def Initialize(self):
|
def Initialize(self):
|
||||||
from plotUtils import Translator
|
|
||||||
# ToolBar
|
# ToolBar
|
||||||
list = ["Plot_SaveFig", "Plot_Axes", "Plot_Series", "Plot_Grid", "Plot_Legend", "Plot_Labels", "Plot_Positions"]
|
list = ["Plot_SaveFig", "Plot_Axes", "Plot_Series", "Plot_Grid", "Plot_Legend", "Plot_Labels", "Plot_Positions"]
|
||||||
self.appendToolbar("Plot",list)
|
self.appendToolbar("Plot",list)
|
||||||
|
@ -44,7 +43,6 @@ try:
|
||||||
import matplotlib
|
import matplotlib
|
||||||
Gui.addWorkbench(PlotWorkbench())
|
Gui.addWorkbench(PlotWorkbench())
|
||||||
except ImportError:
|
except ImportError:
|
||||||
from plotUtils import Translator
|
msg = QtCore.QT_TRANSLATE_NOOP("plot", "matplotlib not found, Plot module will be disabled")
|
||||||
msg = Translator.translate("matplotlib not found, Plot module will be disabled.\n")
|
FreeCAD.Console.PrintMessage(msg + '\n')
|
||||||
FreeCAD.Console.PrintMessage(msg)
|
|
||||||
|
|
||||||
|
|
|
@ -7,14 +7,18 @@ data_DATA = \
|
||||||
PlotGui.py
|
PlotGui.py
|
||||||
|
|
||||||
nobase_data_DATA = \
|
nobase_data_DATA = \
|
||||||
Icons/Axes.svg \
|
resources/icons/Axes.svg \
|
||||||
Icons/Grid.svg \
|
resources/icons/Grid.svg \
|
||||||
Icons/Icon.svg \
|
resources/icons/Icon.svg \
|
||||||
Icons/Labels.svg \
|
resources/icons/Labels.svg \
|
||||||
Icons/Legend.svg \
|
resources/icons/Legend.svg \
|
||||||
Icons/Positions.svg \
|
resources/icons/Positions.svg \
|
||||||
Icons/Save.svg \
|
resources/icons/Save.svg \
|
||||||
Icons/Series.svg \
|
resources/icons/Series.svg \
|
||||||
|
resources/translations/Plot.ts \
|
||||||
|
resources/translations/Plot.qm \
|
||||||
|
resources/translations/Plot_es-ES.ts \
|
||||||
|
resources/translations/Plot_es-ES.qm \
|
||||||
plotAxes/__init__.py \
|
plotAxes/__init__.py \
|
||||||
plotAxes/TaskPanel.py \
|
plotAxes/TaskPanel.py \
|
||||||
plotAxes/TaskPanel.ui \
|
plotAxes/TaskPanel.ui \
|
||||||
|
|
|
@ -24,9 +24,6 @@
|
||||||
# FreeCAD
|
# FreeCAD
|
||||||
import FreeCAD
|
import FreeCAD
|
||||||
|
|
||||||
# Plot module
|
|
||||||
from plotUtils import Paths, Translator
|
|
||||||
|
|
||||||
# PyQt4
|
# PyQt4
|
||||||
from PyQt4 import QtCore, QtGui
|
from PyQt4 import QtCore, QtGui
|
||||||
|
|
||||||
|
@ -38,8 +35,8 @@ try:
|
||||||
from matplotlib.backends.backend_qt4agg import NavigationToolbar2QTAgg as NavigationToolbar
|
from matplotlib.backends.backend_qt4agg import NavigationToolbar2QTAgg as NavigationToolbar
|
||||||
from matplotlib.figure import Figure
|
from matplotlib.figure import Figure
|
||||||
except ImportError:
|
except ImportError:
|
||||||
msg = Translator.translate("matplotlib not installed, so Plot module is disabled.\n")
|
msg = QtCore.QT_TRANSLATE_NOOP("plot", "matplotlib not found, so Plot module can not be loaded")
|
||||||
FreeCAD.Console.PrintError(msg)
|
FreeCAD.Console.PrintMessage(msg + '\n')
|
||||||
raise ImportError("matplotlib not installed")
|
raise ImportError("matplotlib not installed")
|
||||||
|
|
||||||
def getMainWindow():
|
def getMainWindow():
|
||||||
|
|
|
@ -24,16 +24,29 @@
|
||||||
from PyQt4 import QtCore, QtGui
|
from PyQt4 import QtCore, QtGui
|
||||||
import FreeCAD, FreeCADGui, os
|
import FreeCAD, FreeCADGui, os
|
||||||
|
|
||||||
|
# Setup tranlations
|
||||||
|
from plotUtils import Paths
|
||||||
|
path = Paths.translationsPath()
|
||||||
|
FreeCADGui.addLanguagePath(path)
|
||||||
|
import os
|
||||||
|
import FreeCAD
|
||||||
|
translator = QtCore.QTranslator()
|
||||||
|
dirList=os.listdir(path)
|
||||||
|
for fname in dirList:
|
||||||
|
valid = translator.load(os.path.join(path, fname))
|
||||||
|
if valid:
|
||||||
|
QtGui.QApplication.installTranslator(translator)
|
||||||
|
|
||||||
class Save:
|
class Save:
|
||||||
def Activated(self):
|
def Activated(self):
|
||||||
import plotSave
|
import plotSave
|
||||||
plotSave.load()
|
plotSave.load()
|
||||||
|
|
||||||
def GetResources(self):
|
def GetResources(self):
|
||||||
from plotUtils import Paths, Translator
|
from plotUtils import Paths
|
||||||
IconPath = Paths.iconsPath() + "/Save.svg"
|
IconPath = Paths.iconsPath() + "/Save.svg"
|
||||||
MenuText = str(Translator.translate('Save plot'))
|
MenuText = str(QtGui.QApplication.translate("plot", "Save plot").toAscii())
|
||||||
ToolTip = str(Translator.translate('Save plot as image file.'))
|
ToolTip = str(QtGui.QApplication.translate("plot", "Save plot as image file").toAscii())
|
||||||
return {'Pixmap' : IconPath, 'MenuText': MenuText, 'ToolTip': ToolTip}
|
return {'Pixmap' : IconPath, 'MenuText': MenuText, 'ToolTip': ToolTip}
|
||||||
|
|
||||||
class Axes:
|
class Axes:
|
||||||
|
@ -42,10 +55,10 @@ class Axes:
|
||||||
plotAxes.load()
|
plotAxes.load()
|
||||||
|
|
||||||
def GetResources(self):
|
def GetResources(self):
|
||||||
from plotUtils import Paths, Translator
|
from plotUtils import Paths
|
||||||
IconPath = Paths.iconsPath() + "/Axes.svg"
|
IconPath = Paths.iconsPath() + "/Axes.svg"
|
||||||
MenuText = str(Translator.translate('Configure axes'))
|
MenuText = str(QtGui.QApplication.translate("plot", "Configure axes").toAscii())
|
||||||
ToolTip = str(Translator.translate('Configure axes parameters.'))
|
ToolTip = str(QtGui.QApplication.translate("plot", "Configure axes parameters").toAscii())
|
||||||
return {'Pixmap' : IconPath, 'MenuText': MenuText, 'ToolTip': ToolTip}
|
return {'Pixmap' : IconPath, 'MenuText': MenuText, 'ToolTip': ToolTip}
|
||||||
|
|
||||||
class Series:
|
class Series:
|
||||||
|
@ -54,48 +67,46 @@ class Series:
|
||||||
plotSeries.load()
|
plotSeries.load()
|
||||||
|
|
||||||
def GetResources(self):
|
def GetResources(self):
|
||||||
from plotUtils import Paths, Translator
|
from plotUtils import Paths
|
||||||
IconPath = Paths.iconsPath() + "/Series.svg"
|
IconPath = Paths.iconsPath() + "/Series.svg"
|
||||||
MenuText = str(Translator.translate('Configure series'))
|
MenuText = str(QtGui.QApplication.translate("plot", "Configure series").toAscii())
|
||||||
ToolTip = str(Translator.translate('Configure series drawing style and label.'))
|
ToolTip = str(QtGui.QApplication.translate("plot", "Configure series drawing style and label").toAscii())
|
||||||
return {'Pixmap' : IconPath, 'MenuText': MenuText, 'ToolTip': ToolTip}
|
return {'Pixmap' : IconPath, 'MenuText': MenuText, 'ToolTip': ToolTip}
|
||||||
|
|
||||||
class Grid:
|
class Grid:
|
||||||
def Activated(self):
|
def Activated(self):
|
||||||
import Plot
|
import Plot
|
||||||
from plotUtils import Translator
|
|
||||||
plt = Plot.getPlot()
|
plt = Plot.getPlot()
|
||||||
if not plt:
|
if not plt:
|
||||||
msg = Translator.translate("Grid must be activated on top of a plot document.")
|
msg = str(QtGui.QApplication.translate("plot", "Grid must be activated on top of a plot document").toAscii())
|
||||||
FreeCAD.Console.PrintError(msg+"\n")
|
FreeCAD.Console.PrintError(msg+"\n")
|
||||||
return
|
return
|
||||||
flag = plt.isGrid()
|
flag = plt.isGrid()
|
||||||
Plot.grid(not flag)
|
Plot.grid(not flag)
|
||||||
|
|
||||||
def GetResources(self):
|
def GetResources(self):
|
||||||
from plotUtils import Paths, Translator
|
from plotUtils import Paths
|
||||||
IconPath = Paths.iconsPath() + "/Grid.svg"
|
IconPath = Paths.iconsPath() + "/Grid.svg"
|
||||||
MenuText = str(Translator.translate('Show/Hide grid'))
|
MenuText = str(QtGui.QApplication.translate("plot", "Show/Hide grid").toAscii())
|
||||||
ToolTip = str(Translator.translate('Show/Hide grid on selected plot'))
|
ToolTip = str(QtGui.QApplication.translate("plot", "Show/Hide grid on selected plot").toAscii())
|
||||||
return {'Pixmap' : IconPath, 'MenuText': MenuText, 'ToolTip': ToolTip}
|
return {'Pixmap' : IconPath, 'MenuText': MenuText, 'ToolTip': ToolTip}
|
||||||
|
|
||||||
class Legend:
|
class Legend:
|
||||||
def Activated(self):
|
def Activated(self):
|
||||||
import Plot
|
import Plot
|
||||||
from plotUtils import Translator
|
|
||||||
plt = Plot.getPlot()
|
plt = Plot.getPlot()
|
||||||
if not plt:
|
if not plt:
|
||||||
msg = Translator.translate("Legend must be activated on top of a plot document.")
|
msg = str(QtGui.QApplication.translate("plot", "Legend must be activated on top of a plot document").toAscii())
|
||||||
FreeCAD.Console.PrintError(msg+"\n")
|
FreeCAD.Console.PrintError(msg+"\n")
|
||||||
return
|
return
|
||||||
flag = plt.isLegend()
|
flag = plt.isLegend()
|
||||||
Plot.legend(not flag)
|
Plot.legend(not flag)
|
||||||
|
|
||||||
def GetResources(self):
|
def GetResources(self):
|
||||||
from plotUtils import Paths, Translator
|
from plotUtils import Paths
|
||||||
IconPath = Paths.iconsPath() + "/Legend.svg"
|
IconPath = Paths.iconsPath() + "/Legend.svg"
|
||||||
MenuText = str(Translator.translate('Show/Hide legend'))
|
MenuText = str(QtGui.QApplication.translate("plot", "Show/Hide legend").toAscii())
|
||||||
ToolTip = str(Translator.translate('Show/Hide legend on selected plot'))
|
ToolTip = str(QtGui.QApplication.translate("plot", "Show/Hide legend on selected plot").toAscii())
|
||||||
return {'Pixmap' : IconPath, 'MenuText': MenuText, 'ToolTip': ToolTip}
|
return {'Pixmap' : IconPath, 'MenuText': MenuText, 'ToolTip': ToolTip}
|
||||||
|
|
||||||
class Labels:
|
class Labels:
|
||||||
|
@ -104,10 +115,10 @@ class Labels:
|
||||||
plotLabels.load()
|
plotLabels.load()
|
||||||
|
|
||||||
def GetResources(self):
|
def GetResources(self):
|
||||||
from plotUtils import Paths, Translator
|
from plotUtils import Paths
|
||||||
IconPath = Paths.iconsPath() + "/Labels.svg"
|
IconPath = Paths.iconsPath() + "/Labels.svg"
|
||||||
MenuText = str(Translator.translate('Set labels'))
|
MenuText = str(QtGui.QApplication.translate("plot", "Set labels").toAscii())
|
||||||
ToolTip = str(Translator.translate('Set title and axes labels'))
|
ToolTip = str(QtGui.QApplication.translate("plot", "Set title and axes labels").toAscii())
|
||||||
return {'Pixmap' : IconPath, 'MenuText': MenuText, 'ToolTip': ToolTip}
|
return {'Pixmap' : IconPath, 'MenuText': MenuText, 'ToolTip': ToolTip}
|
||||||
|
|
||||||
class Positions:
|
class Positions:
|
||||||
|
@ -116,10 +127,10 @@ class Positions:
|
||||||
plotPositions.load()
|
plotPositions.load()
|
||||||
|
|
||||||
def GetResources(self):
|
def GetResources(self):
|
||||||
from plotUtils import Paths, Translator
|
from plotUtils import Paths
|
||||||
IconPath = Paths.iconsPath() + "/Positions.svg"
|
IconPath = Paths.iconsPath() + "/Positions.svg"
|
||||||
MenuText = str(Translator.translate('Set positions and sizes'))
|
MenuText = str(QtGui.QApplication.translate("plot", "Set positions and sizes").toAscii())
|
||||||
ToolTip = str(Translator.translate('Set labels and legend positions and sizes.'))
|
ToolTip = str(QtGui.QApplication.translate("plot", "Set labels and legend positions and sizes").toAscii())
|
||||||
return {'Pixmap' : IconPath, 'MenuText': MenuText, 'ToolTip': ToolTip}
|
return {'Pixmap' : IconPath, 'MenuText': MenuText, 'ToolTip': ToolTip}
|
||||||
|
|
||||||
FreeCADGui.addCommand('Plot_SaveFig', Save())
|
FreeCADGui.addCommand('Plot_SaveFig', Save())
|
||||||
|
|
|
@ -28,7 +28,7 @@ import FreeCADGui as Gui
|
||||||
from PyQt4 import QtGui,QtCore
|
from PyQt4 import QtGui,QtCore
|
||||||
# Module
|
# Module
|
||||||
import Plot
|
import Plot
|
||||||
from plotUtils import Paths, Translator
|
from plotUtils import Paths
|
||||||
|
|
||||||
class TaskPanel:
|
class TaskPanel:
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
|
@ -127,19 +127,19 @@ class TaskPanel:
|
||||||
def retranslateUi(self):
|
def retranslateUi(self):
|
||||||
""" Set user interface locale strings.
|
""" Set user interface locale strings.
|
||||||
"""
|
"""
|
||||||
self.form.setWindowTitle(Translator.translate("Configure axes"))
|
self.form.setWindowTitle(str(QtGui.QApplication.translate("plot_axes", "Configure axes").toAscii()))
|
||||||
self.form.findChild(QtGui.QLabel, "axesLabel").setText(Translator.translate("Active axes"))
|
self.form.findChild(QtGui.QLabel, "axesLabel").setText(str(QtGui.QApplication.translate("plot_axes", "Active axes").toAscii()))
|
||||||
self.form.all.setText(Translator.translate("Apply to all axes"))
|
self.form.all.setText(str(QtGui.QApplication.translate("plot_axes", "Apply to all axes").toAscii()))
|
||||||
self.form.findChild(QtGui.QLabel, "dimLabel").setText(Translator.translate("Dimensions"))
|
self.form.findChild(QtGui.QLabel, "dimLabel").setText(str(QtGui.QApplication.translate("plot_axes", "Dimensions").toAscii()))
|
||||||
self.form.findChild(QtGui.QLabel, "xPosLabel").setText(Translator.translate("X axis position"))
|
self.form.findChild(QtGui.QLabel, "xPosLabel").setText(str(QtGui.QApplication.translate("plot_axes", "X axis position").toAscii()))
|
||||||
self.form.findChild(QtGui.QLabel, "yPosLabel").setText(Translator.translate("Y axis position"))
|
self.form.findChild(QtGui.QLabel, "yPosLabel").setText(str(QtGui.QApplication.translate("plot_axes", "Y axis position").toAscii()))
|
||||||
self.form.findChild(QtGui.QLabel, "scalesLabel").setText(Translator.translate("Scales"))
|
self.form.findChild(QtGui.QLabel, "scalesLabel").setText(str(QtGui.QApplication.translate("plot_axes", "Scales").toAscii()))
|
||||||
self.form.xAuto.setText(Translator.translate("X auto"))
|
self.form.xAuto.setText(str(QtGui.QApplication.translate("plot_axes", "X auto").toAscii()))
|
||||||
self.form.yAuto.setText(Translator.translate("Y auto"))
|
self.form.yAuto.setText(str(QtGui.QApplication.translate("plot_axes", "Y auto").toAscii()))
|
||||||
self.form.findChild(QtGui.QCheckBox, "allAxes").setText(Translator.translate("Apply to all axes"))
|
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(Translator.translate("Dimensions"))
|
self.form.findChild(QtGui.QLabel, "dimLabel").setText(str(QtGui.QApplication.translate("plot_axes", "Dimensions").toAscii()))
|
||||||
self.form.findChild(QtGui.QLabel, "xPosLabel").setText(Translator.translate("X axis position"))
|
self.form.findChild(QtGui.QLabel, "xPosLabel").setText(str(QtGui.QApplication.translate("plot_axes", "X axis position").toAscii()))
|
||||||
self.form.findChild(QtGui.QLabel, "yPosLabel").setText(Translator.translate("Y axis position"))
|
self.form.findChild(QtGui.QLabel, "yPosLabel").setText(str(QtGui.QApplication.translate("plot_axes", "Y axis position").toAscii()))
|
||||||
|
|
||||||
def onAxesId(self, value):
|
def onAxesId(self, value):
|
||||||
""" Executed when axes index is modified. """
|
""" Executed when axes index is modified. """
|
||||||
|
@ -178,7 +178,7 @@ class TaskPanel:
|
||||||
return
|
return
|
||||||
# Don't remove first axes
|
# Don't remove first axes
|
||||||
if not self.form.axId.value():
|
if not self.form.axId.value():
|
||||||
msg = Translator.translate("Axes 0 can't be deleted")
|
msg = str(QtGui.QApplication.translate("plot_axes", "Axes 0 can not be deleted".toAscii()))
|
||||||
App.Console.PrintError(msg+"\n")
|
App.Console.PrintError(msg+"\n")
|
||||||
return
|
return
|
||||||
# Remove axes
|
# Remove axes
|
||||||
|
|
|
@ -28,7 +28,7 @@ import FreeCADGui as Gui
|
||||||
from PyQt4 import QtGui,QtCore
|
from PyQt4 import QtGui,QtCore
|
||||||
# Module
|
# Module
|
||||||
import Plot
|
import Plot
|
||||||
from plotUtils import Paths, Translator
|
from plotUtils import Paths
|
||||||
|
|
||||||
class TaskPanel:
|
class TaskPanel:
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
|
@ -106,11 +106,11 @@ class TaskPanel:
|
||||||
def retranslateUi(self):
|
def retranslateUi(self):
|
||||||
""" Set user interface locale strings.
|
""" Set user interface locale strings.
|
||||||
"""
|
"""
|
||||||
self.form.setWindowTitle(Translator.translate("Set labels"))
|
self.form.setWindowTitle(str(QtGui.QApplication.translate("plot_labels", "Set labels").toAscii()))
|
||||||
self.form.findChild(QtGui.QLabel, "axesLabel").setText(Translator.translate("Active axes"))
|
self.form.findChild(QtGui.QLabel, "axesLabel").setText(str(QtGui.QApplication.translate("plot_labels", "Active axes").toAscii()))
|
||||||
self.form.findChild(QtGui.QLabel, "titleLabel").setText(Translator.translate("Title"))
|
self.form.findChild(QtGui.QLabel, "titleLabel").setText(str(QtGui.QApplication.translate("plot_labels", "Title").toAscii()))
|
||||||
self.form.findChild(QtGui.QLabel, "xLabel").setText(Translator.translate("X label"))
|
self.form.findChild(QtGui.QLabel, "xLabel").setText(str(QtGui.QApplication.translate("plot_labels", "X label").toAscii()))
|
||||||
self.form.findChild(QtGui.QLabel, "yLabel").setText(Translator.translate("Y label"))
|
self.form.findChild(QtGui.QLabel, "yLabel").setText(str(QtGui.QApplication.translate("plot_labels", "Y label").toAscii()))
|
||||||
|
|
||||||
def onAxesId(self, value):
|
def onAxesId(self, value):
|
||||||
""" Executed when axes index is modified. """
|
""" Executed when axes index is modified. """
|
||||||
|
|
|
@ -28,7 +28,7 @@ import FreeCADGui as Gui
|
||||||
from PyQt4 import QtGui,QtCore
|
from PyQt4 import QtGui,QtCore
|
||||||
# Module
|
# Module
|
||||||
import Plot
|
import Plot
|
||||||
from plotUtils import Paths, Translator
|
from plotUtils import Paths
|
||||||
|
|
||||||
class TaskPanel:
|
class TaskPanel:
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
|
@ -97,9 +97,9 @@ class TaskPanel:
|
||||||
def retranslateUi(self):
|
def retranslateUi(self):
|
||||||
""" Set user interface locale strings.
|
""" Set user interface locale strings.
|
||||||
"""
|
"""
|
||||||
self.form.setWindowTitle(Translator.translate("Set positions and sizes"))
|
self.form.setWindowTitle(str(QtGui.QApplication.translate("plot_positions", "Set positions and sizes").toAscii()))
|
||||||
self.form.findChild(QtGui.QLabel, "posLabel").setText(Translator.translate("Position"))
|
self.form.findChild(QtGui.QLabel, "posLabel").setText(str(QtGui.QApplication.translate("plot_positions", "Position").toAscii()))
|
||||||
self.form.findChild(QtGui.QLabel, "sizeLabel").setText(Translator.translate("Size"))
|
self.form.findChild(QtGui.QLabel, "sizeLabel").setText(str(QtGui.QApplication.translate("plot_positions", "Size").toAscii()))
|
||||||
|
|
||||||
def onItem(self, row):
|
def onItem(self, row):
|
||||||
""" Executed when selected item is modified. """
|
""" Executed when selected item is modified. """
|
||||||
|
|
|
@ -29,7 +29,7 @@ import FreeCADGui as Gui
|
||||||
from PyQt4 import QtGui,QtCore
|
from PyQt4 import QtGui,QtCore
|
||||||
# Module
|
# Module
|
||||||
import Plot
|
import Plot
|
||||||
from plotUtils import Paths, Translator
|
from plotUtils import Paths
|
||||||
|
|
||||||
class TaskPanel:
|
class TaskPanel:
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
|
@ -38,7 +38,7 @@ class TaskPanel:
|
||||||
def accept(self):
|
def accept(self):
|
||||||
plt = Plot.getPlot()
|
plt = Plot.getPlot()
|
||||||
if not plt:
|
if not plt:
|
||||||
msg = Translator.translate("Plot document must be selected in order to save it.")
|
msg = str(QtGui.QApplication.translate("plot_save", "Plot document must be selected in order to save it").toAscii())
|
||||||
App.Console.PrintError(msg+"\n")
|
App.Console.PrintError(msg+"\n")
|
||||||
return False
|
return False
|
||||||
path = unicode(self.form.path.text())
|
path = unicode(self.form.path.text())
|
||||||
|
@ -102,9 +102,9 @@ class TaskPanel:
|
||||||
def retranslateUi(self):
|
def retranslateUi(self):
|
||||||
""" Set user interface locale strings.
|
""" Set user interface locale strings.
|
||||||
"""
|
"""
|
||||||
self.form.setWindowTitle(Translator.translate("Save figure"))
|
self.form.setWindowTitle(str(QtGui.QApplication.translate("plot_save", "Save figure").toAscii()))
|
||||||
self.form.findChild(QtGui.QLabel, "sizeLabel").setText(Translator.translate("Inches"))
|
self.form.findChild(QtGui.QLabel, "sizeLabel").setText(str(QtGui.QApplication.translate("plot_save", "Inches").toAscii()))
|
||||||
self.form.findChild(QtGui.QLabel, "dpiLabel").setText(Translator.translate("Dots per Inch"))
|
self.form.findChild(QtGui.QLabel, "dpiLabel").setText(str(QtGui.QApplication.translate("plot_save", "Dots per Inch").toAscii()))
|
||||||
|
|
||||||
def updateUI(self):
|
def updateUI(self):
|
||||||
""" Setup UI controls values if possible """
|
""" Setup UI controls values if possible """
|
||||||
|
|
|
@ -28,7 +28,7 @@ import FreeCADGui as Gui
|
||||||
from PyQt4 import QtGui,QtCore
|
from PyQt4 import QtGui,QtCore
|
||||||
# Module
|
# Module
|
||||||
import Plot
|
import Plot
|
||||||
from plotUtils import Paths, Translator
|
from plotUtils import Paths
|
||||||
# matplotlib
|
# matplotlib
|
||||||
import matplotlib
|
import matplotlib
|
||||||
from matplotlib.lines import Line2D
|
from matplotlib.lines import Line2D
|
||||||
|
@ -110,11 +110,11 @@ class TaskPanel:
|
||||||
def retranslateUi(self):
|
def retranslateUi(self):
|
||||||
""" Set user interface locale strings.
|
""" Set user interface locale strings.
|
||||||
"""
|
"""
|
||||||
self.form.setWindowTitle(Translator.translate("Set positions and sizes"))
|
self.form.setWindowTitle(str(QtGui.QApplication.translate("plot_series", "Configure series").toAscii()))
|
||||||
self.form.isLabel.setText(Translator.translate("No label"))
|
self.form.isLabel.setText(str(QtGui.QApplication.translate("plot_series", "No label").toAscii()))
|
||||||
self.form.remove.setText(Translator.translate("Remove serie"))
|
self.form.remove.setText(str(QtGui.QApplication.translate("plot_series", "Remove serie").toAscii()))
|
||||||
self.form.findChild(QtGui.QLabel, "styleLabel").setText(Translator.translate("Line style"))
|
self.form.findChild(QtGui.QLabel, "styleLabel").setText(str(QtGui.QApplication.translate("plot_series", "Line style").toAscii()))
|
||||||
self.form.findChild(QtGui.QLabel, "markerLabel").setText(Translator.translate("Marker"))
|
self.form.findChild(QtGui.QLabel, "markerLabel").setText(str(QtGui.QApplication.translate("plot_series", "Marker").toAscii()))
|
||||||
|
|
||||||
def fillStyles(self):
|
def fillStyles(self):
|
||||||
""" Fill style combo boxes. """
|
""" Fill style combo boxes. """
|
||||||
|
|
|
@ -24,7 +24,7 @@
|
||||||
import FreeCAD, FreeCADGui, os
|
import FreeCAD, FreeCADGui, os
|
||||||
|
|
||||||
def modulePath():
|
def modulePath():
|
||||||
"""returns the current Ship design module path
|
"""returns the current Plot module path
|
||||||
@return Module path"""
|
@return Module path"""
|
||||||
path1 = FreeCAD.ConfigGet("AppHomePath") + "Mod/Plot"
|
path1 = FreeCAD.ConfigGet("AppHomePath") + "Mod/Plot"
|
||||||
path2 = FreeCAD.ConfigGet("UserAppData") + "Mod/Plot"
|
path2 = FreeCAD.ConfigGet("UserAppData") + "Mod/Plot"
|
||||||
|
@ -34,9 +34,15 @@ def modulePath():
|
||||||
return path1
|
return path1
|
||||||
|
|
||||||
def iconsPath():
|
def iconsPath():
|
||||||
"""returns the current Ship design module icons path
|
"""returns the current Plot module icons path
|
||||||
@return Icons path"""
|
@return Icons path"""
|
||||||
path = modulePath() + "/Icons"
|
path = modulePath() + "/resources/icons"
|
||||||
|
return path
|
||||||
|
|
||||||
|
def translationsPath():
|
||||||
|
"""returns the current Plot module translations path
|
||||||
|
@return Icons path"""
|
||||||
|
path = modulePath() + "/resources/translations"
|
||||||
return path
|
return path
|
||||||
|
|
||||||
def getPathFromFile(fileName):
|
def getPathFromFile(fileName):
|
||||||
|
|
Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 14 KiB |
Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 14 KiB |
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 16 KiB |
Before Width: | Height: | Size: 27 KiB After Width: | Height: | Size: 27 KiB |
Before Width: | Height: | Size: 26 KiB After Width: | Height: | Size: 26 KiB |
Before Width: | Height: | Size: 26 KiB After Width: | Height: | Size: 26 KiB |
Before Width: | Height: | Size: 26 KiB After Width: | Height: | Size: 26 KiB |
Before Width: | Height: | Size: 15 KiB After Width: | Height: | Size: 15 KiB |
1
src/Mod/Plot/resources/translations/Plot.qm
Normal file
|
@ -0,0 +1 @@
|
||||||
|
<クdハ<>箆!ソ`。スン
|
241
src/Mod/Plot/resources/translations/Plot.ts
Normal file
|
@ -0,0 +1,241 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<!DOCTYPE TS><TS version="2.0">
|
||||||
|
<context>
|
||||||
|
<name>plot</name>
|
||||||
|
<message>
|
||||||
|
<location filename="PlotGui.py" line="48"/>
|
||||||
|
<source>Save plot</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="PlotGui.py" line="60"/>
|
||||||
|
<source>Configure axes</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="PlotGui.py" line="61"/>
|
||||||
|
<source>Configure axes parameters</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="PlotGui.py" line="72"/>
|
||||||
|
<source>Configure series</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="PlotGui.py" line="73"/>
|
||||||
|
<source>Configure series drawing style and label</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="90"/>
|
||||||
|
<source>Show/Hide grid</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="PlotGui.py" line="91"/>
|
||||||
|
<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"/>
|
||||||
|
<source>Show/Hide legend</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="PlotGui.py" line="109"/>
|
||||||
|
<source>Show/Hide legend on selected plot</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="PlotGui.py" line="120"/>
|
||||||
|
<source>Set labels</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="PlotGui.py" line="121"/>
|
||||||
|
<source>Set title and axes labels</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="PlotGui.py" line="132"/>
|
||||||
|
<source>Set positions and sizes</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="PlotGui.py" line="133"/>
|
||||||
|
<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>
|
||||||
|
<message>
|
||||||
|
<location filename="TaskPanel.py" line="130"/>
|
||||||
|
<source>Configure axes</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="TaskPanel.py" line="131"/>
|
||||||
|
<source>Active axes</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="TaskPanel.py" line="139"/>
|
||||||
|
<source>Apply to all axes</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="TaskPanel.py" line="140"/>
|
||||||
|
<source>Dimensions</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="TaskPanel.py" line="141"/>
|
||||||
|
<source>X axis position</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="TaskPanel.py" line="142"/>
|
||||||
|
<source>Y axis position</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="TaskPanel.py" line="136"/>
|
||||||
|
<source>Scales</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="TaskPanel.py" line="137"/>
|
||||||
|
<source>X auto</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="TaskPanel.py" line="138"/>
|
||||||
|
<source>Y auto</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
</context>
|
||||||
|
<context>
|
||||||
|
<name>plot_labels</name>
|
||||||
|
<message>
|
||||||
|
<location filename="TaskPanel.py" line="109"/>
|
||||||
|
<source>Set labels</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="TaskPanel.py" line="110"/>
|
||||||
|
<source>Active axes</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="TaskPanel.py" line="111"/>
|
||||||
|
<source>Title</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="TaskPanel.py" line="112"/>
|
||||||
|
<source>X label</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="TaskPanel.py" line="113"/>
|
||||||
|
<source>Y label</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
</context>
|
||||||
|
<context>
|
||||||
|
<name>plot_positions</name>
|
||||||
|
<message>
|
||||||
|
<location filename="TaskPanel.py" line="100"/>
|
||||||
|
<source>Set positions and sizes</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="TaskPanel.py" line="101"/>
|
||||||
|
<source>Position</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="TaskPanel.py" line="102"/>
|
||||||
|
<source>Size</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
</context>
|
||||||
|
<context>
|
||||||
|
<name>plot_save</name>
|
||||||
|
<message>
|
||||||
|
<location filename="TaskPanel.py" line="105"/>
|
||||||
|
<source>Save figure</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="TaskPanel.py" line="106"/>
|
||||||
|
<source>Inches</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="TaskPanel.py" line="107"/>
|
||||||
|
<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"/>
|
||||||
|
<source>No label</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="TaskPanel.py" line="115"/>
|
||||||
|
<source>Remove serie</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="TaskPanel.py" line="116"/>
|
||||||
|
<source>Line style</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="TaskPanel.py" line="117"/>
|
||||||
|
<source>Marker</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="TaskPanel.py" line="113"/>
|
||||||
|
<source>Configure series</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
</context>
|
||||||
|
</TS>
|
BIN
src/Mod/Plot/resources/translations/Plot_es-ES.qm
Normal file
241
src/Mod/Plot/resources/translations/Plot_es-ES.ts
Normal file
|
@ -0,0 +1,241 @@
|
||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<!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>
|
||||||
|
<translation>Guardar gráfica</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="PlotGui.py" line="49"/>
|
||||||
|
<source>Save plot as image file</source>
|
||||||
|
<translation>Guarda la gráfica como archivo de imagen</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="PlotGui.py" line="60"/>
|
||||||
|
<source>Configure axes</source>
|
||||||
|
<translation>Configure los ejes</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="PlotGui.py" line="61"/>
|
||||||
|
<source>Configure axes parameters</source>
|
||||||
|
<translation>Establezca los parámetros de cada eje</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="PlotGui.py" line="72"/>
|
||||||
|
<source>Configure series</source>
|
||||||
|
<translation>Configure las series trazadas</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="PlotGui.py" line="73"/>
|
||||||
|
<source>Configure series drawing style and label</source>
|
||||||
|
<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"/>
|
||||||
|
<source>Show/Hide grid</source>
|
||||||
|
<translation>Mostrar/Ocultar la malla</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="PlotGui.py" line="91"/>
|
||||||
|
<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"/>
|
||||||
|
<source>Show/Hide legend</source>
|
||||||
|
<translation>Mostrar/Ocultar la legenda</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="PlotGui.py" line="109"/>
|
||||||
|
<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"/>
|
||||||
|
<source>Set labels</source>
|
||||||
|
<translation>Establecer títulos</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="PlotGui.py" line="121"/>
|
||||||
|
<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"/>
|
||||||
|
<source>Set positions and sizes</source>
|
||||||
|
<translation>Modificar posiciones y tamaños</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="PlotGui.py" line="133"/>
|
||||||
|
<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>
|
||||||
|
<message>
|
||||||
|
<location filename="TaskPanel.py" line="130"/>
|
||||||
|
<source>Configure axes</source>
|
||||||
|
<translation>Configuración de los ejes</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="TaskPanel.py" line="131"/>
|
||||||
|
<source>Active axes</source>
|
||||||
|
<translation>Ejes activos</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="TaskPanel.py" line="139"/>
|
||||||
|
<source>Apply to all axes</source>
|
||||||
|
<translation>Aplicar a todos los ejes</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="TaskPanel.py" line="140"/>
|
||||||
|
<source>Dimensions</source>
|
||||||
|
<translation>Dimensiones</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="TaskPanel.py" line="141"/>
|
||||||
|
<source>X axis position</source>
|
||||||
|
<translation>Posición del eje X</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="TaskPanel.py" line="142"/>
|
||||||
|
<source>Y axis position</source>
|
||||||
|
<translation>Posición del eje Y</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="TaskPanel.py" line="136"/>
|
||||||
|
<source>Scales</source>
|
||||||
|
<translation>Escalas</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="TaskPanel.py" line="137"/>
|
||||||
|
<source>X auto</source>
|
||||||
|
<translation>Automatica en X</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="TaskPanel.py" line="138"/>
|
||||||
|
<source>Y auto</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
|
</context>
|
||||||
|
<context>
|
||||||
|
<name>plot_labels</name>
|
||||||
|
<message>
|
||||||
|
<location filename="TaskPanel.py" line="109"/>
|
||||||
|
<source>Set labels</source>
|
||||||
|
<translation>Selección de títulos</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="TaskPanel.py" line="110"/>
|
||||||
|
<source>Active axes</source>
|
||||||
|
<translation>Ejes activos</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="TaskPanel.py" line="111"/>
|
||||||
|
<source>Title</source>
|
||||||
|
<translation>Título</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="TaskPanel.py" line="112"/>
|
||||||
|
<source>X label</source>
|
||||||
|
<translation>Título del eje X</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="TaskPanel.py" line="113"/>
|
||||||
|
<source>Y label</source>
|
||||||
|
<translation>Título del eje Y</translation>
|
||||||
|
</message>
|
||||||
|
</context>
|
||||||
|
<context>
|
||||||
|
<name>plot_positions</name>
|
||||||
|
<message>
|
||||||
|
<location filename="TaskPanel.py" line="100"/>
|
||||||
|
<source>Set positions and sizes</source>
|
||||||
|
<translation>Selección de posiciones y tamaños</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="TaskPanel.py" line="101"/>
|
||||||
|
<source>Position</source>
|
||||||
|
<translation>Posición</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="TaskPanel.py" line="102"/>
|
||||||
|
<source>Size</source>
|
||||||
|
<translation>Tamaño</translation>
|
||||||
|
</message>
|
||||||
|
</context>
|
||||||
|
<context>
|
||||||
|
<name>plot_save</name>
|
||||||
|
<message>
|
||||||
|
<location filename="TaskPanel.py" line="105"/>
|
||||||
|
<source>Save figure</source>
|
||||||
|
<translation>Guardar figura</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="TaskPanel.py" line="106"/>
|
||||||
|
<source>Inches</source>
|
||||||
|
<translation>Pulgadas</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="TaskPanel.py" line="107"/>
|
||||||
|
<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>
|
||||||
|
<message>
|
||||||
|
<location filename="TaskPanel.py" line="113"/>
|
||||||
|
<source>Configure series</source>
|
||||||
|
<translation>Configurar series de datos</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="TaskPanel.py" line="114"/>
|
||||||
|
<source>No label</source>
|
||||||
|
<translation>Sin título</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="TaskPanel.py" line="115"/>
|
||||||
|
<source>Remove serie</source>
|
||||||
|
<translation>Eliminar serie</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="TaskPanel.py" line="116"/>
|
||||||
|
<source>Line style</source>
|
||||||
|
<translation>Estilo de línea</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="TaskPanel.py" line="117"/>
|
||||||
|
<source>Marker</source>
|
||||||
|
<translation>Marcador</translation>
|
||||||
|
</message>
|
||||||
|
</context>
|
||||||
|
</TS>
|