From: jfa Date: Thu, 5 Sep 2013 07:04:24 +0000 (+0000) Subject: Improvements for HYDRO module: Localize status bar messages. X-Git-Tag: BR_hydro_v_0_3_1~140 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=2b3bf05c2bc371cc0b1d5450c815852829b3db91;p=modules%2Fgeom.git Improvements for HYDRO module: Localize status bar messages. --- diff --git a/resources/GEOMActions.xml b/resources/GEOMActions.xml index a59fcbbc2..d11ee3762 100644 --- a/resources/GEOMActions.xml +++ b/resources/GEOMActions.xml @@ -36,25 +36,25 @@ icon="pipetshape.png" menu="NEW_ENTITY/PRIMITIVES/PIPETSHAPE" tooltip="PRIMITIVES/PIPETSHAPE" - status-bar="Create new Pipe TShape object"> + status-bar="PIPETSHAPE"> + status-bar="DIVIDEDDISK"> + status-bar="DIVIDEDCYLINDER"> + status-bar="SMOOTHINGSURFACE"> diff --git a/src/GEOMGUI/GeometryGUI.cxx b/src/GEOMGUI/GeometryGUI.cxx index c18df18ad..c11a4d34d 100644 --- a/src/GEOMGUI/GeometryGUI.cxx +++ b/src/GEOMGUI/GeometryGUI.cxx @@ -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*/,