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
|
||||
|
||||
@@ -326,24 +326,19 @@ ColumnLayout {
|
||||
id: audioVisualizerCombo
|
||||
label: I18n.tr("settings.audio.media.visualizer-type.label")
|
||||
description: I18n.tr("settings.audio.media.visualizer-type.description")
|
||||
model: [
|
||||
{
|
||||
key: "none",
|
||||
name: I18n.tr("options.visualizer-types.none")
|
||||
},
|
||||
{
|
||||
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": "none",
|
||||
"name": I18n.tr("options.visualizer-types.none")
|
||||
}, {
|
||||
"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: Settings.data.audio.visualizerType
|
||||
onSelected: key => Settings.data.audio.visualizerType = key
|
||||
}
|
||||
@@ -351,36 +346,28 @@ ColumnLayout {
|
||||
NComboBox {
|
||||
label: I18n.tr("settings.audio.media.frame-rate.label")
|
||||
description: I18n.tr("settings.audio.media.frame-rate.description")
|
||||
model: [
|
||||
{
|
||||
key: "30",
|
||||
name: I18n.tr("options.frame-rates.30-fps")
|
||||
},
|
||||
{
|
||||
key: "60",
|
||||
name: I18n.tr("options.frame-rates.60-fps")
|
||||
},
|
||||
{
|
||||
key: "100",
|
||||
name: I18n.tr("options.frame-rates.100-fps")
|
||||
},
|
||||
{
|
||||
key: "120",
|
||||
name: I18n.tr("options.frame-rates.120-fps")
|
||||
},
|
||||
{
|
||||
key: "144",
|
||||
name: I18n.tr("options.frame-rates.144-fps")
|
||||
},
|
||||
{
|
||||
key: "165",
|
||||
name: I18n.tr("options.frame-rates.165-fps")
|
||||
},
|
||||
{
|
||||
key: "240",
|
||||
name: I18n.tr("options.frame-rates.240-fps")
|
||||
}
|
||||
]
|
||||
model: [{
|
||||
"key": "30",
|
||||
"name": I18n.tr("options.frame-rates.30-fps")
|
||||
}, {
|
||||
"key": "60",
|
||||
"name": I18n.tr("options.frame-rates.60-fps")
|
||||
}, {
|
||||
"key": "100",
|
||||
"name": I18n.tr("options.frame-rates.100-fps")
|
||||
}, {
|
||||
"key": "120",
|
||||
"name": I18n.tr("options.frame-rates.120-fps")
|
||||
}, {
|
||||
"key": "144",
|
||||
"name": I18n.tr("options.frame-rates.144-fps")
|
||||
}, {
|
||||
"key": "165",
|
||||
"name": I18n.tr("options.frame-rates.165-fps")
|
||||
}, {
|
||||
"key": "240",
|
||||
"name": I18n.tr("options.frame-rates.240-fps")
|
||||
}]
|
||||
currentKey: Settings.data.audio.cavaFrameRate
|
||||
onSelected: key => Settings.data.audio.cavaFrameRate = key
|
||||
}
|
||||
|
||||
@@ -277,7 +277,11 @@ ColumnLayout {
|
||||
delegate: NCheckbox {
|
||||
Layout.fillWidth: true
|
||||
label: modelData.name || "Unknown"
|
||||
description: `${modelData.model} (${modelData.width}x${modelData.height})`
|
||||
description: I18n.tr("system.monitor-description", {
|
||||
"model": modelData.model,
|
||||
"width": modelData.width,
|
||||
"height": modelData.height
|
||||
})
|
||||
checked: (Settings.data.bar.monitors || []).indexOf(modelData.name) !== -1
|
||||
onToggled: checked => {
|
||||
if (checked) {
|
||||
|
||||
@@ -90,7 +90,11 @@ ColumnLayout {
|
||||
|
||||
NLabel {
|
||||
label: modelData.name || "Unknown"
|
||||
description: `${modelData.model} (${modelData.width}x${modelData.height})`
|
||||
description: I18n.tr("system.monitor-description", {
|
||||
"model": modelData.model,
|
||||
"width": modelData.width,
|
||||
"height": modelData.height
|
||||
})
|
||||
}
|
||||
|
||||
// Scale
|
||||
@@ -114,7 +118,9 @@ ColumnLayout {
|
||||
stepSize: 0.01
|
||||
value: localScaling
|
||||
onPressedChanged: (pressed, value) => ScalingService.setScreenScale(modelData, value)
|
||||
text: `${Math.round(localScaling * 100)}%`
|
||||
text: I18n.tr("system.scaling-percentage", {
|
||||
"percentage": Math.round(localScaling * 100)
|
||||
})
|
||||
Layout.fillWidth: true
|
||||
}
|
||||
|
||||
|
||||
@@ -101,7 +101,11 @@ ColumnLayout {
|
||||
delegate: NCheckbox {
|
||||
Layout.fillWidth: true
|
||||
label: modelData.name || "Unknown"
|
||||
description: `${modelData.model} (${modelData.width}x${modelData.height})`
|
||||
description: I18n.tr("system.monitor-description", {
|
||||
"model": modelData.model,
|
||||
"width": modelData.width,
|
||||
"height": modelData.height
|
||||
})
|
||||
checked: (Settings.data.dock.monitors || []).indexOf(modelData.name) !== -1
|
||||
onToggled: checked => {
|
||||
if (checked) {
|
||||
|
||||
@@ -42,7 +42,10 @@ ColumnLayout {
|
||||
|
||||
NText {
|
||||
visible: LocationService.coordinatesReady
|
||||
text: `${LocationService.stableName} (${LocationService.displayCoordinates})`
|
||||
text: I18n.tr("system.location-display", {
|
||||
"name": LocationService.stableName,
|
||||
"coordinates": LocationService.displayCoordinates
|
||||
})
|
||||
font.pointSize: Style.fontSizeS * scaling
|
||||
color: Color.mOnSurfaceVariant
|
||||
verticalAlignment: Text.AlignVCenter
|
||||
|
||||
@@ -151,7 +151,11 @@ ColumnLayout {
|
||||
delegate: NCheckbox {
|
||||
Layout.fillWidth: true
|
||||
label: modelData.name || "Unknown"
|
||||
description: `${modelData.model} (${modelData.width}x${modelData.height})`
|
||||
description: I18n.tr("system.monitor-description", {
|
||||
"model": modelData.model,
|
||||
"width": modelData.width,
|
||||
"height": modelData.height
|
||||
})
|
||||
checked: (Settings.data.notifications.monitors || []).indexOf(modelData.name) !== -1
|
||||
onToggled: checked => {
|
||||
if (checked) {
|
||||
|
||||
@@ -61,16 +61,13 @@ ColumnLayout {
|
||||
NComboBox {
|
||||
label: I18n.tr("settings.screen-recorder.video.video-source.label")
|
||||
description: I18n.tr("settings.screen-recorder.video.video-source.description")
|
||||
model: [
|
||||
{
|
||||
key: "portal",
|
||||
name: I18n.tr("options.screen-recording.sources.portal")
|
||||
},
|
||||
{
|
||||
key: "screen",
|
||||
name: I18n.tr("options.screen-recording.sources.screen")
|
||||
}
|
||||
]
|
||||
model: [{
|
||||
"key": "portal",
|
||||
"name": I18n.tr("options.screen-recording.sources.portal")
|
||||
}, {
|
||||
"key": "screen",
|
||||
"name": I18n.tr("options.screen-recording.sources.screen")
|
||||
}]
|
||||
currentKey: Settings.data.screenRecorder.videoSource
|
||||
onSelected: key => Settings.data.screenRecorder.videoSource = key
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user