i18n: even more integration

autoformat
This commit is contained in:
Ly-sec
2025-09-24 14:24:21 +02:00
parent 2a23b6afdd
commit 2bfed74851
35 changed files with 301 additions and 245 deletions
+3 -1
View File
@@ -263,7 +263,9 @@ NPanel {
spacing: Style.marginXS * scaling
NText {
text: `${modelData.signal}%`
text: I18n.tr("system.signal-strength", {
"signal": modelData.signal
})
font.pointSize: Style.fontSizeXXS * scaling
color: Color.mOnSurfaceVariant
}
+3 -1
View File
@@ -48,7 +48,9 @@ Item {
icon: "keyboard"
autoHide: false // Important to be false so we can hover as long as we want
text: currentLayout.toUpperCase()
tooltipText: `${currentLayout.toUpperCase()} keyboard layout`
tooltipText: I18n.tr("tooltips.keyboard-layout", {
"layout": currentLayout.toUpperCase()
})
forceOpen: root.displayMode === "forceOpen"
forceClose: root.displayMode === "alwaysHide"
onClicked: {
+3 -1
View File
@@ -97,7 +97,9 @@ Item {
suffix: "%"
forceOpen: displayMode === "alwaysShow"
forceClose: displayMode === "alwaysHide"
tooltipText: I18n.tr("tooltips.microphone-volume-at", {"volume": Math.round(AudioService.inputVolume * 100)})
tooltipText: I18n.tr("tooltips.microphone-volume-at", {
"volume": Math.round(AudioService.inputVolume * 100)
})
onWheel: function (delta) {
wheelAccumulator += delta
+3 -1
View File
@@ -16,7 +16,9 @@ NIconButton {
visible: PowerProfileService.available
icon: PowerProfileService.getIcon()
tooltipText: `'${PowerProfileService.getName()}' power profile`
tooltipText: I18n.tr("tooltips.power-profile", {
"profile": PowerProfileService.getName()
})
compact: (Settings.data.bar.density === "compact")
colorBg: (PowerProfileService.profile === PowerProfile.Balanced) ? (Settings.data.bar.showCapsule ? Color.mSurfaceVariant : Color.transparent) : Color.mPrimary
colorFg: (PowerProfileService.profile === PowerProfile.Balanced) ? Color.mOnSurface : Color.mOnPrimary
+6 -2
View File
@@ -120,7 +120,9 @@ Rectangle {
columnSpacing: Style.marginXXS * scaling
NText {
text: `${SystemStatService.cpuTemp}°C`
text: I18n.tr("system.cpu-temperature", {
"temp": SystemStatService.cpuTemp
})
font.family: Settings.data.ui.fontFixed
font.pointSize: textSize
font.weight: Style.fontWeightMedium
@@ -283,7 +285,9 @@ Rectangle {
columnSpacing: isVertical ? (Style.marginXXS * scaling) : (Style.marginXS * scaling)
NText {
text: `${SystemStatService.diskPercent}%`
text: I18n.tr("system.disk-usage", {
"percent": SystemStatService.diskPercent
})
font.family: Settings.data.ui.fontFixed
font.pointSize: textSize
font.weight: Style.fontWeightMedium
+3 -1
View File
@@ -83,7 +83,9 @@ Item {
suffix: "%"
forceOpen: displayMode === "alwaysShow"
forceClose: displayMode === "alwaysHide"
tooltipText: I18n.tr("tooltips.volume-at", {"volume": Math.round(AudioService.volume * 100)})
tooltipText: I18n.tr("tooltips.volume-at", {
"volume": Math.round(AudioService.volume * 100)
})
onWheel: function (delta) {
wheelAccumulator += delta