]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
Make pluginmanager works in other language than english
authorgdd <gdd>
Wed, 10 Nov 2010 11:26:29 +0000 (11:26 +0000)
committergdd <gdd>
Wed, 10 Nov 2010 11:26:29 +0000 (11:26 +0000)
src/SalomeApp/SalomeApp_Application.cxx
src/SalomeApp/resources/SalomeApp_msg_en.ts
src/SalomeApp/resources/SalomeApp_msg_fr.ts

index 3adecffd4fb3d05baa4f45aeef886bd6570d83b0..cb25d3bda7cc0f08ad1b6274313cae3b6a9936b9 100644 (file)
@@ -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);
index 2e04655b54a29617f8bb7a18768c75130f37b540..ef02261369be54183853938c19f729fdc6e74e4b 100644 (file)
@@ -244,6 +244,14 @@ Do you want to reload it ?</translation>
         <source>MEN_DESK_TOOLS</source>
         <translation>&amp;Tools</translation>
     </message>
+    <message>
+        <source>MEN_DESK_TOOLS2</source>
+        <translation>Tools</translation>
+    </message>
+    <message>
+        <source>MEN_DESK_PLUGINS</source>
+        <translation>Plugins</translation>
+    </message>
     <message>
         <source>TOT_DESK_FILE_DUMP_STUDY</source>
         <translation>Dump study</translation>
index d58b2386bf0632689f1f35c5a33d87a781978937..3d8b534ba50606c1eedb6e4b9317bc3c8c63cd0b 100755 (executable)
@@ -244,6 +244,14 @@ Voulez-vous le recharger ?</translation>
         <source>MEN_DESK_TOOLS</source>
         <translation>&amp;Outils</translation>
     </message>
+    <message>
+        <source>MEN_DESK_TOOLS2</source>
+        <translation>Outils</translation>
+    </message>
+    <message>
+        <source>MEN_DESK_PLUGINS</source>
+        <translation>Extensions</translation>
+    </message>
     <message>
         <source>TOT_DESK_FILE_DUMP_STUDY</source>
         <translation>Générer le script de l&apos;étude</translation>