Also don't translate 'configure' keyword on MacOS

Another attempt at finalising CURA-8245.
This commit is contained in:
Ghostkeeper 2021-07-21 13:30:19 +02:00
parent 109fce5211
commit e04a2b5e92
No known key found for this signature in database
GPG key ID: D2A8871EE34EC59A

View file

@ -180,7 +180,14 @@ Item
Action
{
id: preferencesAction
text: catalog.i18nc("@action:inmenu", "Configure Cura...")
//On MacOS, don't translate the "Configure" word.
//Qt moves the "configure" entry to a different place, and if it got renamed can't find it again when it
//attempts to delete the item upon closing the application, causing a crash.
//In the new location, these items are translated automatically according to the system's language.
//For more information, see:
//- https://doc.qt.io/qt-5/macos-issues.html#menu-bar
//- https://doc.qt.io/qt-5/qmenubar.html#qmenubar-as-a-global-menu-bar
text: (Qt.platform.os == "osx") ? "Configure Cura..." : catalog.i18nc("@action:inmenu", "Configure Cura...")
iconName: "configure"
}