Assembly: Update UI strings for consistency

Closes: #22194
This commit is contained in:
Ryan Kembrey
2025-06-26 23:15:22 +10:00
committed by Kacper Donat
parent 627a89d8db
commit 2c7ee9b8ed
14 changed files with 93 additions and 112 deletions

View File

@@ -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": "<p>"
+ 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",
)
+ "</p>"
+ "<p>"
+ 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.",
)
+ "</p>",
"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": "<p>"
+ 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",
)
+ "</p>",
"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": "<p>"
+ 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",
)
+ "</p>",
"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": "<p>"
+ 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",
)
+ "</p>",
"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": "<p>"
+ 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",
)
+ "</p>",
"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": "<p>"
+ 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",
)
+ "</p><p>"
+ 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.",
)
+ "</p>",
@@ -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": "<p>"
+ 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",
)
+ "</p>",
"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": "<p>"
+ 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",
)
+ "</p>",
"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": "<p>"
+ 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",
)
+ "</p>",
"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": "<p>"
+ 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",
)
+ "</p><p>"
+ 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.",
)
+ "</p>",
"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": "<p>"
+ 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",
)
+ "</p><p>"
+ 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": "<p>"
+ 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.",
)
+ "</p><p>"
+ 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": "<p>"
+ 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.",
)
+ "</p><p>"
+ 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": "<p>"
+ 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",
)
+ "</p><p>"
+ 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": "<p>"
+ 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.",
)
+ "</p>",
"CmdType": "ForEdit",