]> SALOME platform Git repositories - modules/geom.git/commitdiff
Salome HOME
Improvements for HYDRO module: Localize status bar messages.
authorjfa <jfa@opencascade.com>
Thu, 5 Sep 2013 07:04:24 +0000 (07:04 +0000)
committerjfa <jfa@opencascade.com>
Thu, 5 Sep 2013 07:04:24 +0000 (07:04 +0000)
resources/GEOMActions.xml
src/GEOMGUI/GeometryGUI.cxx

index a59fcbbc29c7de39240d6107eb2cab632c2f598a..d11ee3762d7f07c01063dc3e52da7888c7ad4fa7 100644 (file)
               icon="pipetshape.png"
               menu="NEW_ENTITY/PRIMITIVES/PIPETSHAPE"
               tooltip="PRIMITIVES/PIPETSHAPE"
-              status-bar="Create new Pipe TShape object">
+              status-bar="PIPETSHAPE">
       </action>
       <action label="DividedDisk"
               icon="divided_disk.png"
               menu="NEW_ENTITY/BLOCKS/DIVIDEDDISK"
               tooltip="BLOCKS/DIVIDEDDISK"
-              status-bar="Divided Disk">
+              status-bar="DIVIDEDDISK">
       </action>
       <action label="DividedCylinder"
               icon="dividedcylinder.png"
               menu="NEW_ENTITY/BLOCKS/DIVIDEDCYLINDER"
               tooltip="BLOCKS/DIVIDEDCYLINDER"
-              status-bar="Divided Cylinder">
+              status-bar="DIVIDEDCYLINDER">
       </action>
       <action label="SmoothingSurface"
               icon="smoothingsurface.png"
               menu="NEW_ENTITY/ADVANCED/SMOOTHINGSURFACE"
               tooltip="ADVANCED/SMOOTHINGSURFACE"
-              status-bar="Smoothing Surface">
+              status-bar="SMOOTHINGSURFACE">
       </action>
     </actions>
   </geom-plugin>
index c18df18ad5943b219c5702c657dc6b80dc22f404..c11a4d34d5f4a80b23bc4156d57786c6a609b16f 100644 (file)
@@ -1634,11 +1634,14 @@ void GeometryGUI::addPluginActions()
           actionTool = actionTool.toUpper().prepend("TOP_");
           stools.removeLast();
 
+          QString actionStat = anActionData.myStatusBar;
+          actionStat = actionStat.toUpper().prepend("STB_");
+
           createAction(id, // ~ anActionData.myLabel
                        tr(actionTool.toLatin1().constData()),
                        icon,
                        tr(actionName.toLatin1().constData()),
-                       anActionData.myStatusBar.toLatin1().constData(),
+                       tr(actionStat.toLatin1().constData()),
                        0 /*accel*/,
                        application()->desktop(),
                        false /*toggle*/,