Fix missed strings for UI consistency
Fix ellipsis rendering
This commit is contained in:
committed by
Chris Hennes
parent
2eeff96e99
commit
1850c5dc0f
@@ -821,7 +821,7 @@ class ViewProviderBuildingPart:
|
||||
menu.addAction(actionActivate)
|
||||
|
||||
actionSetWorkingPlane = QtGui.QAction(QtGui.QIcon(":/icons/Draft_SelectPlane.svg"),
|
||||
translate("Arch", "Set working plane"),
|
||||
translate("Arch", "Set Working Plane"),
|
||||
menu)
|
||||
QtCore.QObject.connect(actionSetWorkingPlane,
|
||||
QtCore.SIGNAL("triggered()"),
|
||||
@@ -829,7 +829,7 @@ class ViewProviderBuildingPart:
|
||||
menu.addAction(actionSetWorkingPlane)
|
||||
|
||||
actionWriteCamera = QtGui.QAction(QtGui.QIcon(":/icons/Draft_SelectPlane.svg"),
|
||||
translate("Arch", "Write camera position"),
|
||||
translate("Arch", "Write Camera Position"),
|
||||
menu)
|
||||
QtCore.QObject.connect(actionWriteCamera,
|
||||
QtCore.SIGNAL("triggered()"),
|
||||
@@ -843,14 +843,14 @@ class ViewProviderBuildingPart:
|
||||
self.createGroup)
|
||||
menu.addAction(actionCreateGroup)
|
||||
|
||||
actionReorder = QtGui.QAction(translate("Arch", "Reorder children alphabetically"),
|
||||
actionReorder = QtGui.QAction(translate("Arch", "Reorder Children Alphabetically"),
|
||||
menu)
|
||||
QtCore.QObject.connect(actionReorder,
|
||||
QtCore.SIGNAL("triggered()"),
|
||||
self.reorder)
|
||||
menu.addAction(actionReorder)
|
||||
|
||||
actionCloneUp = QtGui.QAction(translate("Arch", "Clone level up"),
|
||||
actionCloneUp = QtGui.QAction(translate("Arch", "Clone Level Up"),
|
||||
menu)
|
||||
QtCore.QObject.connect(actionCloneUp,
|
||||
QtCore.SIGNAL("triggered()"),
|
||||
|
||||
@@ -1326,34 +1326,34 @@ class StructureTaskPanel(ArchComponent.ComponentTaskPanel):
|
||||
|
||||
self.resetButton = QtGui.QPushButton(self.nodes_widget)
|
||||
self.resetButton.setIcon(QtGui.QIcon(":/icons/edit-undo.svg"))
|
||||
self.resetButton.setText(QtGui.QApplication.translate("Arch", "Reset nodes", None))
|
||||
self.resetButton.setText(QtGui.QApplication.translate("Arch", "Reset Nodes", None))
|
||||
|
||||
lay.addWidget(self.resetButton)
|
||||
QtCore.QObject.connect(self.resetButton, QtCore.SIGNAL("clicked()"), self.resetNodes)
|
||||
|
||||
self.editButton = QtGui.QPushButton(self.nodes_widget)
|
||||
self.editButton.setIcon(QtGui.QIcon(":/icons/Draft_Edit.svg"))
|
||||
self.editButton.setText(QtGui.QApplication.translate("Arch", "Edit nodes", None))
|
||||
self.editButton.setText(QtGui.QApplication.translate("Arch", "Edit Nodes", None))
|
||||
lay.addWidget(self.editButton)
|
||||
QtCore.QObject.connect(self.editButton, QtCore.SIGNAL("clicked()"), self.editNodes)
|
||||
|
||||
self.extendButton = QtGui.QPushButton(self.nodes_widget)
|
||||
self.extendButton.setIcon(QtGui.QIcon(":/icons/Snap_Perpendicular.svg"))
|
||||
self.extendButton.setText(QtGui.QApplication.translate("Arch", "Extend nodes", None))
|
||||
self.extendButton.setText(QtGui.QApplication.translate("Arch", "Extend Nodes", None))
|
||||
self.extendButton.setToolTip(QtGui.QApplication.translate("Arch", "Extends the nodes of this element to reach the nodes of another element", None))
|
||||
lay.addWidget(self.extendButton)
|
||||
QtCore.QObject.connect(self.extendButton, QtCore.SIGNAL("clicked()"), self.extendNodes)
|
||||
|
||||
self.connectButton = QtGui.QPushButton(self.nodes_widget)
|
||||
self.connectButton.setIcon(QtGui.QIcon(":/icons/Snap_Intersection.svg"))
|
||||
self.connectButton.setText(QtGui.QApplication.translate("Arch", "Connect nodes", None))
|
||||
self.connectButton.setText(QtGui.QApplication.translate("Arch", "Connect Nodes", None))
|
||||
self.connectButton.setToolTip(QtGui.QApplication.translate("Arch", "Connects nodes of this element with the nodes of another element", None))
|
||||
lay.addWidget(self.connectButton)
|
||||
QtCore.QObject.connect(self.connectButton, QtCore.SIGNAL("clicked()"), self.connectNodes)
|
||||
|
||||
self.toggleButton = QtGui.QPushButton(self.nodes_widget)
|
||||
self.toggleButton.setIcon(QtGui.QIcon(":/icons/dagViewVisible.svg"))
|
||||
self.toggleButton.setText(QtGui.QApplication.translate("Arch", "Toggle all nodes", None))
|
||||
self.toggleButton.setText(QtGui.QApplication.translate("Arch", "Toggle All Nodes", None))
|
||||
self.toggleButton.setToolTip(QtGui.QApplication.translate("Arch", "Toggles all structural nodes of the document on/off", None))
|
||||
lay.addWidget(self.toggleButton)
|
||||
QtCore.QObject.connect(self.toggleButton, QtCore.SIGNAL("clicked()"), self.toggleNodes)
|
||||
@@ -1365,7 +1365,7 @@ class StructureTaskPanel(ArchComponent.ComponentTaskPanel):
|
||||
self.selectToolButton = QtGui.QPushButton(self.extrusion_widget)
|
||||
self.selectToolButton.setIcon(QtGui.QIcon())
|
||||
self.selectToolButton.setText(QtGui.QApplication.translate("Arch", "Select Tool", None))
|
||||
self.selectToolButton.setToolTip(QtGui.QApplication.translate("Arch", "Select object or edges to be used as a Tool (extrusion path)", None))
|
||||
self.selectToolButton.setToolTip(QtGui.QApplication.translate("Arch", "Selects object or edges to be used as a tool (extrusion path)", None))
|
||||
lay.addWidget(self.selectToolButton)
|
||||
QtCore.QObject.connect(self.selectToolButton, QtCore.SIGNAL("clicked()"), self.setSelectionFromTool)
|
||||
|
||||
|
||||
@@ -56,7 +56,7 @@
|
||||
<string>The settings below can be saved as a preset. Presets are stored as .txt files in the local FreeCAD user folder</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Save preset</string>
|
||||
<string>Save Preset</string>
|
||||
</property>
|
||||
<property name="icon">
|
||||
<iconset theme="gtk-save">
|
||||
|
||||
@@ -190,7 +190,7 @@ if crashes occur when multiple cores are set.</string>
|
||||
</item>
|
||||
<item>
|
||||
<property name="text">
|
||||
<string>Do not import Arch objects</string>
|
||||
<string>Do not import BIM objects</string>
|
||||
</property>
|
||||
</item>
|
||||
</widget>
|
||||
|
||||
@@ -294,7 +294,7 @@ class Arch_ToggleIfcBrepFlag:
|
||||
|
||||
def GetResources(self):
|
||||
return {'Pixmap' : 'Arch_ToggleIfcBrepFlag',
|
||||
'MenuText': QT_TRANSLATE_NOOP("Arch_ToggleIfcBrepFlag","Toggle IFC B-rep Flag"),
|
||||
'MenuText': QT_TRANSLATE_NOOP("Arch_ToggleIfcBrepFlag","Toggle IFC B-Rep Flag"),
|
||||
'ToolTip': QT_TRANSLATE_NOOP("Arch_ToggleIfcBrepFlag","Forces an object to be exported as B-rep or not")}
|
||||
|
||||
def IsActive(self):
|
||||
|
||||
@@ -40,7 +40,7 @@ class BIM_ProjectManager:
|
||||
|
||||
return {
|
||||
"Pixmap": "BIM_ProjectManager",
|
||||
"MenuText": QT_TRANSLATE_NOOP("BIM_ProjectManager", "Setup Project…"),
|
||||
"MenuText": QT_TRANSLATE_NOOP("BIM_ProjectManager", "Setup Project"),
|
||||
"ToolTip": QT_TRANSLATE_NOOP(
|
||||
"BIM_ProjectManager", "Creates or manages a BIM project"
|
||||
),
|
||||
@@ -420,8 +420,8 @@ class BIM_ProjectManager:
|
||||
|
||||
res = QtGui.QInputDialog.getText(
|
||||
None,
|
||||
translate("BIM", "Save preset"),
|
||||
translate("BIM", "Preset name:"),
|
||||
translate("BIM", "Save Preset"),
|
||||
translate("BIM", "Preset name"),
|
||||
QtGui.QLineEdit.Normal,
|
||||
"DefaultProject",
|
||||
)
|
||||
|
||||
@@ -47,7 +47,7 @@ def get_draft_drawing_commands():
|
||||
return ["Draft_Line",
|
||||
"Draft_Wire",
|
||||
"Draft_Fillet",
|
||||
([QT_TRANSLATE_NOOP("Workbench", "Arc tools")],
|
||||
([QT_TRANSLATE_NOOP("Workbench", "Arc Tools")],
|
||||
list(arc_group.GetCommands(arc_group))), # tuple len=2: submenu
|
||||
("Draft_ArcTools", ), # tuple len=1: toolbar flyout
|
||||
"Draft_Circle",
|
||||
@@ -55,7 +55,7 @@ def get_draft_drawing_commands():
|
||||
"Draft_Rectangle",
|
||||
"Draft_Polygon",
|
||||
"Draft_BSpline",
|
||||
([QT_TRANSLATE_NOOP("Workbench", "Bézier tools")],
|
||||
([QT_TRANSLATE_NOOP("Workbench", "Bézier Tools")],
|
||||
list(bez_group.GetCommands(bez_group))),
|
||||
("Draft_BezierTools", ),
|
||||
"Draft_Point",
|
||||
@@ -86,7 +86,7 @@ def get_draft_modification_commands():
|
||||
"Draft_Stretch",
|
||||
"Separator",
|
||||
"Draft_Clone",
|
||||
([QT_TRANSLATE_NOOP("Workbench", "Array tools")],
|
||||
([QT_TRANSLATE_NOOP("Workbench", "Array Tools")],
|
||||
list(arr_group.GetCommands(arr_group))), # tuple len=2: submenu
|
||||
("Draft_ArrayTools", ), # tuple len=1: toolbar flyout
|
||||
"Separator",
|
||||
|
||||
@@ -509,7 +509,7 @@ class _EquationMagnetodynamic2D(CommandManager):
|
||||
def __init__(self):
|
||||
super().__init__()
|
||||
self.menutext = Qt.QT_TRANSLATE_NOOP(
|
||||
"FEM_EquationMagnetodynamic2D", "Magnetodynamic2D Equation"
|
||||
"FEM_EquationMagnetodynamic2D", "Magnetodynamic 2D Equation"
|
||||
)
|
||||
self.tooltip = Qt.QT_TRANSLATE_NOOP(
|
||||
"FEM_EquationMagnetodynamic2D",
|
||||
|
||||
@@ -306,7 +306,7 @@ private:
|
||||
Mesh::Feature* pcFeature = pcDoc->addObject<Mesh::Feature>(name);
|
||||
Mesh::MeshObject* mo = pMesh->getMeshObjectPtr();
|
||||
if (!mo) {
|
||||
throw Py::Exception(PyExc_ReferenceError, "object doesn't reference a valid mesh");
|
||||
throw Py::Exception(PyExc_ReferenceError, "object does not reference a valid mesh");
|
||||
}
|
||||
// copy the data
|
||||
pcFeature->Mesh.setValue(*mo);
|
||||
|
||||
@@ -345,7 +345,7 @@ void CmdMeshImport::activated(int)
|
||||
|
||||
// Allow multi selection
|
||||
QStringList fn = Gui::FileDialog::getOpenFileNames(Gui::getMainWindow(),
|
||||
QObject::tr("Import mesh"),
|
||||
QObject::tr("Import Mesh"),
|
||||
QString(),
|
||||
filter.join(QLatin1String(";;")));
|
||||
for (const auto& it : fn) {
|
||||
@@ -420,7 +420,7 @@ void CmdMeshExport::activated(int)
|
||||
|
||||
QString format;
|
||||
QString fn = Gui::FileDialog::getSaveFileName(Gui::getMainWindow(),
|
||||
QObject::tr("Export mesh"),
|
||||
QObject::tr("Export Mesh"),
|
||||
dir,
|
||||
filter.join(QLatin1String(";;")),
|
||||
&format);
|
||||
@@ -456,7 +456,7 @@ CmdMeshFromGeometry::CmdMeshFromGeometry()
|
||||
{
|
||||
sAppModule = "Mesh";
|
||||
sGroup = QT_TR_NOOP("Mesh");
|
||||
sMenuText = QT_TR_NOOP("Mesh From Geometry…");
|
||||
sMenuText = QT_TR_NOOP("Mesh From Geometry");
|
||||
sToolTipText = QT_TR_NOOP("Creates a mesh from the selected geometry");
|
||||
sWhatsThis = "Mesh_FromGeometry";
|
||||
sStatusTip = sToolTipText;
|
||||
@@ -527,7 +527,7 @@ CmdMeshFromPartShape::CmdMeshFromPartShape()
|
||||
{
|
||||
sAppModule = "Mesh";
|
||||
sGroup = QT_TR_NOOP("Mesh");
|
||||
sMenuText = QT_TR_NOOP("Mesh From Shape…");
|
||||
sMenuText = QT_TR_NOOP("Mesh From Shape");
|
||||
sToolTipText = QT_TR_NOOP("Tessellates the selected shape to a mesh");
|
||||
sWhatsThis = "Mesh_FromPartShape";
|
||||
sStatusTip = sToolTipText;
|
||||
@@ -952,7 +952,7 @@ CmdMeshCrossSections::CmdMeshCrossSections()
|
||||
{
|
||||
sAppModule = "Mesh";
|
||||
sGroup = QT_TR_NOOP("Mesh");
|
||||
sMenuText = QT_TR_NOOP("Cross-Sections…");
|
||||
sMenuText = QT_TR_NOOP("Cross-Sections");
|
||||
sToolTipText = QT_TR_NOOP("Creates cross-sections of the mesh");
|
||||
sStatusTip = sToolTipText;
|
||||
sPixmap = "Mesh_CrossSections";
|
||||
@@ -1039,7 +1039,7 @@ CmdMeshEvaluation::CmdMeshEvaluation()
|
||||
sAppModule = "Mesh";
|
||||
sGroup = QT_TR_NOOP("Mesh");
|
||||
// needs two ampersands to display one
|
||||
sMenuText = QT_TR_NOOP("Evaluate and Repair…");
|
||||
sMenuText = QT_TR_NOOP("Evaluate and Repair");
|
||||
sToolTipText = QT_TR_NOOP("Opens a dialog to analyze and repair a mesh");
|
||||
sWhatsThis = "Mesh_Evaluation";
|
||||
sStatusTip = sToolTipText;
|
||||
@@ -1129,7 +1129,7 @@ CmdMeshRemoveComponents::CmdMeshRemoveComponents()
|
||||
{
|
||||
sAppModule = "Mesh";
|
||||
sGroup = QT_TR_NOOP("Mesh");
|
||||
sMenuText = QT_TR_NOOP("Remove Components…");
|
||||
sMenuText = QT_TR_NOOP("Remove Components");
|
||||
sToolTipText = QT_TR_NOOP("Removes topologically independent components from the mesh");
|
||||
sWhatsThis = "Mesh_RemoveComponents";
|
||||
sStatusTip = sToolTipText;
|
||||
@@ -1177,7 +1177,7 @@ CmdMeshRemeshGmsh::CmdMeshRemeshGmsh()
|
||||
{
|
||||
sAppModule = "Mesh";
|
||||
sGroup = QT_TR_NOOP("Mesh");
|
||||
sMenuText = QT_TR_NOOP("Refinement…");
|
||||
sMenuText = QT_TR_NOOP("Refinement");
|
||||
sToolTipText = QT_TR_NOOP("Refines an existing mesh");
|
||||
sStatusTip = sToolTipText;
|
||||
sWhatsThis = "Mesh_RemeshGmsh";
|
||||
@@ -1211,7 +1211,7 @@ CmdMeshRemoveCompByHand::CmdMeshRemoveCompByHand()
|
||||
{
|
||||
sAppModule = "Mesh";
|
||||
sGroup = QT_TR_NOOP("Mesh");
|
||||
sMenuText = QT_TR_NOOP("Remove Components Manually…");
|
||||
sMenuText = QT_TR_NOOP("Remove Components Manually");
|
||||
sToolTipText = QT_TR_NOOP("Marks a component to remove it from the mesh");
|
||||
sWhatsThis = "Mesh_RemoveCompByHand";
|
||||
sStatusTip = sToolTipText;
|
||||
@@ -1299,7 +1299,7 @@ CmdMeshSmoothing::CmdMeshSmoothing()
|
||||
{
|
||||
sAppModule = "Mesh";
|
||||
sGroup = QT_TR_NOOP("Mesh");
|
||||
sMenuText = QT_TR_NOOP("Smooth…");
|
||||
sMenuText = QT_TR_NOOP("Smooth");
|
||||
sToolTipText = QT_TR_NOOP("Smoothes the selected meshes");
|
||||
sWhatsThis = "Mesh_Smoothing";
|
||||
sStatusTip = sToolTipText;
|
||||
@@ -1328,7 +1328,7 @@ CmdMeshDecimating::CmdMeshDecimating()
|
||||
{
|
||||
sAppModule = "Mesh";
|
||||
sGroup = QT_TR_NOOP("Mesh");
|
||||
sMenuText = QT_TR_NOOP("Decimate…");
|
||||
sMenuText = QT_TR_NOOP("Decimate");
|
||||
sToolTipText = QT_TR_NOOP("Decimates a mesh");
|
||||
sWhatsThis = "Mesh_Decimating";
|
||||
sStatusTip = sToolTipText;
|
||||
@@ -1432,7 +1432,7 @@ CmdMeshBoundingBox::CmdMeshBoundingBox()
|
||||
{
|
||||
sAppModule = "Mesh";
|
||||
sGroup = QT_TR_NOOP("Mesh");
|
||||
sMenuText = QT_TR_NOOP("Boundings Info…");
|
||||
sMenuText = QT_TR_NOOP("Boundings Info");
|
||||
sToolTipText = QT_TR_NOOP("Shows the boundings of the selected mesh");
|
||||
sWhatsThis = "Mesh_BoundingBox";
|
||||
sStatusTip = sToolTipText;
|
||||
@@ -1484,7 +1484,7 @@ CmdMeshBuildRegularSolid::CmdMeshBuildRegularSolid()
|
||||
{
|
||||
sAppModule = "Mesh";
|
||||
sGroup = QT_TR_NOOP("Mesh");
|
||||
sMenuText = QT_TR_NOOP("Regular Solid…");
|
||||
sMenuText = QT_TR_NOOP("Regular Solid");
|
||||
sToolTipText = QT_TR_NOOP("Builds a regular solid");
|
||||
sWhatsThis = "Mesh_BuildRegularSolid";
|
||||
sStatusTip = sToolTipText;
|
||||
@@ -1516,7 +1516,7 @@ CmdMeshFillupHoles::CmdMeshFillupHoles()
|
||||
{
|
||||
sAppModule = "Mesh";
|
||||
sGroup = QT_TR_NOOP("Mesh");
|
||||
sMenuText = QT_TR_NOOP("Fill Holes…");
|
||||
sMenuText = QT_TR_NOOP("Fill Holes");
|
||||
sToolTipText = QT_TR_NOOP("Fills holes in the mesh");
|
||||
sWhatsThis = "Mesh_FillupHoles";
|
||||
sStatusTip = sToolTipText;
|
||||
@@ -1614,7 +1614,7 @@ CmdMeshSegmentation::CmdMeshSegmentation()
|
||||
{
|
||||
sAppModule = "Mesh";
|
||||
sGroup = QT_TR_NOOP("Mesh");
|
||||
sMenuText = QT_TR_NOOP("Segmentation…");
|
||||
sMenuText = QT_TR_NOOP("Segmentation");
|
||||
sToolTipText = QT_TR_NOOP("Creates new mesh segments from the mesh");
|
||||
sWhatsThis = "Mesh_Segmentation";
|
||||
sStatusTip = sToolTipText;
|
||||
@@ -1650,7 +1650,7 @@ CmdMeshSegmentationBestFit::CmdMeshSegmentationBestFit()
|
||||
{
|
||||
sAppModule = "Mesh";
|
||||
sGroup = QT_TR_NOOP("Mesh");
|
||||
sMenuText = QT_TR_NOOP("Segmentation From Best-Fit Surfaces…");
|
||||
sMenuText = QT_TR_NOOP("Segmentation From Best-Fit Surfaces");
|
||||
sToolTipText = QT_TR_NOOP("Creates new mesh segments from the best-fit surfaces");
|
||||
sWhatsThis = "Mesh_SegmentationBestFit";
|
||||
sStatusTip = sToolTipText;
|
||||
@@ -1779,7 +1779,7 @@ CmdMeshScale::CmdMeshScale()
|
||||
{
|
||||
sAppModule = "Mesh";
|
||||
sGroup = QT_TR_NOOP("Mesh");
|
||||
sMenuText = QT_TR_NOOP("Scale…");
|
||||
sMenuText = QT_TR_NOOP("Scale");
|
||||
sToolTipText = QT_TR_NOOP("Scales the selected mesh objects");
|
||||
sWhatsThis = "Mesh_Scale";
|
||||
sStatusTip = sToolTipText;
|
||||
|
||||
@@ -138,7 +138,7 @@ DlgEvaluateMeshImp::DlgEvaluateMeshImp(QWidget* parent, Qt::WindowFlags fl)
|
||||
d->showFoldsFunction(d->enableFoldsCheck);
|
||||
|
||||
QPushButton* button = d->ui.buttonBox->button(QDialogButtonBox::Open);
|
||||
button->setText(tr("Settings…"));
|
||||
button->setText(tr("Settings"));
|
||||
|
||||
// try to attach to the active document
|
||||
this->onRefreshButtonClicked();
|
||||
@@ -1176,7 +1176,7 @@ void DlgEvaluateMeshImp::onRepairAllTogetherClicked()
|
||||
const char* docName = App::GetApplication().getDocumentName(d->meshFeature->getDocument());
|
||||
const char* objName = d->meshFeature->getNameInDocument();
|
||||
Gui::Document* doc = Gui::Application::Instance->getDocument(docName);
|
||||
doc->openCommand(QT_TRANSLATE_NOOP("Command", "Repair mesh"));
|
||||
doc->openCommand(QT_TRANSLATE_NOOP("Command", "Repair Mesh"));
|
||||
|
||||
bool run = false;
|
||||
bool self = true;
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
<item row="0" column="1">
|
||||
<widget class="QPushButton" name="planeParameters">
|
||||
<property name="text">
|
||||
<string>Parameters…</string>
|
||||
<string>Parameters</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
@@ -79,7 +79,7 @@
|
||||
<item row="0" column="1">
|
||||
<widget class="QPushButton" name="cylinderParameters">
|
||||
<property name="text">
|
||||
<string>Parameters…</string>
|
||||
<string>Parameters</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
@@ -132,7 +132,7 @@
|
||||
<item row="0" column="1">
|
||||
<widget class="QPushButton" name="sphereParameters">
|
||||
<property name="text">
|
||||
<string>Parameters…</string>
|
||||
<string>Parameters</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
|
||||
@@ -46,9 +46,9 @@ class CreateFlatMesh(BaseCommand):
|
||||
def GetResources(self):
|
||||
return {
|
||||
"Pixmap": "MeshPart_CreateFlatMesh.svg",
|
||||
"MenuText": QT_TRANSLATE_NOOP("MeshPart_CreateFlatMesh", "Unwrap mesh"),
|
||||
"MenuText": QT_TRANSLATE_NOOP("MeshPart_CreateFlatMesh", "Unwrap Mesh"),
|
||||
"ToolTip": QT_TRANSLATE_NOOP(
|
||||
"MeshPart_CreateFlatMesh", "Find a flat representation of a mesh."
|
||||
"MeshPart_CreateFlatMesh", "Finds a flat representation of a mesh"
|
||||
),
|
||||
}
|
||||
|
||||
@@ -85,9 +85,9 @@ class CreateFlatFace(BaseCommand):
|
||||
def GetResources(self):
|
||||
return {
|
||||
"Pixmap": "MeshPart_CreateFlatFace.svg",
|
||||
"MenuText": QT_TRANSLATE_NOOP("MeshPart_CreateFlatFace", "Unwrap face"),
|
||||
"MenuText": QT_TRANSLATE_NOOP("MeshPart_CreateFlatFace", "Unwrap Face"),
|
||||
"ToolTip": QT_TRANSLATE_NOOP(
|
||||
"MeshPart_CreateFlatFace", "Find a flat representation of a face."
|
||||
"MeshPart_CreateFlatFace", "Finds a flat representation of a face"
|
||||
),
|
||||
}
|
||||
|
||||
|
||||
@@ -183,7 +183,7 @@ class MirrorMeshFeature:
|
||||
FreeCAD.ActiveDocument.recompute()
|
||||
def GetResources(self):
|
||||
return {'Pixmap' : 'OpenSCAD_MirrorMeshFeature',
|
||||
'MenuText': QtCore.QT_TRANSLATE_NOOP('OpenSCAD_MirrorMeshFeature', 'Mirror Mesh Feature...'),
|
||||
'MenuText': QtCore.QT_TRANSLATE_NOOP('OpenSCAD_MirrorMeshFeature', 'Mirror Mesh Feature'),
|
||||
'ToolTip' : QtCore.QT_TRANSLATE_NOOP('OpenSCAD_MirrorMeshFeature', 'Mirrors the mesh')}
|
||||
|
||||
class ScaleMeshFeature:
|
||||
@@ -212,7 +212,7 @@ class ScaleMeshFeature:
|
||||
FreeCAD.ActiveDocument.recompute()
|
||||
def GetResources(self):
|
||||
return {'Pixmap' : 'OpenSCAD_ScaleMeshFeature',
|
||||
'MenuText': QtCore.QT_TRANSLATE_NOOP('OpenSCAD_ScaleMeshFeature', 'Scale Mesh Feature…'),
|
||||
'MenuText': QtCore.QT_TRANSLATE_NOOP('OpenSCAD_ScaleMeshFeature', 'Scale Mesh Feature'),
|
||||
'ToolTip' : QtCore.QT_TRANSLATE_NOOP('OpenSCAD_ScaleMeshFeature', 'Scales the mesh')}
|
||||
|
||||
|
||||
@@ -242,7 +242,7 @@ class ResizeMeshFeature:
|
||||
FreeCAD.ActiveDocument.recompute()
|
||||
def GetResources(self):
|
||||
return {'Pixmap' : 'OpenSCAD_ResizeMeshFeature',
|
||||
'MenuText': QtCore.QT_TRANSLATE_NOOP('OpenSCAD_ResizeMeshFeature', 'Resize Mesh Feature…'),
|
||||
'MenuText': QtCore.QT_TRANSLATE_NOOP('OpenSCAD_ResizeMeshFeature', 'Resize Mesh Feature'),
|
||||
'ToolTip' : QtCore.QT_TRANSLATE_NOOP('OpenSCAD_ResizeMeshFeature', 'Resizes the mesh')}
|
||||
|
||||
|
||||
@@ -526,7 +526,7 @@ class AddOpenSCADElement:
|
||||
|
||||
def GetResources(self):
|
||||
return {'Pixmap' : 'OpenSCAD_AddOpenSCADElement',
|
||||
'MenuText': QtCore.QT_TRANSLATE_NOOP('OpenSCAD_AddOpenSCADElement', 'Add OpenSCAD Element…'),
|
||||
'MenuText': QtCore.QT_TRANSLATE_NOOP('OpenSCAD_AddOpenSCADElement', 'Add OpenSCAD Element'),
|
||||
'ToolTip' : QtCore.QT_TRANSLATE_NOOP('OpenSCAD_AddOpenSCADElement',
|
||||
'Adds an OpenSCAD element by entering OpenSCAD code and executing the OpenSCAD binary')}
|
||||
|
||||
@@ -541,7 +541,7 @@ class OpenSCADMeshBoolean:
|
||||
|
||||
def GetResources(self):
|
||||
return {'Pixmap' : 'OpenSCAD_MeshBooleans',
|
||||
'MenuText': QtCore.QT_TRANSLATE_NOOP('OpenSCAD_MeshBoolean','Mesh Boolean…'),
|
||||
'MenuText': QtCore.QT_TRANSLATE_NOOP('OpenSCAD_MeshBoolean','Mesh Boolean'),
|
||||
'ToolTip' : QtCore.QT_TRANSLATE_NOOP('OpenSCAD_MeshBoolean',
|
||||
'Exports objects as meshes and use OpenSCAD to perform a boolean operation')}
|
||||
|
||||
|
||||
@@ -41,7 +41,7 @@ import sys
|
||||
class CommandTube:
|
||||
"""Command for creating Tube."""
|
||||
def GetResources(self):
|
||||
return {'MenuText': Qt.QT_TRANSLATE_NOOP("Part_Tube","Create tube"),
|
||||
return {'MenuText': Qt.QT_TRANSLATE_NOOP("Part_Tube","Tube"),
|
||||
'Accel': "",
|
||||
'CmdType': "AlterDoc:Alter3DView:AlterSelection",
|
||||
'Pixmap': "Part_Tube_Parametric",
|
||||
|
||||
@@ -81,7 +81,6 @@ Gui::MenuItem* Workbench::setupMenuBar() const
|
||||
<< "Part_Sphere"
|
||||
<< "Part_Cone"
|
||||
<< "Part_Torus"
|
||||
<< "Separator"
|
||||
<< "Part_Tube";
|
||||
|
||||
Gui::MenuItem* copy = new Gui::MenuItem;
|
||||
|
||||
@@ -237,7 +237,7 @@ CmdPointsConvert::CmdPointsConvert()
|
||||
{
|
||||
sAppModule = "Points";
|
||||
sGroup = QT_TR_NOOP("Points");
|
||||
sMenuText = QT_TR_NOOP("Convert to Points…");
|
||||
sMenuText = QT_TR_NOOP("Convert to Points");
|
||||
sToolTipText = QT_TR_NOOP("Converts to points");
|
||||
sWhatsThis = "Points_Convert";
|
||||
sStatusTip = sToolTipText;
|
||||
|
||||
@@ -161,7 +161,7 @@ CmdRobotConstraintAxle::CmdRobotConstraintAxle()
|
||||
{
|
||||
sAppModule = "Robot";
|
||||
sGroup = QT_TR_NOOP("Robot");
|
||||
sMenuText = QT_TR_NOOP("Place Robot…");
|
||||
sMenuText = QT_TR_NOOP("Place Robot");
|
||||
sToolTipText = QT_TR_NOOP("Places a robot in the scene");
|
||||
|
||||
sWhatsThis = "Robot_Create";
|
||||
|
||||
@@ -44,7 +44,7 @@ CmdRobotExportKukaCompact::CmdRobotExportKukaCompact()
|
||||
{
|
||||
sAppModule = "Robot";
|
||||
sGroup = QT_TR_NOOP("Robot");
|
||||
sMenuText = QT_TR_NOOP("Kuka Compact Subroutine…");
|
||||
sMenuText = QT_TR_NOOP("Kuka Compact Subroutine");
|
||||
sToolTipText = QT_TR_NOOP("Exports the trajectory as a compact KRL subroutine");
|
||||
sWhatsThis = "Robot_ExportKukaCompact";
|
||||
sStatusTip = sToolTipText;
|
||||
@@ -119,7 +119,7 @@ CmdRobotExportKukaFull::CmdRobotExportKukaFull()
|
||||
{
|
||||
sAppModule = "Robot";
|
||||
sGroup = QT_TR_NOOP("Robot");
|
||||
sMenuText = QT_TR_NOOP("Kuka Full Subroutine…");
|
||||
sMenuText = QT_TR_NOOP("Kuka Full Subroutine");
|
||||
sToolTipText = QT_TR_NOOP("Exports the trajectory as a full KRL subroutine");
|
||||
sWhatsThis = "Robot_ExportKukaFull";
|
||||
sStatusTip = sToolTipText;
|
||||
|
||||
@@ -358,7 +358,7 @@ CmdRobotEdge2Trac::CmdRobotEdge2Trac()
|
||||
{
|
||||
sAppModule = "Robot";
|
||||
sGroup = QT_TR_NOOP("Robot");
|
||||
sMenuText = QT_TR_NOOP("Edge to Trajectory…");
|
||||
sMenuText = QT_TR_NOOP("Edge to Trajectory");
|
||||
sToolTipText = QT_TR_NOOP("Generates a trajectory from the selected edges");
|
||||
sWhatsThis = "Robot_Edge2Trac";
|
||||
sStatusTip = sToolTipText;
|
||||
@@ -424,7 +424,7 @@ CmdRobotTrajectoryDressUp::CmdRobotTrajectoryDressUp()
|
||||
{
|
||||
sAppModule = "Robot";
|
||||
sGroup = QT_TR_NOOP("Robot");
|
||||
sMenuText = QT_TR_NOOP("Dress-Up Trajectory…");
|
||||
sMenuText = QT_TR_NOOP("Dress-Up Trajectory");
|
||||
sToolTipText = QT_TR_NOOP("Creates a dress-up object that overrides aspects of a trajectory");
|
||||
sWhatsThis = "Robot_TrajectoryDressUp";
|
||||
sStatusTip = sToolTipText;
|
||||
@@ -480,7 +480,7 @@ CmdRobotTrajectoryCompound::CmdRobotTrajectoryCompound()
|
||||
{
|
||||
sAppModule = "Robot";
|
||||
sGroup = QT_TR_NOOP("Robot");
|
||||
sMenuText = QT_TR_NOOP("Trajectory Compound…");
|
||||
sMenuText = QT_TR_NOOP("Trajectory Compound");
|
||||
sToolTipText = QT_TR_NOOP("Groups and connects multiple trajectories into one");
|
||||
sWhatsThis = "Robot_TrajectoryCompound";
|
||||
sStatusTip = sToolTipText;
|
||||
|
||||
@@ -705,7 +705,7 @@ CmdSpreadsheetStyleItalic::CmdSpreadsheetStyleItalic()
|
||||
{
|
||||
sAppModule = "Spreadsheet";
|
||||
sGroup = QT_TR_NOOP("Spreadsheet");
|
||||
sMenuText = QT_TR_NOOP("&Italic Iext");
|
||||
sMenuText = QT_TR_NOOP("&Italic Text");
|
||||
sToolTipText = QT_TR_NOOP("Sets the text in the selected cells italic");
|
||||
sWhatsThis = "Spreadsheet_StyleItalic";
|
||||
sStatusTip = sToolTipText;
|
||||
|
||||
@@ -111,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 selected boundary edges.\n"
|
||||
"Additionally, the surface may be constrained by edges and\n"
|
||||
"vertices that are not on the boundary.");
|
||||
@@ -177,7 +177,7 @@ 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.");
|
||||
sWhatsThis = "Surface_CurveOnMesh";
|
||||
@@ -322,7 +322,7 @@ CmdSurfaceSections::CmdSurfaceSections()
|
||||
{
|
||||
sAppModule = "Surface";
|
||||
sGroup = QT_TR_NOOP("Surface");
|
||||
sMenuText = QT_TR_NOOP("Sections…");
|
||||
sMenuText = QT_TR_NOOP("Sections");
|
||||
sToolTipText = QT_TR_NOOP("Creates a surface from a series of sectional edges");
|
||||
sStatusTip = sToolTipText;
|
||||
sWhatsThis = "Surface_Sections";
|
||||
|
||||
@@ -229,7 +229,7 @@ bool ViewProviderPage::onDelete(const std::vector<std::string>& parms)
|
||||
void ViewProviderPage::setupContextMenu(QMenu* menu, QObject* receiver, const char* member)
|
||||
{
|
||||
Gui::ViewProviderDocumentObject::setupContextMenu(menu, receiver, member);
|
||||
QAction* act = menu->addAction(QObject::tr("Show drawing"), receiver, member);
|
||||
QAction* act = menu->addAction(QObject::tr("Show Drawing"), receiver, member);
|
||||
act->setData(QVariant((int)ShowDrawing));
|
||||
QAction* act2 = menu->addAction(QObject::tr("Toggle Keep Updated"), receiver, member);
|
||||
|
||||
|
||||
@@ -102,7 +102,7 @@ void ViewProviderProjGroupItem::setupContextMenu(QMenu* menu, QObject* receiver,
|
||||
Q_UNUSED(receiver);
|
||||
Q_UNUSED(member);
|
||||
//QAction* act;
|
||||
//act = menu->addAction(QObject::tr("Show drawing"), receiver, member);
|
||||
//act = menu->addAction(QObject::tr("Show Drawing"), receiver, member);
|
||||
}
|
||||
|
||||
bool ViewProviderProjGroupItem::setEdit(int ModNum)
|
||||
|
||||
Reference in New Issue
Block a user