Surface: Update UI strings for consistency

This commit is contained in:
Max Wilfinger
2025-06-29 11:38:18 +02:00
committed by Chris Hennes
parent 9afee61b97
commit e3dce25e00
13 changed files with 42 additions and 43 deletions

View File

@@ -71,7 +71,7 @@ PyMOD_INIT_FUNC(Surface)
}
PyObject* mod = Surface::initModule();
Base::Console().log("Loading Surface module... done\n");
Base::Console().log("Loading Surface module done\n");
Base::Interpreter().addType(&Surface::BlendPointPy::Type, mod, "BlendPoint");
Base::Interpreter().addType(&Surface::BlendCurvePy::Type, mod, "BlendCurve");

View File

@@ -200,7 +200,7 @@ void Filling::addConstraints(BRepFill_Filling& builder,
}
}
else {
Standard_Failure::Raise("Number of links doesn't match with number of orders");
Standard_Failure::Raise("Number of links does not match with number of orders");
}
}
@@ -231,7 +231,7 @@ void Filling::addConstraints(BRepFill_Filling& builder,
}
}
else {
Standard_Failure::Raise("Number of links doesn't match with number of orders");
Standard_Failure::Raise("Number of links does not match with number of orders");
}
}

View File

@@ -87,6 +87,6 @@ PyMOD_INIT_FUNC(SurfaceGui)
// clang-format on
PyObject* mod = SurfaceGui::initModule();
Base::Console().log("Loading GUI of Surface module... done\n");
Base::Console().log("Loading GUI of Surface module done\n");
PyMOD_Return(mod);
}

View File

@@ -11,13 +11,13 @@
</rect>
</property>
<property name="windowTitle">
<string>Blending curve</string>
<string>Blend Curve</string>
</property>
<layout class="QGridLayout" name="gridLayout_2">
<item row="0" column="0">
<widget class="QGroupBox" name="groupBox">
<property name="title">
<string>Start edge</string>
<string>Start Edge</string>
</property>
<layout class="QGridLayout" name="gridLayout_3">
<item row="0" column="0">
@@ -110,7 +110,7 @@
<item row="1" column="0">
<widget class="QGroupBox" name="groupBox_2">
<property name="title">
<string>End edge</string>
<string>End Edge</string>
</property>
<layout class="QGridLayout" name="gridLayout">
<item row="0" column="0">

View File

@@ -53,9 +53,8 @@ CmdSurfaceCut::CmdSurfaceCut()
{
sAppModule = "Surface";
sGroup = QT_TR_NOOP("Surface");
sMenuText = QT_TR_NOOP("Surface Cut function");
sToolTipText = QT_TR_NOOP("Cuts a shape with another Shape.\n"
"It returns a modified version of the first shape");
sMenuText = QT_TR_NOOP("Surface Cut Function");
sToolTipText = QT_TR_NOOP("Cuts a shape with another shape");
sWhatsThis = "Surface_Cut";
sStatusTip = sToolTipText;
sPixmap = "Surface_Cut";
@@ -112,7 +111,7 @@ CmdSurfaceFilling::CmdSurfaceFilling()
{
sAppModule = "Surface";
sGroup = QT_TR_NOOP("Surface");
sMenuText = QT_TR_NOOP("Filling...");
sMenuText = QT_TR_NOOP("Filling");
sToolTipText = QT_TR_NOOP("Creates a surface from a series of picked boundary edges.\n"
"Additionally, the surface may be constrained by non-boundary edges\n"
"and non-boundary vertices.");
@@ -146,8 +145,8 @@ CmdSurfaceGeomFillSurface::CmdSurfaceGeomFillSurface()
{
sAppModule = "Surface";
sGroup = QT_TR_NOOP("Surface");
sMenuText = QT_TR_NOOP("Fill boundary curves");
sToolTipText = QT_TR_NOOP("Creates a surface from two, three or four boundary edges.");
sMenuText = QT_TR_NOOP("Fill Boundary Curves");
sToolTipText = QT_TR_NOOP("Creates a surface from 2, 3, or 4 boundary edges");
sWhatsThis = "Surface_GeomFillSurface";
sStatusTip = sToolTipText;
sPixmap = "Surface_GeomFillSurface";
@@ -178,9 +177,9 @@ CmdSurfaceCurveOnMesh::CmdSurfaceCurveOnMesh()
{
sAppModule = "MeshPart";
sGroup = QT_TR_NOOP("Surface");
sMenuText = QT_TR_NOOP("Curve on mesh...");
sMenuText = QT_TR_NOOP("Curve on Mesh");
sToolTipText = QT_TR_NOOP("Creates an approximated curve on top of a mesh.\n"
"This command only works with a 'mesh' object.");
"This command only works with a mesh object.");
sWhatsThis = "Surface_CurveOnMesh";
sStatusTip = sToolTipText;
sPixmap = "Surface_CurveOnMesh";
@@ -217,7 +216,7 @@ CmdBlendCurve::CmdBlendCurve()
sAppModule = "Surface";
sGroup = QT_TR_NOOP("Surface");
sMenuText = QT_TR_NOOP("Blend Curve");
sToolTipText = QT_TR_NOOP("Join two edges with high continuity");
sToolTipText = QT_TR_NOOP("Joins 2 edges with continuity");
sStatusTip = sToolTipText;
sWhatsThis = "BlendCurve";
sPixmap = "Surface_BlendCurve";
@@ -276,9 +275,9 @@ CmdSurfaceExtendFace::CmdSurfaceExtendFace()
{
sAppModule = "Surface";
sGroup = QT_TR_NOOP("Surface");
sMenuText = QT_TR_NOOP("Extend face");
sToolTipText = QT_TR_NOOP("Extrapolates the selected face or surface at its boundaries\n"
"with its local U and V parameters.");
sMenuText = QT_TR_NOOP("Extend Face");
sToolTipText = QT_TR_NOOP("Extrapolates the selected face or surface at its boundaries with "
"its local U and V parameters");
sWhatsThis = "Surface_ExtendFace";
sStatusTip = sToolTipText;
sPixmap = "Surface_ExtendFace";
@@ -323,8 +322,8 @@ CmdSurfaceSections::CmdSurfaceSections()
{
sAppModule = "Surface";
sGroup = QT_TR_NOOP("Surface");
sMenuText = QT_TR_NOOP("Sections...");
sToolTipText = QT_TR_NOOP("Creates a surface from a series of sectional edges.");
sMenuText = QT_TR_NOOP("Sections");
sToolTipText = QT_TR_NOOP("Creates a surface from a series of sectional edges");
sStatusTip = sToolTipText;
sWhatsThis = "Surface_Sections";
sPixmap = "Surface_Sections";

View File

@@ -62,7 +62,7 @@ namespace SurfaceGui
void ViewProviderFilling::setupContextMenu(QMenu* menu, QObject* receiver, const char* member)
{
QAction* act;
act = menu->addAction(QObject::tr("Edit filling"), receiver, member);
act = menu->addAction(QObject::tr("Edit Filling"), receiver, member);
act->setData(QVariant((int)ViewProvider::Default));
PartGui::ViewProviderSpline::setupContextMenu(menu, receiver, member);
}

View File

@@ -25,7 +25,7 @@
<item>
<widget class="QPushButton" name="buttonInitFace">
<property name="text">
<string>Support surface</string>
<string>Support Surface</string>
</property>
</widget>
</item>
@@ -41,10 +41,10 @@
<item row="2" column="0">
<widget class="QGroupBox" name="groupBox">
<property name="toolTip">
<string>Add the edges that will limit the surface.</string>
<string>Edges that will limit the surface</string>
</property>
<property name="title">
<string>Boundary edges</string>
<string>Boundary Edges</string>
</property>
<layout class="QGridLayout" name="gridLayout">
<item row="0" column="0" colspan="3">
@@ -108,7 +108,7 @@
</sizepolicy>
</property>
<property name="text">
<string>Drag the items to reorder the list.</string>
<string>Drag the items to reorder the list</string>
</property>
</widget>
</item>
@@ -128,7 +128,7 @@
</sizepolicy>
</property>
<property name="text">
<string>Faces:</string>
<string>Faces</string>
</property>
</widget>
</item>
@@ -148,7 +148,7 @@
</sizepolicy>
</property>
<property name="text">
<string>Continuity:</string>
<string>Continuity</string>
</property>
</widget>
</item>

View File

@@ -17,17 +17,17 @@
</sizepolicy>
</property>
<property name="windowTitle">
<string>Edge constraints</string>
<string>Edge Constraints</string>
</property>
<layout class="QGridLayout" name="gridLayout_2">
<item row="0" column="0">
<widget class="QGroupBox" name="groupBox">
<property name="toolTip">
<string>Add edges that will be used to constrain the surface,
that is, the surface will be forced to pass through these edges.</string>
<string>Edges that will be used to constrain the surface,
that is, the surface will be forced to pass through these edges</string>
</property>
<property name="title">
<string>Non-boundary edges</string>
<string>Non-Boundary Edges</string>
</property>
<layout class="QGridLayout" name="gridLayout">
<item row="0" column="0" colspan="3">
@@ -91,7 +91,7 @@ that is, the surface will be forced to pass through these edges.</string>
</sizepolicy>
</property>
<property name="text">
<string>Faces:</string>
<string>Faces</string>
</property>
</widget>
</item>
@@ -111,7 +111,7 @@ that is, the surface will be forced to pass through these edges.</string>
</sizepolicy>
</property>
<property name="text">
<string>Continuity:</string>
<string>Continuity</string>
</property>
</widget>
</item>

View File

@@ -11,17 +11,17 @@
</rect>
</property>
<property name="windowTitle">
<string>Vertex constraints</string>
<string>Vertex Constraints</string>
</property>
<layout class="QGridLayout" name="gridLayout_2">
<item row="0" column="0">
<widget class="QGroupBox" name="groupBox">
<property name="toolTip">
<string>Add vertices that will be used to constrain the surface,
<string>Vertices that will be used to constrain the surface,
that is, the surface will be forced to pass through these points.</string>
</property>
<property name="title">
<string>Non-boundary vertices</string>
<string>Non-Boundary Vertices</string>
</property>
<layout class="QGridLayout" name="gridLayout">
<item row="0" column="0">

View File

@@ -60,7 +60,7 @@ void ViewProviderGeomFillSurface::setupContextMenu(QMenu* menu,
const char* member)
{
QAction* act;
act = menu->addAction(QObject::tr("Edit filling"), receiver, member);
act = menu->addAction(QObject::tr("Edit Filling"), receiver, member);
act->setData(QVariant((int)ViewProvider::Default));
PartGui::ViewProviderSpline::setupContextMenu(menu, receiver, member);
}

View File

@@ -23,7 +23,7 @@
<item row="0" column="0">
<widget class="QGroupBox" name="fillTypes">
<property name="title">
<string>Fill type:</string>
<string>Fill Type</string>
</property>
<layout class="QGridLayout">
<property name="margin">

View File

@@ -57,7 +57,7 @@ namespace SurfaceGui
void ViewProviderSections::setupContextMenu(QMenu* menu, QObject* receiver, const char* member)
{
QAction* act;
act = menu->addAction(QObject::tr("Edit sections"), receiver, member);
act = menu->addAction(QObject::tr("Edit Sections"), receiver, member);
act->setData(QVariant((int)ViewProvider::Default));
PartGui::ViewProviderSpline::setupContextMenu(menu, receiver, member);
}

View File

@@ -11,17 +11,17 @@
</rect>
</property>
<property name="windowTitle">
<string>Sectional edges</string>
<string>Sectional Edges</string>
</property>
<layout class="QGridLayout" name="gridLayout_2">
<item row="0" column="0">
<widget class="QGroupBox" name="groupBox">
<property name="toolTip">
<string>Add the edges that will be sectional cuts of the surface,
<string>Edges that will be sectional cuts of the surface,
that is, the surface will be forced to pass through these edges.</string>
</property>
<property name="title">
<string>Sectional edges</string>
<string>Sectional Edges</string>
</property>
<layout class="QGridLayout" name="gridLayout">
<item row="0" column="0" colspan="2">