Improvements for HYDRO module: Localize status bar messages.

This commit is contained in:
jfa 2013-09-05 07:04:24 +00:00
parent 3474e51a9b
commit 2b3bf05c2b
2 changed files with 8 additions and 5 deletions

View File

@ -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">
</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>

View 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*/,