mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-08-05 04:54:04 -06: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
1 changed files with 3 additions and 1 deletions
|
@ -185,6 +185,8 @@ class QualitySettingsModel(UM.Qt.ListModel.ListModel):
|
|||
for definition in definition_container.findDefinitions():
|
||||
if definition.type == "category":
|
||||
current_category = definition.label
|
||||
if self._i18n_catalog:
|
||||
current_category = self._i18n_catalog.i18nc(definition.key + " label", definition.label)
|
||||
continue
|
||||
|
||||
profile_value = None
|
||||
|
@ -237,4 +239,4 @@ class QualitySettingsModel(UM.Qt.ListModel.ListModel):
|
|||
"category": current_category
|
||||
})
|
||||
|
||||
self.setItems(items)
|
||||
self.setItems(items)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue