mirror of
https://github.com/zoriya/noctalia-shell.git
synced 2026-08-15 18:43:59 +00:00
i18n: even more integration
autoformat
This commit is contained in:
@@ -63,7 +63,9 @@ Popup {
|
||||
Layout.fillWidth: true
|
||||
|
||||
NText {
|
||||
text: `${widgetSettings.widgetId} Settings`
|
||||
text: I18n.tr("system.widget-settings-title", {
|
||||
"widget": widgetSettings.widgetId
|
||||
})
|
||||
font.pointSize: Style.fontSizeL * scaling
|
||||
font.weight: Style.fontWeightBold
|
||||
color: Color.mPrimary
|
||||
|
||||
@@ -28,20 +28,16 @@ ColumnLayout {
|
||||
label: I18n.tr("bar.widget-settings.battery.display-mode.label")
|
||||
description: I18n.tr("bar.widget-settings.battery.display-mode.description")
|
||||
minimumWidth: 134 * scaling
|
||||
model: [
|
||||
{
|
||||
key: "onhover",
|
||||
name: I18n.tr("options.display-mode.on-hover")
|
||||
},
|
||||
{
|
||||
key: "alwaysShow",
|
||||
name: I18n.tr("options.display-mode.always-show")
|
||||
},
|
||||
{
|
||||
key: "alwaysHide",
|
||||
name: I18n.tr("options.display-mode.always-hide")
|
||||
}
|
||||
]
|
||||
model: [{
|
||||
"key": "onhover",
|
||||
"name": I18n.tr("options.display-mode.on-hover")
|
||||
}, {
|
||||
"key": "alwaysShow",
|
||||
"name": I18n.tr("options.display-mode.always-show")
|
||||
}, {
|
||||
"key": "alwaysHide",
|
||||
"name": I18n.tr("options.display-mode.always-hide")
|
||||
}]
|
||||
currentKey: root.valueDisplayMode
|
||||
onSelected: key => root.valueDisplayMode = key
|
||||
}
|
||||
|
||||
@@ -26,20 +26,16 @@ ColumnLayout {
|
||||
label: I18n.tr("bar.widget-settings.brightness.display-mode.label")
|
||||
description: I18n.tr("bar.widget-settings.brightness.display-mode.description")
|
||||
minimumWidth: 134 * scaling
|
||||
model: [
|
||||
{
|
||||
key: "onhover",
|
||||
name: I18n.tr("options.display-mode.on-hover")
|
||||
},
|
||||
{
|
||||
key: "alwaysShow",
|
||||
name: I18n.tr("options.display-mode.always-show")
|
||||
},
|
||||
{
|
||||
key: "alwaysHide",
|
||||
name: I18n.tr("options.display-mode.always-hide")
|
||||
}
|
||||
]
|
||||
model: [{
|
||||
"key": "onhover",
|
||||
"name": I18n.tr("options.display-mode.on-hover")
|
||||
}, {
|
||||
"key": "alwaysShow",
|
||||
"name": I18n.tr("options.display-mode.always-show")
|
||||
}, {
|
||||
"key": "alwaysHide",
|
||||
"name": I18n.tr("options.display-mode.always-hide")
|
||||
}]
|
||||
currentKey: valueDisplayMode
|
||||
onSelected: key => valueDisplayMode = key
|
||||
}
|
||||
|
||||
@@ -26,20 +26,16 @@ ColumnLayout {
|
||||
label: I18n.tr("bar.widget-settings.keyboard-layout.display-mode.label")
|
||||
description: I18n.tr("bar.widget-settings.keyboard-layout.display-mode.description")
|
||||
minimumWidth: 134 * scaling
|
||||
model: [
|
||||
{
|
||||
key: "onhover",
|
||||
name: I18n.tr("options.display-mode.on-hover")
|
||||
},
|
||||
{
|
||||
key: "forceOpen",
|
||||
name: I18n.tr("options.display-mode.force-open")
|
||||
},
|
||||
{
|
||||
key: "alwaysHide",
|
||||
name: I18n.tr("options.display-mode.always-hide")
|
||||
}
|
||||
]
|
||||
model: [{
|
||||
"key": "onhover",
|
||||
"name": I18n.tr("options.display-mode.on-hover")
|
||||
}, {
|
||||
"key": "forceOpen",
|
||||
"name": I18n.tr("options.display-mode.force-open")
|
||||
}, {
|
||||
"key": "alwaysHide",
|
||||
"name": I18n.tr("options.display-mode.always-hide")
|
||||
}]
|
||||
currentKey: valueDisplayMode
|
||||
onSelected: key => valueDisplayMode = key
|
||||
}
|
||||
|
||||
@@ -41,20 +41,16 @@ ColumnLayout {
|
||||
NComboBox {
|
||||
visible: valueShowVisualizer
|
||||
label: I18n.tr("bar.widget-settings.media-mini.visualizer-type")
|
||||
model: [
|
||||
{
|
||||
key: "linear",
|
||||
name: I18n.tr("options.visualizer-types.linear")
|
||||
},
|
||||
{
|
||||
key: "mirrored",
|
||||
name: I18n.tr("options.visualizer-types.mirrored")
|
||||
},
|
||||
{
|
||||
key: "wave",
|
||||
name: I18n.tr("options.visualizer-types.wave")
|
||||
}
|
||||
]
|
||||
model: [{
|
||||
"key": "linear",
|
||||
"name": I18n.tr("options.visualizer-types.linear")
|
||||
}, {
|
||||
"key": "mirrored",
|
||||
"name": I18n.tr("options.visualizer-types.mirrored")
|
||||
}, {
|
||||
"key": "wave",
|
||||
"name": I18n.tr("options.visualizer-types.wave")
|
||||
}]
|
||||
currentKey: valueVisualizerType
|
||||
onSelected: key => valueVisualizerType = key
|
||||
minimumWidth: 200 * scaling
|
||||
|
||||
@@ -26,20 +26,16 @@ ColumnLayout {
|
||||
label: I18n.tr("bar.widget-settings.microphone.display-mode.label")
|
||||
description: I18n.tr("bar.widget-settings.microphone.display-mode.description")
|
||||
minimumWidth: 134 * scaling
|
||||
model: [
|
||||
{
|
||||
key: "onhover",
|
||||
name: I18n.tr("options.display-mode.on-hover")
|
||||
},
|
||||
{
|
||||
key: "alwaysShow",
|
||||
name: I18n.tr("options.display-mode.always-show")
|
||||
},
|
||||
{
|
||||
key: "alwaysHide",
|
||||
name: I18n.tr("options.display-mode.always-hide")
|
||||
}
|
||||
]
|
||||
model: [{
|
||||
"key": "onhover",
|
||||
"name": I18n.tr("options.display-mode.on-hover")
|
||||
}, {
|
||||
"key": "alwaysShow",
|
||||
"name": I18n.tr("options.display-mode.always-show")
|
||||
}, {
|
||||
"key": "alwaysHide",
|
||||
"name": I18n.tr("options.display-mode.always-hide")
|
||||
}]
|
||||
currentKey: valueDisplayMode
|
||||
onSelected: key => valueDisplayMode = key
|
||||
}
|
||||
|
||||
@@ -26,20 +26,16 @@ ColumnLayout {
|
||||
label: I18n.tr("bar.widget-settings.volume.display-mode.label")
|
||||
description: I18n.tr("bar.widget-settings.volume.display-mode.description")
|
||||
minimumWidth: 134 * scaling
|
||||
model: [
|
||||
{
|
||||
key: "onhover",
|
||||
name: I18n.tr("options.display-mode.on-hover")
|
||||
},
|
||||
{
|
||||
key: "alwaysShow",
|
||||
name: I18n.tr("options.display-mode.always-show")
|
||||
},
|
||||
{
|
||||
key: "alwaysHide",
|
||||
name: I18n.tr("options.display-mode.always-hide")
|
||||
}
|
||||
]
|
||||
model: [{
|
||||
"key": "onhover",
|
||||
"name": I18n.tr("options.display-mode.on-hover")
|
||||
}, {
|
||||
"key": "alwaysShow",
|
||||
"name": I18n.tr("options.display-mode.always-show")
|
||||
}, {
|
||||
"key": "alwaysHide",
|
||||
"name": I18n.tr("options.display-mode.always-hide")
|
||||
}]
|
||||
currentKey: valueDisplayMode
|
||||
onSelected: key => valueDisplayMode = key
|
||||
}
|
||||
|
||||
@@ -24,20 +24,16 @@ ColumnLayout {
|
||||
id: labelModeCombo
|
||||
|
||||
label: I18n.tr("bar.widget-settings.workspace.label-mode")
|
||||
model: [
|
||||
{
|
||||
key: "none",
|
||||
name: I18n.tr("options.workspace-labels.none")
|
||||
},
|
||||
{
|
||||
key: "index",
|
||||
name: I18n.tr("options.workspace-labels.index")
|
||||
},
|
||||
{
|
||||
key: "name",
|
||||
name: I18n.tr("options.workspace-labels.name")
|
||||
}
|
||||
]
|
||||
model: [{
|
||||
"key": "none",
|
||||
"name": I18n.tr("options.workspace-labels.none")
|
||||
}, {
|
||||
"key": "index",
|
||||
"name": I18n.tr("options.workspace-labels.index")
|
||||
}, {
|
||||
"key": "name",
|
||||
"name": I18n.tr("options.workspace-labels.name")
|
||||
}]
|
||||
currentKey: widgetData.labelMode || widgetMetadata.labelMode
|
||||
onSelected: key => labelModeCombo.currentKey = key
|
||||
minimumWidth: 200 * scaling
|
||||
|
||||
Reference in New Issue
Block a user