From 2b3bf05c2bc371cc0b1d5450c815852829b3db91 Mon Sep 17 00:00:00 2001 From: jfa Date: Thu, 5 Sep 2013 07:04:24 +0000 Subject: [PATCH] Improvements for HYDRO module: Localize status bar messages. --- resources/GEOMActions.xml | 8 ++++---- src/GEOMGUI/GeometryGUI.cxx | 5 ++++- 2 files changed, 8 insertions(+), 5 deletions(-) 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*/, -- 2.39.2