Assembly: Change 'Insert Link' name to 'Insert Component' Fixes #12165

This commit is contained in:
PaddleStroke
2024-02-26 18:23:39 +01:00
committed by Yorik van Havre
parent 8ae8573282
commit f9593d237d
2 changed files with 6 additions and 6 deletions

View File

@@ -37,7 +37,7 @@ import CommandCreateJoint
# translate = App.Qt.translate
__title__ = "Assembly Command Insert Link"
__title__ = "Assembly Command Insert Component"
__author__ = "Ondsel"
__url__ = "https://www.freecad.org"
@@ -49,12 +49,12 @@ class CommandInsertLink:
def GetResources(self):
return {
"Pixmap": "Assembly_InsertLink",
"MenuText": QT_TRANSLATE_NOOP("Assembly_InsertLink", "Insert Link"),
"MenuText": QT_TRANSLATE_NOOP("Assembly_InsertLink", "Insert Component"),
"Accel": "I",
"ToolTip": "<p>"
+ QT_TRANSLATE_NOOP(
"Assembly_InsertLink",
"Insert a Link into the currently active assembly. This will create dynamic links to parts/bodies/primitives/assemblies. To insert external objects, make sure that the file is <b>open in the current session</b>",
"Insert a component into the current active assembly. This will create dynamic links to parts, bodies, primitives, and assemblies. To insert external components, make sure that the file is <b>open in the current session</b>",
)
+ "</p><p><ul><li>"
+ QT_TRANSLATE_NOOP("Assembly_InsertLink", "Insert by left clicking items in the list.")
@@ -65,7 +65,7 @@ class CommandInsertLink:
+ "</li><li>"
+ QT_TRANSLATE_NOOP(
"Assembly_InsertLink",
"Press shift to add several links while clicking on the view.",
"Press shift to add several instances of the component while clicking on the view.",
)
+ "</li></ul></p>",
"CmdType": "ForEdit",
@@ -116,7 +116,7 @@ class TaskAssemblyInsertLink(QtCore.QObject):
self.buildPartList()
App.setActiveTransaction("Insert Link")
App.setActiveTransaction("Insert Component")
def accept(self):
self.deactivated()

View File

@@ -11,7 +11,7 @@
</rect>
</property>
<property name="windowTitle">
<string>Insert Link</string>
<string>Insert Component</string>
</property>
<layout class="QGridLayout" name="gridLayout">
<item row="0" column="0">