diff options
author | Jaime van Kessel <nallath@gmail.com> | 2019-11-05 16:57:44 +0300 |
---|---|---|
committer | Jaime van Kessel <nallath@gmail.com> | 2019-11-05 16:57:44 +0300 |
commit | ff8d8735de168a7ba61c1d8188f5ae353c4f786d (patch) | |
tree | 9e37da550e6847c5e2d6a364034da02fbbb8620b | |
parent | 674d8d387b0769bbd698e69c6115286bedf4f31e (diff) |
Make the intents in QualityManagementModel also translated
CURA-6956
-rw-r--r-- | cura/Machines/Models/QualityManagementModel.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cura/Machines/Models/QualityManagementModel.py b/cura/Machines/Models/QualityManagementModel.py index d8b0785778..6a73a1104f 100644 --- a/cura/Machines/Models/QualityManagementModel.py +++ b/cura/Machines/Models/QualityManagementModel.py @@ -14,6 +14,7 @@ from cura.Machines.ContainerTree import ContainerTree from cura.Settings.cura_empty_instance_containers import empty_quality_changes_container from cura.Settings.IntentManager import IntentManager from cura.Machines.Models.MachineModelUtils import fetchLayerHeight +from cura.Machines.Models.IntentTranslations import intent_translations from UM.i18n import i18nCatalog catalog = i18nCatalog("cura") @@ -336,7 +337,7 @@ class QualityManagementModel(ListModel): "quality_type": quality_type, "quality_changes_group": None, "intent_category": intent_category, - "section_name": catalog.i18nc("@label", intent_category.capitalize()), + "section_name": catalog.i18nc("@label", intent_translations.get(intent_category, {}).get("name", catalog.i18nc("@label", "Unknown"))), }) # Sort by quality_type for each intent category result = sorted(result, key = lambda x: (x["intent_category"], x["quality_type"])) |