From f679b557dc391cc362a123c4ddfae69c492c4be9 Mon Sep 17 00:00:00 2001 From: Jaime van Kessel Date: Thu, 31 Oct 2019 11:51:40 +0100 Subject: [PATCH] Add visual quality to model to be translatable CURA-6942 --- cura/Machines/Models/IntentCategoryModel.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/cura/Machines/Models/IntentCategoryModel.py b/cura/Machines/Models/IntentCategoryModel.py index 0ff52b325a..20d07864bf 100644 --- a/cura/Machines/Models/IntentCategoryModel.py +++ b/cura/Machines/Models/IntentCategoryModel.py @@ -35,16 +35,20 @@ class IntentCategoryModel(ListModel): _translations["default"] = { "name": catalog.i18nc("@label", "Default") } + _translations["visual"] = { + "name": catalog.i18nc("@label", "Visual"), + "description": catalog.i18nc("@text", "Optimized for appearance") + } _translations["engineering"] = { "name": catalog.i18nc("@label", "Engineering"), "description": catalog.i18nc("@text", "Suitable for engineering work") - } _translations["smooth"] = { "name": catalog.i18nc("@label", "Smooth"), "description": catalog.i18nc("@text", "Optimized for a smooth surfaces") } + ## Creates a new model for a certain intent category. # \param The category to list the intent profiles for. def __init__(self, intent_category: str) -> None: