mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-13 06:19:02 +08:00
Use category as fallback translation for intents instead of "unkown"
This commit is contained in:
parent
4901b82d48
commit
59be3e195d
@ -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…
x
Reference in New Issue
Block a user