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" icon="pipetshape.png"
menu="NEW_ENTITY/PRIMITIVES/PIPETSHAPE" menu="NEW_ENTITY/PRIMITIVES/PIPETSHAPE"
tooltip="PRIMITIVES/PIPETSHAPE" tooltip="PRIMITIVES/PIPETSHAPE"
status-bar="Create new Pipe TShape object"> status-bar="PIPETSHAPE">
</action> </action>
<action label="DividedDisk" <action label="DividedDisk"
icon="divided_disk.png" icon="divided_disk.png"
menu="NEW_ENTITY/BLOCKS/DIVIDEDDISK" menu="NEW_ENTITY/BLOCKS/DIVIDEDDISK"
tooltip="BLOCKS/DIVIDEDDISK" tooltip="BLOCKS/DIVIDEDDISK"
status-bar="Divided Disk"> status-bar="DIVIDEDDISK">
</action> </action>
<action label="DividedCylinder" <action label="DividedCylinder"
icon="dividedcylinder.png" icon="dividedcylinder.png"
menu="NEW_ENTITY/BLOCKS/DIVIDEDCYLINDER" menu="NEW_ENTITY/BLOCKS/DIVIDEDCYLINDER"
tooltip="BLOCKS/DIVIDEDCYLINDER" tooltip="BLOCKS/DIVIDEDCYLINDER"
status-bar="Divided Cylinder"> status-bar="DIVIDEDCYLINDER">
</action> </action>
<action label="SmoothingSurface" <action label="SmoothingSurface"
icon="smoothingsurface.png" icon="smoothingsurface.png"
menu="NEW_ENTITY/ADVANCED/SMOOTHINGSURFACE" menu="NEW_ENTITY/ADVANCED/SMOOTHINGSURFACE"
tooltip="ADVANCED/SMOOTHINGSURFACE" tooltip="ADVANCED/SMOOTHINGSURFACE"
status-bar="Smoothing Surface"> status-bar="SMOOTHINGSURFACE">
</action> </action>
</actions> </actions>
</geom-plugin> </geom-plugin>

View File

@ -1634,11 +1634,14 @@ void GeometryGUI::addPluginActions()
actionTool = actionTool.toUpper().prepend("TOP_"); actionTool = actionTool.toUpper().prepend("TOP_");
stools.removeLast(); stools.removeLast();
QString actionStat = anActionData.myStatusBar;
actionStat = actionStat.toUpper().prepend("STB_");
createAction(id, // ~ anActionData.myLabel createAction(id, // ~ anActionData.myLabel
tr(actionTool.toLatin1().constData()), tr(actionTool.toLatin1().constData()),
icon, icon,
tr(actionName.toLatin1().constData()), tr(actionName.toLatin1().constData()),
anActionData.myStatusBar.toLatin1().constData(), tr(actionStat.toLatin1().constData()),
0 /*accel*/, 0 /*accel*/,
application()->desktop(), application()->desktop(),
false /*toggle*/, false /*toggle*/,