diff --git a/src/Mod/Assembly/CommandCreateAssembly.py b/src/Mod/Assembly/CommandCreateAssembly.py index 6a9af33bc7..c3ee92e51f 100644 --- a/src/Mod/Assembly/CommandCreateAssembly.py +++ b/src/Mod/Assembly/CommandCreateAssembly.py @@ -46,11 +46,11 @@ class CommandCreateAssembly: def GetResources(self): return { "Pixmap": "Geoassembly", - "MenuText": QT_TRANSLATE_NOOP("Assembly_CreateAssembly", "Create Assembly"), + "MenuText": QT_TRANSLATE_NOOP("Assembly_CreateAssembly", "New Assembly"), "Accel": "A", "ToolTip": QT_TRANSLATE_NOOP( "Assembly_CreateAssembly", - "Create an assembly object in the current document, or in the current active assembly (if any). Limit of one root assembly per file.", + "Creates an assembly object in the current document, or in the current active assembly (if any). Limit of one root assembly per file.", ), "CmdType": "ForEdit", } @@ -68,7 +68,7 @@ class CommandCreateAssembly: return App.ActiveDocument is not None def Activated(self): - App.setActiveTransaction("Create assembly") + App.setActiveTransaction("New Assembly") activeAssembly = UtilsAssembly.activeAssembly() Gui.addModule("UtilsAssembly") diff --git a/src/Mod/Assembly/CommandCreateBom.py b/src/Mod/Assembly/CommandCreateBom.py index af4eee28a1..d679f869eb 100644 --- a/src/Mod/Assembly/CommandCreateBom.py +++ b/src/Mod/Assembly/CommandCreateBom.py @@ -66,17 +66,17 @@ class CommandCreateBom: def GetResources(self): return { "Pixmap": "Assembly_BillOfMaterials", - "MenuText": QT_TRANSLATE_NOOP("Assembly_CreateBom", "Create Bill of Materials"), + "MenuText": QT_TRANSLATE_NOOP("Assembly_CreateBom", "Bill of Materials"), "Accel": "O", "ToolTip": "

" + QT_TRANSLATE_NOOP( "Assembly_CreateBom", - "Create a bill of materials of the current assembly. If an assembly is active, it will be a BOM of this assembly. Else it will be a BOM of the whole document.", + "Creates a bill of materials of the current assembly. If an assembly is active, it will be a BOM of this assembly. Else it will be a BOM of the whole document.", ) + "

" + QT_TRANSLATE_NOOP( "Assembly_CreateBom", - "The BOM object is a document object that stores the settings of your BOM. It is also a spreadsheet object so you can easily visualize the BOM. If you don't need the BOM object to be saved as a document object, you can simply export and cancel the task.", + "The BOM object is a document object that stores the settings of your BOM. It is also a spreadsheet object so you can easily visualize the BOM. If you do not need the BOM object to be saved as a document object, you can simply export and cancel the task.", ) + "

" + QT_TRANSLATE_NOOP( @@ -370,28 +370,28 @@ class TaskAssemblyCreateBom(QtCore.QObject): layout = QtWidgets.QVBoxLayout() layout.setContentsMargins(10, 10, 10, 10) - options_title = QtWidgets.QLabel("" + translate("Assembly", "Options:") + "") + options_title = QtWidgets.QLabel("" + translate("Assembly", "Options") + "") options_text = QtWidgets.QLabel( " - " + translate( "Assembly", - "Sub-assemblies children : If checked, Sub assemblies children will be added to the bill of materials.", + "Sub-assembly children: the children of sub-assemblies will be included in the bill of materials", ) + "\n" " - " + translate( "Assembly", - "Parts children : If checked, Parts children will be added to the bill of materials.", + "Parts children: the children of parts will be added to the bill of materials", ) + "\n" " - " + translate( "Assembly", - "Only parts : If checked, only Part containers and sub-assemblies will be added to the bill of materials. Solids like PartDesign Bodies, fasteners or Part workbench primitives will be ignored.", + "Only parts: adds only part containers and sub-assemblies to the bill of materials. Solids like Part Design bodies, fasteners, or Part workbench primitives are ignored.", ) + "\n" ) - columns_title = QtWidgets.QLabel("" + translate("Assembly", "Columns:") + "") + columns_title = QtWidgets.QLabel("" + translate("Assembly", "Columns") + "") columns_text = QtWidgets.QLabel( " - " + translate( @@ -402,22 +402,22 @@ class TaskAssemblyCreateBom(QtCore.QObject): " - " + translate( "Assembly", - "Custom columns : 'Description' and other custom columns you add by clicking on 'Add column' will not have their data overwritten. If a column name starts with '.' followed by a property name (e.g. '.Length'), it will be auto-populated with that property value. These columns can be renamed by double-clicking or pressing F2 (Renaming a column will currently lose its data).", + "Custom columns : 'Description' and other custom columns you add by clicking on 'Add column' will not have their data overwritten. If a column name starts with '.' followed by a property name (e.g. '.Length'), it will be auto-populated with that property value. These columns can be renamed by double-clicking or pressing F2 (renaming a column will currently lose its data).", ) + "\n" "\n" + translate( "Assembly", - "Any column (custom or not) can be deleted by pressing Del.", + "Any column (custom or not), can be deleted by pressing the Delete key", ) + "\n" ) - export_title = QtWidgets.QLabel("" + translate("Assembly", "Export:") + "") + export_title = QtWidgets.QLabel("" + translate("Assembly", "Export") + "") export_text = QtWidgets.QLabel( " - " + translate( "Assembly", - "The exported file format can be customized in the Spreadsheet workbench preferences.", + "The exported file format can be customized in the Spreadsheet workbench preferences", ) + "\n" ) diff --git a/src/Mod/Assembly/CommandCreateJoint.py b/src/Mod/Assembly/CommandCreateJoint.py index e4ba97910c..57ddbfb863 100644 --- a/src/Mod/Assembly/CommandCreateJoint.py +++ b/src/Mod/Assembly/CommandCreateJoint.py @@ -68,24 +68,23 @@ class CommandCreateJointFixed: pass def GetResources(self): - return { "Pixmap": "Assembly_CreateJointFixed", "MenuText": QT_TRANSLATE_NOOP( "Assembly_CreateJointFixed", - "Create Fixed Joint", + "Fixed Joint", ), "Accel": "F", "ToolTip": "

" + QT_TRANSLATE_NOOP( "Assembly_CreateJointFixed", - "1 - If an assembly is active : Create a joint permanently locking two parts together, preventing any movement or rotation.", + "1 - If an assembly is active : Creates a joint permanently locking two parts together, preventing any movement or rotation", ) + "

" + "

" + QT_TRANSLATE_NOOP( "Assembly_CreateJointFixed", - "2 - If a part is active : Position sub parts by matching selected coordinate systems. The second part selected will move.", + "2 - If a part is active: Positions sub-parts by matching selected coordinate systems. The second part selected will move.", ) + "

", "CmdType": "ForEdit", @@ -106,15 +105,14 @@ class CommandCreateJointRevolute: pass def GetResources(self): - return { "Pixmap": "Assembly_CreateJointRevolute", - "MenuText": QT_TRANSLATE_NOOP("Assembly_CreateJointRevolute", "Create Revolute Joint"), + "MenuText": QT_TRANSLATE_NOOP("Assembly_CreateJointRevolute", "Revolute Joint"), "Accel": "R", "ToolTip": "

" + QT_TRANSLATE_NOOP( "Assembly_CreateJointRevolute", - "Create a Revolute Joint: Allows rotation around a single axis between selected parts.", + "Creates a revolute joint allowing rotation around a single axis between selected parts", ) + "

", "CmdType": "ForEdit", @@ -132,17 +130,14 @@ class CommandCreateJointCylindrical: pass def GetResources(self): - return { "Pixmap": "Assembly_CreateJointCylindrical", - "MenuText": QT_TRANSLATE_NOOP( - "Assembly_CreateJointCylindrical", "Create Cylindrical Joint" - ), + "MenuText": QT_TRANSLATE_NOOP("Assembly_CreateJointCylindrical", "Cylindrical Joint"), "Accel": "C", "ToolTip": "

" + QT_TRANSLATE_NOOP( "Assembly_CreateJointCylindrical", - "Create a Cylindrical Joint: Enables rotation along one axis while permitting movement along the same axis between assembled parts.", + "Creates a cylindrical joint that allows rotation around and translation along a single axis between assembled parts", ) + "

", "CmdType": "ForEdit", @@ -160,15 +155,14 @@ class CommandCreateJointSlider: pass def GetResources(self): - return { "Pixmap": "Assembly_CreateJointSlider", - "MenuText": QT_TRANSLATE_NOOP("Assembly_CreateJointSlider", "Create Slider Joint"), + "MenuText": QT_TRANSLATE_NOOP("Assembly_CreateJointSlider", "Slider Joint"), "Accel": "S", "ToolTip": "

" + QT_TRANSLATE_NOOP( "Assembly_CreateJointSlider", - "Create a Slider Joint: Allows linear movement along a single axis but restricts rotation between selected parts.", + "Creates a slider joint that allows linear movement along a single axis, but restricts rotation between selected parts", ) + "

", "CmdType": "ForEdit", @@ -186,15 +180,14 @@ class CommandCreateJointBall: pass def GetResources(self): - return { "Pixmap": "Assembly_CreateJointBall", - "MenuText": QT_TRANSLATE_NOOP("Assembly_CreateJointBall", "Create Ball Joint"), + "MenuText": QT_TRANSLATE_NOOP("Assembly_CreateJointBall", "Ball Joint"), "Accel": "B", "ToolTip": "

" + QT_TRANSLATE_NOOP( "Assembly_CreateJointBall", - "Create a Ball Joint: Connects parts at a point, allowing unrestricted movement as long as the connection points remain in contact.", + "Creates a ball joint that connects parts at a point, allowing unrestricted movement as long as the connection points remain in contact", ) + "

", "CmdType": "ForEdit", @@ -212,20 +205,19 @@ class CommandCreateJointDistance: pass def GetResources(self): - return { "Pixmap": "Assembly_CreateJointDistance", - "MenuText": QT_TRANSLATE_NOOP("Assembly_CreateJointDistance", "Create Distance Joint"), + "MenuText": QT_TRANSLATE_NOOP("Assembly_CreateJointDistance", "Distance Joint"), "Accel": "D", "ToolTip": "

" + QT_TRANSLATE_NOOP( "Assembly_CreateJointDistance", - "Create a Distance Joint: Fix the distance between the selected objects.", + "Creates a distance joint that fixes the distance between the selected objects", ) + "

" + QT_TRANSLATE_NOOP( "Assembly_CreateJointDistance", - "Create one of several different joints based on the selection. " + "Creates one of several different joints based on the selection" "For example, a distance of 0 between a plane and a cylinder creates a tangent joint. A distance of 0 between planes will make them co-planar.", ) + "

", @@ -244,15 +236,14 @@ class CommandCreateJointParallel: pass def GetResources(self): - return { "Pixmap": "Assembly_CreateJointParallel", - "MenuText": QT_TRANSLATE_NOOP("Assembly_CreateJointParallel", "Create Parallel Joint"), + "MenuText": QT_TRANSLATE_NOOP("Assembly_CreateJointParallel", "Parallel Joint"), "Accel": "N", "ToolTip": "

" + QT_TRANSLATE_NOOP( "Assembly_CreateJointParallel", - "Create an Parallel Joint: Make the Z axis of selected coordinate systems parallel.", + "Creates a parallel joint that makes the Z-axis of the selected coordinate systems parallel", ) + "

", "CmdType": "ForEdit", @@ -270,17 +261,16 @@ class CommandCreateJointPerpendicular: pass def GetResources(self): - return { "Pixmap": "Assembly_CreateJointPerpendicular", "MenuText": QT_TRANSLATE_NOOP( - "Assembly_CreateJointPerpendicular", "Create Perpendicular Joint" + "Assembly_CreateJointPerpendicular", "Perpendicular Joint" ), "Accel": "M", "ToolTip": "

" + QT_TRANSLATE_NOOP( "Assembly_CreateJointPerpendicular", - "Create an Perpendicular Joint: Make the Z axis of selected coordinate systems perpendicular.", + "Creates a perpendicular joint that makes the Z-axis of the selected coordinate systems perpendicular", ) + "

", "CmdType": "ForEdit", @@ -298,15 +288,14 @@ class CommandCreateJointAngle: pass def GetResources(self): - return { "Pixmap": "Assembly_CreateJointAngle", - "MenuText": QT_TRANSLATE_NOOP("Assembly_CreateJointAngle", "Create Angle Joint"), + "MenuText": QT_TRANSLATE_NOOP("Assembly_CreateJointAngle", "Angle Joint"), "Accel": "X", "ToolTip": "

" + QT_TRANSLATE_NOOP( "Assembly_CreateJointAngle", - "Create an Angle Joint: Fix the angle between the Z axis of selected coordinate systems.", + "Creates an angle joint that fixes the angle between the Z-axis of the selected coordinate systems", ) + "

", "CmdType": "ForEdit", @@ -324,22 +313,21 @@ class CommandCreateJointRackPinion: pass def GetResources(self): - return { "Pixmap": "Assembly_CreateJointRackPinion", "MenuText": QT_TRANSLATE_NOOP( - "Assembly_CreateJointRackPinion", "Create Rack and Pinion Joint" + "Assembly_CreateJointRackPinion", "Rack and Pinion Joint" ), "Accel": "Q", "ToolTip": "

" + QT_TRANSLATE_NOOP( "Assembly_CreateJointRackPinion", - "Create a Rack and Pinion Joint: Links a part with a sliding joint with a part with a revolute joint.", + "Creates a rack and pinion joint that links a part with a sliding joint to a part with a revolute joint", ) + "

" + QT_TRANSLATE_NOOP( "Assembly_CreateJointRackPinion", - "Select the same coordinate systems as the revolute and sliding joints. The pitch radius defines the movement ratio between the rack and the pinion.", + "Selects the same coordinate systems as the revolute and sliding joints. The pitch radius defines the movement ratio between the rack and the pinion.", ) + "

", "CmdType": "ForEdit", @@ -357,15 +345,14 @@ class CommandCreateJointScrew: pass def GetResources(self): - return { "Pixmap": "Assembly_CreateJointScrew", - "MenuText": QT_TRANSLATE_NOOP("Assembly_CreateJointScrew", "Create Screw Joint"), + "MenuText": QT_TRANSLATE_NOOP("Assembly_CreateJointScrew", "Screw Joint"), "Accel": "W", "ToolTip": "

" + QT_TRANSLATE_NOOP( "Assembly_CreateJointScrew", - "Create a Screw Joint: Links a part with a sliding joint with a part with a revolute joint.", + "Creates a screw joint that links a part with a sliding joint to a part with a revolute joint", ) + "

" + QT_TRANSLATE_NOOP( @@ -388,15 +375,14 @@ class CommandCreateJointGears: pass def GetResources(self): - return { "Pixmap": "Assembly_CreateJointGears", - "MenuText": QT_TRANSLATE_NOOP("Assembly_CreateJointGears", "Create Gears Joint"), + "MenuText": QT_TRANSLATE_NOOP("Assembly_CreateJointGears", "Gears Joint"), "Accel": "T", "ToolTip": "

" + QT_TRANSLATE_NOOP( "Assembly_CreateJointGears", - "Create a Gears Joint: Links two rotating gears together. They will have inverse rotation direction.", + "Creates a gears joint that links 2 rotating gears together. They will have inverse rotation direction.", ) + "

" + QT_TRANSLATE_NOOP( @@ -419,15 +405,14 @@ class CommandCreateJointBelt: pass def GetResources(self): - return { "Pixmap": "Assembly_CreateJointPulleys", - "MenuText": QT_TRANSLATE_NOOP("Assembly_CreateJointBelt", "Create Belt Joint"), + "MenuText": QT_TRANSLATE_NOOP("Assembly_CreateJointBelt", "Belt Joint"), "Accel": "L", "ToolTip": "

" + QT_TRANSLATE_NOOP( "Assembly_CreateJointBelt", - "Create a Belt Joint: Links two rotating objects together. They will have the same rotation direction.", + "Creates a belt joint that links 2 rotating objects together. They will have the same rotation direction.", ) + "

" + QT_TRANSLATE_NOOP( @@ -451,14 +436,13 @@ class CommandGroupGearBelt: def GetResources(self): """Set icon, menu and tooltip.""" - return { "Pixmap": "Assembly_CreateJointGears", - "MenuText": QT_TRANSLATE_NOOP("Assembly_CreateJointGearBelt", "Create Gear/Belt Joint"), + "MenuText": QT_TRANSLATE_NOOP("Assembly_CreateJointGearBelt", "Gears/Belt Joint"), "ToolTip": "

" + QT_TRANSLATE_NOOP( "Assembly_CreateJointGearBelt", - "Create a Gears/Belt Joint: Links two rotating gears together.", + "Creates a gears or belt joint that links 2 rotating gears together", ) + "

" + QT_TRANSLATE_NOOP( @@ -496,15 +480,14 @@ class CommandToggleGrounded: pass def GetResources(self): - return { "Pixmap": "Assembly_ToggleGrounded", - "MenuText": QT_TRANSLATE_NOOP("Assembly_ToggleGrounded", "Toggle grounded"), + "MenuText": QT_TRANSLATE_NOOP("Assembly_ToggleGrounded", "Toggle Grounded"), "Accel": "G", "ToolTip": "

" + QT_TRANSLATE_NOOP( "Assembly_ToggleGrounded", - "Grounding a part permanently locks its position in the assembly, preventing any movement or rotation. You need at least one grounded part before starting to assemble.", + "Toggles the grounding of a part.\nGrounding a part permanently locks its position in the assembly, preventing any movement or rotation. You need at least one grounded part before starting to assemble.", ) + "

", "CmdType": "ForEdit", diff --git a/src/Mod/Assembly/CommandCreateSimulation.py b/src/Mod/Assembly/CommandCreateSimulation.py index b074172d2a..3e04debab6 100644 --- a/src/Mod/Assembly/CommandCreateSimulation.py +++ b/src/Mod/Assembly/CommandCreateSimulation.py @@ -64,12 +64,12 @@ class CommandCreateSimulation: def GetResources(self): return { "Pixmap": "Assembly_CreateSimulation", - "MenuText": QT_TRANSLATE_NOOP("Assembly_CreateSimulation", "Create Simulation"), + "MenuText": QT_TRANSLATE_NOOP("Assembly_CreateSimulation", "Simulation"), "Accel": "V", "ToolTip": "

" + QT_TRANSLATE_NOOP( "Assembly_CreateSimulation", - "Create a simulation of the current assembly.", + "Creates a new simulation of the current assembly", ) + "

", "CmdType": "ForEdit", @@ -495,13 +495,13 @@ class MotionEditDialog: layout = QGridLayout(self.dialog) # Add labels and widgets to the layout - layout.addWidget(QLabel("Joint:"), 0, 0) + layout.addWidget(QLabel("Joint"), 0, 0) layout.addWidget(self.joint_combo, 0, 1) - layout.addWidget(QLabel("Motion Type:"), 1, 0) + layout.addWidget(QLabel("Motion Type"), 1, 0) layout.addWidget(self.motion_type_combo, 1, 1) - layout.addWidget(QLabel("Formula:"), 2, 0) + layout.addWidget(QLabel("Formula"), 2, 0) layout.addWidget(formula_edit, 2, 1) # Add the help label above the buttons diff --git a/src/Mod/Assembly/CommandCreateView.py b/src/Mod/Assembly/CommandCreateView.py index 6cbac7cad6..3c8964d767 100644 --- a/src/Mod/Assembly/CommandCreateView.py +++ b/src/Mod/Assembly/CommandCreateView.py @@ -51,12 +51,12 @@ class CommandCreateView: def GetResources(self): return { "Pixmap": "Assembly_ExplodedView", - "MenuText": QT_TRANSLATE_NOOP("Assembly_CreateView", "Create Exploded View"), + "MenuText": QT_TRANSLATE_NOOP("Assembly_CreateView", "Exploded View"), "Accel": "E", "ToolTip": "

" + QT_TRANSLATE_NOOP( "Assembly_CreateView", - "Create an exploded view of the current assembly.", + "Creates an exploded view of the current assembly", ) + "

", "CmdType": "ForEdit", diff --git a/src/Mod/Assembly/CommandInsertLink.py b/src/Mod/Assembly/CommandInsertLink.py index ff2b694ab7..46d160acf1 100644 --- a/src/Mod/Assembly/CommandInsertLink.py +++ b/src/Mod/Assembly/CommandInsertLink.py @@ -46,7 +46,7 @@ tooltip = ( "

" + QT_TRANSLATE_NOOP( "Assembly_InsertLink", - "Insert a component into the active assembly. This will create dynamic links to parts, bodies, primitives, and assemblies. To insert external components, make sure that the file is open in the current session", + "Inserts a component into the active assembly. This will create dynamic links to parts, bodies, primitives, and assemblies. To insert external components, make sure that the file is open in the current session", ) + "