mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-15 02:37:49 -06:00
Use category as fallback translation for intents instead of "unkown"
This commit is contained in:
parent
4901b82d48
commit
59be3e195d
1 changed files with 1 additions and 1 deletions
|
@ -107,7 +107,7 @@ class IntentCategoryModel(ListModel):
|
||||||
qualities = IntentModel()
|
qualities = IntentModel()
|
||||||
qualities.setIntentCategory(category)
|
qualities.setIntentCategory(category)
|
||||||
result.append({
|
result.append({
|
||||||
"name": IntentCategoryModel.translation(category, "name", catalog.i18nc("@label", "Unknown")),
|
"name": IntentCategoryModel.translation(category, "name", category),
|
||||||
"description": IntentCategoryModel.translation(category, "description", None),
|
"description": IntentCategoryModel.translation(category, "description", None),
|
||||||
"intent_category": category,
|
"intent_category": category,
|
||||||
"weight": list(IntentCategoryModel._get_translations().keys()).index(category),
|
"weight": list(IntentCategoryModel._get_translations().keys()).index(category),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue