i18n: small fix

autoformat
This commit is contained in:
Ly-sec
2025-09-25 02:44:27 +02:00
parent 46d3465b50
commit ef616efcca
4 changed files with 71 additions and 23 deletions
+7
View File
@@ -102,6 +102,10 @@
"step-size": { "step-size": {
"label": "Volume step size", "label": "Volume step size",
"description": "Adjust the step size for volume changes (scroll wheel, keyboard shortcuts)." "description": "Adjust the step size for volume changes (scroll wheel, keyboard shortcuts)."
},
"volume-overdrive": {
"label": "Allow volume overdrive",
"description": "Allow raising volume above 100%. May not be supported by all hardware."
} }
}, },
"devices": { "devices": {
@@ -1086,6 +1090,9 @@
"hover": "Scroll On Hover", "hover": "Scroll On Hover",
"never": "Never Scroll" "never": "Never Scroll"
}, },
"frame-rates": {
"fps": "{fps} FPS"
},
"screen-recording": { "screen-recording": {
"sources": { "sources": {
+5 -5
View File
@@ -72,8 +72,6 @@ Item {
radius: (barPosition === "left" || barPosition === "right") ? width / 2 : Math.round(Style.radiusM * scaling) radius: (barPosition === "left" || barPosition === "right") ? width / 2 : Math.round(Style.radiusM * scaling)
color: Settings.data.bar.showCapsule ? Color.mSurfaceVariant : Color.transparent color: Settings.data.bar.showCapsule ? Color.mSurfaceVariant : Color.transparent
Item { Item {
id: mainContainer id: mainContainer
anchors.fill: parent anchors.fill: parent
@@ -359,7 +357,8 @@ Item {
} }
onEntered: { onEntered: {
if (scrollingMode !== "never") return if (scrollingMode !== "never")
return
if (barPosition === "left" || barPosition === "right") { if (barPosition === "left" || barPosition === "right") {
tooltip.show() tooltip.show()
} else if (tooltip.text !== "") { } else if (tooltip.text !== "") {
@@ -367,7 +366,8 @@ Item {
} }
} }
onExited: { onExited: {
if (scrollingMode !== "never") return if (scrollingMode !== "never")
return
if (barPosition === "left" || barPosition === "right") { if (barPosition === "left" || barPosition === "right") {
tooltip.hide() tooltip.hide()
} else { } else {
@@ -400,4 +400,4 @@ Item {
positionAbove: Settings.data.bar.position === "bottom" positionAbove: Settings.data.bar.position === "bottom"
delay: Style.tooltipDelayLong delay: Style.tooltipDelayLong
} }
} }
+23 -9
View File
@@ -134,8 +134,8 @@ ColumnLayout {
Layout.fillWidth: true Layout.fillWidth: true
NToggle { NToggle {
label: "Allow volume overdrive" label: I18n.tr("settings.audio.volumes.volume-overdrive.label")
description: "Allow raising volume above 100%. May not be supported by all hardware." description: I18n.tr("settings.audio.volumes.volume-overdrive.description")
checked: Settings.data.audio.volumeOverdrive checked: Settings.data.audio.volumeOverdrive
onToggled: checked => Settings.data.audio.volumeOverdrive = checked onToggled: checked => Settings.data.audio.volumeOverdrive = checked
} }
@@ -362,25 +362,39 @@ ColumnLayout {
description: I18n.tr("settings.audio.media.frame-rate.description") description: I18n.tr("settings.audio.media.frame-rate.description")
model: [{ model: [{
"key": "30", "key": "30",
"name": I18n.tr("options.frame-rates.30-fps") "name": I18n.tr("options.frame-rates.fps", {
"fps": "30"
})
}, { }, {
"key": "60", "key": "60",
"name": I18n.tr("options.frame-rates.60-fps") "name": I18n.tr("options.frame-rates.fps", {
"fps": "60"
})
}, { }, {
"key": "100", "key": "100",
"name": I18n.tr("options.frame-rates.100-fps") "name": I18n.tr("options.frame-rates.fps", {
"fps": "100"
})
}, { }, {
"key": "120", "key": "120",
"name": I18n.tr("options.frame-rates.120-fps") "name": I18n.tr("options.frame-rates.fps", {
"fps": "120"
})
}, { }, {
"key": "144", "key": "144",
"name": I18n.tr("options.frame-rates.144-fps") "name": I18n.tr("options.frame-rates.fps", {
"fps": "144"
})
}, { }, {
"key": "165", "key": "165",
"name": I18n.tr("options.frame-rates.165-fps") "name": I18n.tr("options.frame-rates.fps", {
"fps": "165"
})
}, { }, {
"key": "240", "key": "240",
"name": I18n.tr("options.frame-rates.240-fps") "name": I18n.tr("options.frame-rates.fps", {
"fps": "240"
})
}] }]
currentKey: Settings.data.audio.cavaFrameRate currentKey: Settings.data.audio.cavaFrameRate
onSelected: key => Settings.data.audio.cavaFrameRate = key onSelected: key => Settings.data.audio.cavaFrameRate = key
+36 -9
View File
@@ -76,15 +76,42 @@ ColumnLayout {
NComboBox { NComboBox {
label: I18n.tr("settings.screen-recorder.video.frame-rate.label") label: I18n.tr("settings.screen-recorder.video.frame-rate.label")
description: I18n.tr("settings.screen-recorder.video.frame-rate.description") description: I18n.tr("settings.screen-recorder.video.frame-rate.description")
model: (function () { model: [{
const values = ["30", "60", "100", "120", "144", "165", "240"] "key": "30",
return values.map(function (v) { "name": I18n.tr("options.frame-rates.fps", {
return { "fps": "30"
"key": v, })
"name": (v + " FPS") }, {
} "key": "60",
}) "name": I18n.tr("options.frame-rates.fps", {
})() "fps": "60"
})
}, {
"key": "100",
"name": I18n.tr("options.frame-rates.fps", {
"fps": "100"
})
}, {
"key": "120",
"name": I18n.tr("options.frame-rates.fps", {
"fps": "120"
})
}, {
"key": "144",
"name": I18n.tr("options.frame-rates.fps", {
"fps": "144"
})
}, {
"key": "165",
"name": I18n.tr("options.frame-rates.fps", {
"fps": "165"
})
}, {
"key": "240",
"name": I18n.tr("options.frame-rates.fps", {
"fps": "240"
})
}]
currentKey: Settings.data.screenRecorder.frameRate currentKey: Settings.data.screenRecorder.frameRate
onSelected: key => Settings.data.screenRecorder.frameRate = key onSelected: key => Settings.data.screenRecorder.frameRate = key
} }