From: gdd Date: Wed, 10 Nov 2010 11:26:29 +0000 (+0000) Subject: Make pluginmanager works in other language than english X-Git-Tag: V5_1_5rc2~2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=1a5ef21ab643dcfc293c79e22089b0f5d42e174b;p=modules%2Fgui.git Make pluginmanager works in other language than english --- 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