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:
Arjen Hiemstra 2016-12-12 16:02:51 +01:00
parent a2f98638cf
commit 94a50362e1

View file

@ -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)