mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-16 03:07:53 -06:00
Make generated extruder options translateable
These do appear in the actual interface.
This commit is contained in:
parent
5c0488c182
commit
dea230ed6a
1 changed files with 5 additions and 2 deletions
|
@ -4,6 +4,7 @@
|
|||
from PyQt5.QtCore import Qt, pyqtSignal, pyqtProperty, QTimer
|
||||
from typing import Iterable
|
||||
|
||||
from UM.i18n import i18nCatalog
|
||||
import UM.Qt.ListModel
|
||||
from UM.Application import Application
|
||||
import UM.FlameProfiler
|
||||
|
@ -11,6 +12,8 @@ from cura.Settings.ExtruderManager import ExtruderManager
|
|||
from cura.Settings.ExtruderStack import ExtruderStack #To listen to changes on the extruders.
|
||||
from cura.Settings.MachineManager import MachineManager #To listen to changes on the extruders of the currently active machine.
|
||||
|
||||
catalog = i18nCatalog("cura")
|
||||
|
||||
## Model that holds extruders.
|
||||
#
|
||||
# This model is designed for use by any list of extruders, but specifically
|
||||
|
@ -172,7 +175,7 @@ class ExtrudersModel(UM.Qt.ListModel.ListModel):
|
|||
color = material.getMetaDataEntry("color_code", default = self.defaultColors[0]) if material else self.defaultColors[0]
|
||||
item = {
|
||||
"id": global_container_stack.getId(),
|
||||
"name": "Global",
|
||||
"name": catalog.i18nc("@menuitem", "Global"),
|
||||
"color": color,
|
||||
"index": -1,
|
||||
"definition": ""
|
||||
|
@ -215,7 +218,7 @@ class ExtrudersModel(UM.Qt.ListModel.ListModel):
|
|||
if self._add_optional_extruder:
|
||||
item = {
|
||||
"id": "",
|
||||
"name": "Not overridden",
|
||||
"name": catalog.i18nc("@menuitem", "Not overridden"),
|
||||
"color": "#ffffff",
|
||||
"index": -1,
|
||||
"definition": ""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue