mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-15 04:15:54 +08:00
Fix translation of category headers on profiles page
Contributes to CURA-3123 (No, not really, but I do not want to make a new issue)
This commit is contained in:
parent
a2f98638cf
commit
94a50362e1
@ -185,6 +185,8 @@ class QualitySettingsModel(UM.Qt.ListModel.ListModel):
|
|||||||
for definition in definition_container.findDefinitions():
|
for definition in definition_container.findDefinitions():
|
||||||
if definition.type == "category":
|
if definition.type == "category":
|
||||||
current_category = definition.label
|
current_category = definition.label
|
||||||
|
if self._i18n_catalog:
|
||||||
|
current_category = self._i18n_catalog.i18nc(definition.key + " label", definition.label)
|
||||||
continue
|
continue
|
||||||
|
|
||||||
profile_value = None
|
profile_value = None
|
||||||
@ -237,4 +239,4 @@ class QualitySettingsModel(UM.Qt.ListModel.ListModel):
|
|||||||
"category": current_category
|
"category": current_category
|
||||||
})
|
})
|
||||||
|
|
||||||
self.setItems(items)
|
self.setItems(items)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user