From bc3c819ed2f2e80df3890c6b5632ac26b0635e5b Mon Sep 17 00:00:00 2001 From: gdd Date: Wed, 10 Nov 2010 16:32:09 +0000 Subject: [PATCH] Another fix for salome_pluginsmanager multi-languag support (GEOM) --- src/GEOMGUI/GEOM_msg_en.ts | 4 ++++ src/GEOMGUI/GEOM_msg_fr.ts | 4 ++++ src/GEOMGUI/GeometryGUI.cxx | 2 +- 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/src/GEOMGUI/GEOM_msg_en.ts b/src/GEOMGUI/GEOM_msg_en.ts index 5dd991c69..3ddd7f470 100644 --- a/src/GEOMGUI/GEOM_msg_en.ts +++ b/src/GEOMGUI/GEOM_msg_en.ts @@ -4154,6 +4154,10 @@ Input value precision can be adjusted using JUNCTION_FACE_3 Junction 3 + + GEOM_PLUGINS_OTHER + Other + BasicGUI_CurveDlg diff --git a/src/GEOMGUI/GEOM_msg_fr.ts b/src/GEOMGUI/GEOM_msg_fr.ts index a28aeddf2..33bff63ba 100644 --- a/src/GEOMGUI/GEOM_msg_fr.ts +++ b/src/GEOMGUI/GEOM_msg_fr.ts @@ -4151,6 +4151,10 @@ le paramètre '%1' aux préférences du module Géométrie.JUNCTION_FACE_3 Jonction 3 + + GEOM_PLUGINS_OTHER + Autre + BasicGUI_CurveDlg diff --git a/src/GEOMGUI/GeometryGUI.cxx b/src/GEOMGUI/GeometryGUI.cxx index 3ee06d2df..57b89ad57 100644 --- a/src/GEOMGUI/GeometryGUI.cxx +++ b/src/GEOMGUI/GeometryGUI.cxx @@ -1202,7 +1202,7 @@ bool GeometryGUI::activateModule( SUIT_Study* study ) PyErr_Print(); else { - PyObject* result=PyObject_CallMethod( pluginsmanager, (char*)"initialize", (char*)"isss",1,"geom","New Entity","Other"); + PyObject* result=PyObject_CallMethod( pluginsmanager, (char*)"initialize", (char*)"isss",1,"geom",tr("MEN_NEW_ENTITY").toStdString().c_str(),tr("GEOM_PLUGINS_OTHER").toStdString().c_str()); if(result==NULL) PyErr_Print(); Py_XDECREF(result); -- 2.39.2