]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
Update resources for viewers commands
authorvsr <vsr@opencascade.com>
Thu, 19 Apr 2012 15:24:07 +0000 (15:24 +0000)
committervsr <vsr@opencascade.com>
Thu, 19 Apr 2012 15:24:07 +0000 (15:24 +0000)
src/LightApp/LightApp_Application.cxx
src/LightApp/resources/LightApp_msg_en.ts
src/LightApp/resources/LightApp_msg_fr.ts

index 383632ac3006bfd5b3cd0c00b63db632c5e6fa67..8880510ceb7385349396b8f42e4c36a3dc6fb176 100644 (file)
@@ -466,10 +466,18 @@ void LightApp_Application::createActionForViewer( const int id,
                                                   const QString& suffix,
                                                   const int accel )
 {
-  QAction* a = createAction( id, tr( QString( "NEW_WINDOW_%1" ).arg( suffix ).toLatin1().constData() ), QIcon(),
-                             tr( QString( "NEW_WINDOW_%1" ).arg( suffix ).toLatin1().constData() ),
-                             tr( QString( "NEW_WINDOW_%1" ).arg( suffix ).toLatin1().constData() ),
-                             accel, desktop(), false, this, SLOT( onNewWindow() ) );
+  QString vtlt = tr( QString( "NEW_WINDOW_%1" ).arg( suffix ).toLatin1().constData() );
+  QString tip = tr( "CREATING_NEW_WINDOW" ).arg( vtlt.remove( "&" ) );
+  QAction* a = createAction( id,                      // menu action id
+                            tip,                     // status tip
+                            QIcon(),                 // icon
+                            vtlt,                    // menu text
+                             tip,                     // tooltip
+                             accel,                   // shortcut
+                            desktop(),               // parent
+                             false,                   // toggle flag
+                            this,                    // receiver
+                             SLOT( onNewWindow() ) ); // slot
   createMenu( a, parentId, -1 );
 }
 
index 7d86cdd6812c21f4e102d0643747f2060be472d8..3c108d764b57d3bd35ff8d30257a66f9406d052e 100644 (file)
@@ -164,7 +164,7 @@ The changes will be applied on the next application session.</translation>
     </message>
     <message>
         <source>PREF_GROUP_VTKVIEWER</source>
-        <translation>VTK Viewer 3d</translation>
+        <translation>VTK 3D Viewer</translation>
     </message>
     <message>
         <source>PREF_STORE_POS</source>
@@ -492,27 +492,31 @@ The changes will be applied on the next application session.</translation>
     </message>
     <message>
         <source>NEW_WINDOW_0</source>
-        <translation>&amp;GL view</translation>
+        <translation>&amp;GL 2D view</translation>
     </message>
     <message>
         <source>NEW_WINDOW_1</source>
-        <translation>&amp;Plot2d view</translation>
+        <translation>&amp;Plot 2D view</translation>
     </message>
     <message>
         <source>NEW_WINDOW_2</source>
-        <translation>&amp;OCC view</translation>
+        <translation>&amp;OCC 3D view</translation>
     </message>
     <message>
         <source>NEW_WINDOW_3</source>
-        <translation>VT&amp;K view</translation>
+        <translation>VT&amp;K 3D view</translation>
     </message>
     <message>
         <source>NEW_WINDOW_4</source>
-        <translation>&amp;QxGraph view</translation>
+        <translation>&amp;QxGraph 2D view</translation>
     </message>
     <message>
         <source>NEW_WINDOW_5</source>
-        <translation>Qx&amp;Scene view</translation>
+        <translation>Qx&amp;Scene 2D view</translation>
+    </message>
+    <message>
+        <source>CREATING_NEW_WINDOW</source>
+        <translation>Create new %1</translation>
     </message>
     <message>
         <source>OBJ_BROWSER_NAME</source>
@@ -624,7 +628,7 @@ The changes will be applied on the next application session.</translation>
     </message>
     <message>
         <source>PREF_GROUP_OCCVIEWER</source>
-        <translation>OCC Viewer 3d</translation>
+        <translation>OCC 3D Viewer</translation>
     </message>
     <message>
         <source>PREF_LOGARITHMIC</source>
@@ -668,7 +672,7 @@ The changes will be applied on the next application session.</translation>
     </message>
     <message>
         <source>PREF_GROUP_PLOT2DVIEWER</source>
-        <translation>Plot2d Viewer</translation>
+        <translation>Plot 2D Viewer</translation>
     </message>
     <message>
         <source>PREF_DEVIATION_COLOR</source>
index 69ad041c5e8820420e6d4cf10ccca1506993b160..8fddb6e4d2db6bb2a6480489e02b6bd1ade9206a 100755 (executable)
@@ -514,6 +514,10 @@ Les modifications seront appliquées à la prochaine session.</translation>
         <source>NEW_WINDOW_5</source>
         <translation>Vue Qx&amp;Scene</translation>
     </message>
+    <message>
+        <source>CREATING_NEW_WINDOW</source>
+        <translation>Créer un nouveau %1</translation>
+    </message>
     <message>
         <source>OBJ_BROWSER_NAME</source>
         <translation>Objet</translation>