PartDesign: Update UI strings for consistency and correct for new fuctions and typos

Closes: #22128
This commit is contained in:
Max Wilfinger
2025-06-22 15:09:10 +02:00
committed by Kacper Donat
parent b267203e67
commit bee89d0447
87 changed files with 436 additions and 437 deletions

View File

@@ -160,7 +160,7 @@ class Shaft:
return self.segments[index].constraint
def updateEdge(self, column, start):
App.Console.PrintMessage("Not implemented yet - waiting for robust references...")
App.Console.PrintMessage("Not implemented yet - waiting for robust references")
return
"""
if self.sketchClosed is not True:

View File

@@ -101,8 +101,8 @@ class TaskWizardShaft:
except ImportError as e:
msgBox = QtGui.QMessageBox()
msgBox.setIcon(msgBox.Information)
msgBox.setWindowTitle(translate("TaskWizardShaft", "Missing module"))
msgBox.setText(translate("TaskWizardShaft", "You may have to install the Plot add-on"))
msgBox.setWindowTitle(translate("TaskWizardShaft", "Missing Module"))
msgBox.setText(translate("TaskWizardShaft", "The Plot add-on is not installed. Install it to enable this feature."))
msgBox.setDetailedText(traceback.format_exc())
msgBox.exec_()
def slotAllx(self):
@@ -185,8 +185,8 @@ class WizardShaftGui:
def GetResources(self):
IconPath = FreeCAD.ConfigGet("AppHomePath") + "Mod/PartDesign/WizardShaft/WizardShaft.svg"
MenuText = QtCore.QT_TRANSLATE_NOOP("PartDesign_WizardShaft", "Shaft design wizard...")
ToolTip = QtCore.QT_TRANSLATE_NOOP("PartDesign_WizardShaft", "Start the shaft design wizard")
MenuText = QtCore.QT_TRANSLATE_NOOP("PartDesign_WizardShaft", "Shaft Design Wizard")
ToolTip = QtCore.QT_TRANSLATE_NOOP("PartDesign_WizardShaft", "Starts the shaft design wizard")
return {'Pixmap': IconPath,
'MenuText': MenuText,
'ToolTip': ToolTip}

View File

@@ -61,7 +61,7 @@ class WizardShaftTable:
# Create table widget
self.widget = QtGui.QTableWidget(len(self.rowDict), 0)
self.widget.setObjectName("ShaftWizardTable") # Do not change or translate: Used in ViewProviderFemConstraintXXX
self.widget.setWindowTitle(translate("WizardShaftTable", "Shaft wizard"))
self.widget.setWindowTitle(translate("WizardShaftTable", "Shaft Wizard"))
self.widget.resize(QtCore.QSize(300,200))
self.editedRow = None
self.editedColumn = None