Merge pull request #9614 from chennes/fixPrefPageContext

Gui: Correct translation context of pref pages
This commit is contained in:
Chris Hennes
2023-05-20 19:53:32 -05:00
committed by GitHub
10 changed files with 71 additions and 117 deletions

View File

@@ -87,7 +87,7 @@ PyMOD_INIT_FUNC(PathGui)
loadPathResource();
// register preferences pages
new Gui::PrefPageProducer<PathGui::DlgSettingsPathColor> ("Path");
new Gui::PrefPageProducer<PathGui::DlgSettingsPathColor> (QT_TRANSLATE_NOOP("QObject","Path"));
PyMOD_Return(mod);
}

View File

@@ -64,11 +64,6 @@ class PathWorkbench(Workbench):
translate = FreeCAD.Qt.translate
FreeCADGui.addPreferencePage(PathPreferencesPathJob.JobPreferencesPage, "Path")
FreeCADGui.addPreferencePage(
PathPreferencesPathDressup.DressupPreferencesPage, "Path"
)
# load the builtin modules
import Path
import PathScripts
@@ -89,6 +84,11 @@ class PathWorkbench(Workbench):
import subprocess
from packaging.version import Version, parse
FreeCADGui.addPreferencePage(PathPreferencesPathJob.JobPreferencesPage, QT_TRANSLATE_NOOP("QObject", "Path"))
FreeCADGui.addPreferencePage(
PathPreferencesPathDressup.DressupPreferencesPage, QT_TRANSLATE_NOOP("QObject", "Path")
)
Path.GuiInit.Startup()
# build commands list
@@ -263,7 +263,7 @@ class PathWorkbench(Workbench):
from Path.Preferences import preferences
FreeCADGui.addPreferencePage(
PathPreferencesAdvanced.AdvancedPreferencesPage, "Path"
PathPreferencesAdvanced.AdvancedPreferencesPage, QT_TRANSLATE_NOOP("QObject", "Path")
)
Log("Loading Path workbench... done\n")