From fcd4603b66c4eed55ac78506c8d9dde538fefad6 Mon Sep 17 00:00:00 2001 From: Bernd Hahnebach Date: Wed, 9 Mar 2016 11:34:15 +0100 Subject: [PATCH] FEM: fix translation issue of FEM Menue --- src/Mod/Fem/_CommandMechanicalMaterial.py | 4 ++-- src/Mod/Fem/_CommandMechanicalShowResult.py | 4 ++-- src/Mod/Fem/_CommandSolverJobControl.py | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/Mod/Fem/_CommandMechanicalMaterial.py b/src/Mod/Fem/_CommandMechanicalMaterial.py index 9c67eddd6..abc6d046d 100644 --- a/src/Mod/Fem/_CommandMechanicalMaterial.py +++ b/src/Mod/Fem/_CommandMechanicalMaterial.py @@ -39,9 +39,9 @@ class _CommandMechanicalMaterial(FemCommands): def __init__(self): super(_CommandMechanicalMaterial, self).__init__() self.resources = {'Pixmap': 'fem-material', - 'MenuText': QtCore.QT_TRANSLATE_NOOP("Fem_Material", "Mechanical material..."), + 'MenuText': QtCore.QT_TRANSLATE_NOOP("Fem_MechanicalMaterial", "Mechanical material..."), 'Accel': "M, M", - 'ToolTip': QtCore.QT_TRANSLATE_NOOP("Fem_Material", "Creates or edit the mechanical material definition.")} + 'ToolTip': QtCore.QT_TRANSLATE_NOOP("Fem_MechanicalMaterial", "Creates or edit the mechanical material definition.")} self.is_active = 'with_analysis' def Activated(self): diff --git a/src/Mod/Fem/_CommandMechanicalShowResult.py b/src/Mod/Fem/_CommandMechanicalShowResult.py index 527df2d6e..e9f9df6b5 100644 --- a/src/Mod/Fem/_CommandMechanicalShowResult.py +++ b/src/Mod/Fem/_CommandMechanicalShowResult.py @@ -37,9 +37,9 @@ class _CommandMechanicalShowResult(FemCommands): def __init__(self): super(_CommandMechanicalShowResult, self).__init__() self.resources = {'Pixmap': 'fem-result', - 'MenuText': QtCore.QT_TRANSLATE_NOOP("Fem_Result", "Show result"), + 'MenuText': QtCore.QT_TRANSLATE_NOOP("Fem_ShowResult", "Show result"), 'Accel': "S, R", - 'ToolTip': QtCore.QT_TRANSLATE_NOOP("Fem_Result", "Show result information of an analysis")} + 'ToolTip': QtCore.QT_TRANSLATE_NOOP("Fem_ShowResult", "Show result information of an analysis")} self.is_active = 'with_results' def Activated(self): diff --git a/src/Mod/Fem/_CommandSolverJobControl.py b/src/Mod/Fem/_CommandSolverJobControl.py index 4a52ea8f3..e7973bc9b 100644 --- a/src/Mod/Fem/_CommandSolverJobControl.py +++ b/src/Mod/Fem/_CommandSolverJobControl.py @@ -37,9 +37,9 @@ class _CommandSolverJobControl(FemCommands): def __init__(self): super(_CommandSolverJobControl, self).__init__() self.resources = {'Pixmap': 'fem-new-analysis', - 'MenuText': QtCore.QT_TRANSLATE_NOOP("Fem_JobControl", "Start solver job control"), + 'MenuText': QtCore.QT_TRANSLATE_NOOP("Fem_SolverJobControl", "Start solver job control"), 'Accel': "S, C", - 'ToolTip': QtCore.QT_TRANSLATE_NOOP("Fem_JobControl", "Dialog to start the calculation of the selected solver")} + 'ToolTip': QtCore.QT_TRANSLATE_NOOP("Fem_SolverJobControl", "Dialog to start the calculation of the selected solver")} self.is_active = 'with_solver' def Activated(self):