From 7fe5443620b40051fdf1762bc018d0876ed0389e Mon Sep 17 00:00:00 2001 From: fkDead Date: Thu, 26 Nov 2026 18:18:28 +0100 Subject: [PATCH] feat(i18n): translate the waybar labels --- .../usr/local/share/fws/waybar-config.json | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/configs/releng/airootfs/usr/local/share/fws/waybar-config.json b/configs/releng/airootfs/usr/local/share/fws/waybar-config.json index 4182a78..bc6b98b 100644 --- a/configs/releng/airootfs/usr/local/share/fws/waybar-config.json +++ b/configs/releng/airootfs/usr/local/share/fws/waybar-config.json @@ -12,14 +12,14 @@ "custom/power": { "format": "󰐥", - "tooltip-format": "Alimentation (SUPER+X)", + "tooltip-format": "{{t:bar.power_menu}} (SUPER+X)", "on-click": "fws-powermenu" }, "custom/updates": { "exec": "fws-updates-check", "interval": 1800, - "tooltip-format": "Mises à jour disponibles — clic pour installer", + "tooltip-format": "{{t:bar.updates_tooltip}}", "on-click": "kitty -e fws-update" }, @@ -44,8 +44,8 @@ } }, "custom/keyhelp": { - "format": "󰌌 Raccourcis", - "tooltip-format": "Raccourcis clavier (SUPER+K)", + "format": "󰌌 {{t:bar.shortcuts}}", + "tooltip-format": "{{t:bar.keyboard_shortcuts}} (SUPER+K)", "on-click": "fws-keys" }, "backlight": { @@ -53,17 +53,17 @@ "format-icons": ["󰃞", "󰃟", "󰃠"], "on-scroll-up": "brightnessctl set +5%", "on-scroll-down": "brightnessctl set 5%-", - "tooltip-format": "Luminosité {percent}% (molette pour régler)" + "tooltip-format": "{{t:bar.brightness}} {percent}% ({{t:bar.scroll_to_adjust}})" }, "pulseaudio": { "format": "{icon} {volume}%", - "format-muted": "󰝟 muet", + "format-muted": "󰝟 {{t:bar.muted}}", "format-icons": { "default": ["󰕿", "󰖀", "󰕾"] }, "on-click": "pavucontrol", "on-click-right": "wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle", "on-scroll-up": "wpctl set-volume -l 1 @DEFAULT_AUDIO_SINK@ 2%+", "on-scroll-down": "wpctl set-volume @DEFAULT_AUDIO_SINK@ 2%-", - "tooltip-format": "{desc} — clic : mixeur, clic droit : muet" + "tooltip-format": "{desc} — {{t:bar.volume_tooltip}}" }, "bluetooth": { "format": "󰂯", @@ -77,7 +77,7 @@ "network": { "format-wifi": "󰤨 {essid}", "format-ethernet": "󰈀 {ipaddr}", - "format-disconnected": "󰤭 hors ligne", + "format-disconnected": "󰤭 {{t:bar.offline}}", "tooltip-format": "{ifname} — {ipaddr}\n⇡ {bandwidthUpBytes} ⇣ {bandwidthDownBytes}" }, "cpu": { @@ -87,7 +87,7 @@ "memory": { "format": " {percentage}%", "interval": 3, - "tooltip-format": "{used:0.1f} / {total:0.1f} Gio" + "tooltip-format": "{used:0.1f} / {total:0.1f} {{t:bar.gib_unit}}" }, "battery": { "states": { "warning": 25, "critical": 10 },