mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-06 14:37:29 -06:00
Make extension menu items translatable
If these extension plug-ins don't set their menu names, the plug-in name is used as the menu name. The plug-in names are not translated, so this appears as an untranslated string then.
This commit is contained in:
parent
103d79c89d
commit
163f102dda
2 changed files with 4 additions and 2 deletions
|
@ -32,7 +32,8 @@ class PostProcessingPlugin(QObject, Extension):
|
|||
def __init__(self, parent = None) -> None:
|
||||
QObject.__init__(self, parent)
|
||||
Extension.__init__(self)
|
||||
self.addMenuItem(i18n_catalog.i18n("Modify G-Code"), self.showPopup)
|
||||
self.setMenuName(i18n_catalog.i18nc("@item:inmenu", "Post Processing"))
|
||||
self.addMenuItem(i18n_catalog.i18nc("@item:inmenu", "Modify G-Code"), self.showPopup)
|
||||
self._view = None
|
||||
|
||||
# Loaded scripts are all scripts that can be used
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue