From: vsr Date: Thu, 19 Apr 2012 15:24:07 +0000 (+0000) Subject: Update resources for viewers commands X-Git-Tag: TRIPOLI_323~11 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=b93f2919190b064c6774591989702ecc27c65c7f;p=modules%2Fgui.git Update resources for viewers commands --- diff --git a/src/LightApp/LightApp_Application.cxx b/src/LightApp/LightApp_Application.cxx index 383632ac3..8880510ce 100644 --- a/src/LightApp/LightApp_Application.cxx +++ b/src/LightApp/LightApp_Application.cxx @@ -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 ); } diff --git a/src/LightApp/resources/LightApp_msg_en.ts b/src/LightApp/resources/LightApp_msg_en.ts index 7d86cdd68..3c108d764 100644 --- a/src/LightApp/resources/LightApp_msg_en.ts +++ b/src/LightApp/resources/LightApp_msg_en.ts @@ -164,7 +164,7 @@ The changes will be applied on the next application session. PREF_GROUP_VTKVIEWER - VTK Viewer 3d + VTK 3D Viewer PREF_STORE_POS @@ -492,27 +492,31 @@ The changes will be applied on the next application session. NEW_WINDOW_0 - &GL view + &GL 2D view NEW_WINDOW_1 - &Plot2d view + &Plot 2D view NEW_WINDOW_2 - &OCC view + &OCC 3D view NEW_WINDOW_3 - VT&K view + VT&K 3D view NEW_WINDOW_4 - &QxGraph view + &QxGraph 2D view NEW_WINDOW_5 - Qx&Scene view + Qx&Scene 2D view + + + CREATING_NEW_WINDOW + Create new %1 OBJ_BROWSER_NAME @@ -624,7 +628,7 @@ The changes will be applied on the next application session. PREF_GROUP_OCCVIEWER - OCC Viewer 3d + OCC 3D Viewer PREF_LOGARITHMIC @@ -668,7 +672,7 @@ The changes will be applied on the next application session. PREF_GROUP_PLOT2DVIEWER - Plot2d Viewer + Plot 2D Viewer PREF_DEVIATION_COLOR diff --git a/src/LightApp/resources/LightApp_msg_fr.ts b/src/LightApp/resources/LightApp_msg_fr.ts index 69ad041c5..8fddb6e4d 100755 --- a/src/LightApp/resources/LightApp_msg_fr.ts +++ b/src/LightApp/resources/LightApp_msg_fr.ts @@ -514,6 +514,10 @@ Les modifications seront appliquées à la prochaine session. NEW_WINDOW_5 Vue Qx&Scene + + CREATING_NEW_WINDOW + Créer un nouveau %1 + OBJ_BROWSER_NAME Objet