Merge pull request #20430 from Ultimaker/CURA-11911_recommended-view-translations

CURA-11911 Recommended view translations
This commit is contained in:
HellAholic 2025-03-24 10:14:29 +01:00 committed by GitHub
commit 1f62c1f944
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 6 additions and 2 deletions

View File

@ -4284,7 +4284,7 @@ msgstr "Interface du support"
msgctxt "@action:label" msgctxt "@action:label"
msgid "Support Type" msgid "Support Type"
msgstr "Type de prise en charge" msgstr "Structure du support"
msgctxt "@label Description for application dependency" msgctxt "@label Description for application dependency"
msgid "Support library for faster math" msgid "Support library for faster math"

View File

@ -12,7 +12,8 @@ import Cura 1.7 as Cura
// All of the setting updating logic is handled by this component. // All of the setting updating logic is handled by this component.
// This uses the "options" value of a setting to populate the drop down. This will only work for settings with "options" // This uses the "options" value of a setting to populate the drop down. This will only work for settings with "options"
// If the setting is limited to a single extruder or is settable with different values per extruder use "updateAllExtruders: true" // If the setting is limited to a single extruder or is settable with different values per extruder use "updateAllExtruders: true"
Cura.ComboBox { Cura.ComboBox
{
textRole: "text" textRole: "text"
property alias settingName: propertyProvider.key property alias settingName: propertyProvider.key
property alias propertyRemoveUnusedValue: propertyProvider.removeUnusedValue property alias propertyRemoveUnusedValue: propertyProvider.removeUnusedValue
@ -23,6 +24,8 @@ Cura.ComboBox {
// This is only used if updateAllExtruders == true // This is only used if updateAllExtruders == true
property int defaultExtruderIndex: Cura.ExtruderManager.activeExtruderIndex property int defaultExtruderIndex: Cura.ExtruderManager.activeExtruderIndex
UM.I18nCatalog { id: settings_catalog; name: "fdmprinter.def.json" }
model: ListModel model: ListModel
{ {
id: comboboxModel id: comboboxModel
@ -42,6 +45,7 @@ Cura.ComboBox {
{ {
var key = propertyProvider.properties["options"].keys()[i] var key = propertyProvider.properties["options"].keys()[i]
var value = propertyProvider.properties["options"][key] var value = propertyProvider.properties["options"][key]
value = settings_catalog.i18nc(settingName + " option " + key, value)
comboboxModel.append({ text: value, code: key}) comboboxModel.append({ text: value, code: key})
if (propertyProvider.properties.value === key) if (propertyProvider.properties.value === key)