From 1a5ef21ab643dcfc293c79e22089b0f5d42e174b Mon Sep 17 00:00:00 2001 From: gdd Date: Wed, 10 Nov 2010 11:26:29 +0000 Subject: [PATCH] Make pluginmanager works in other language than english --- src/SalomeApp/SalomeApp_Application.cxx | 2 +- src/SalomeApp/resources/SalomeApp_msg_en.ts | 8 ++++++++ src/SalomeApp/resources/SalomeApp_msg_fr.ts | 8 ++++++++ 3 files changed, 17 insertions(+), 1 deletion(-) diff --git a/src/SalomeApp/SalomeApp_Application.cxx b/src/SalomeApp/SalomeApp_Application.cxx index 3adecffd4..cb25d3bda 100644 --- a/src/SalomeApp/SalomeApp_Application.cxx +++ b/src/SalomeApp/SalomeApp_Application.cxx @@ -330,7 +330,7 @@ void SalomeApp_Application::createActions() // import Python module that manages SALOME plugins PyGILState_STATE gstate = PyGILState_Ensure(); PyObject* pluginsmanager=PyImport_ImportModule((char*)"salome_pluginsmanager"); - PyObject* res=PyObject_CallMethod( pluginsmanager, (char*)"initialize", (char*)"isss",0,"salome","Tools","Plugins"); + PyObject* res=PyObject_CallMethod( pluginsmanager, (char*)"initialize", (char*)"isss",0,"salome",tr("MEN_DESK_TOOLS2").toStdString().c_str(),tr("MEN_DESK_PLUGINS").toStdString().c_str()); if(res==NULL) PyErr_Print(); Py_XDECREF(res); diff --git a/src/SalomeApp/resources/SalomeApp_msg_en.ts b/src/SalomeApp/resources/SalomeApp_msg_en.ts index 2e04655b5..ef0226136 100644 --- a/src/SalomeApp/resources/SalomeApp_msg_en.ts +++ b/src/SalomeApp/resources/SalomeApp_msg_en.ts @@ -244,6 +244,14 @@ Do you want to reload it ? MEN_DESK_TOOLS &Tools + + MEN_DESK_TOOLS2 + Tools + + + MEN_DESK_PLUGINS + Plugins + TOT_DESK_FILE_DUMP_STUDY Dump study diff --git a/src/SalomeApp/resources/SalomeApp_msg_fr.ts b/src/SalomeApp/resources/SalomeApp_msg_fr.ts index d58b2386b..3d8b534ba 100755 --- a/src/SalomeApp/resources/SalomeApp_msg_fr.ts +++ b/src/SalomeApp/resources/SalomeApp_msg_fr.ts @@ -244,6 +244,14 @@ Voulez-vous le recharger ? MEN_DESK_TOOLS &Outils + + MEN_DESK_TOOLS2 + Outils + + + MEN_DESK_PLUGINS + Extensions + TOT_DESK_FILE_DUMP_STUDY Générer le script de l'étude -- 2.39.2