From 1bcfb5b8c23011818edfabfb5140e77efe6f199e Mon Sep 17 00:00:00 2001 From: Aiser <2912778691@qq.com> Date: Mon, 27 Oct 2025 11:10:13 +0800 Subject: [PATCH] i18n: Fix translations of new audio panel tooltips --- Assets/Translations/de.json | 4 +++- Assets/Translations/en.json | 26 ++++++++++++++------------ Assets/Translations/es.json | 4 +++- Assets/Translations/fr.json | 4 +++- Assets/Translations/pt.json | 4 +++- Assets/Translations/zh-CN.json | 4 +++- Modules/Bar/Audio/AudioPanel.qml | 4 ++-- 7 files changed, 31 insertions(+), 19 deletions(-) diff --git a/Assets/Translations/de.json b/Assets/Translations/de.json index d152316c..76b94bb1 100644 --- a/Assets/Translations/de.json +++ b/Assets/Translations/de.json @@ -1362,7 +1362,9 @@ "play": "Wiedergeben", "next-media": "Nächstes Medium", "power-profile": "'{profile}' Energieprofil", - "keyboard-layout": "{layout} Tastaturlayout" + "keyboard-layout": "{layout} Tastaturlayout", + "output-muted": "Audio-Ausgabe stummschalten", + "input-muted": "Audio-Eingabe stummschalten" }, "clock": { "tooltip": "Kalender öffnen" diff --git a/Assets/Translations/en.json b/Assets/Translations/en.json index ce28bf38..6e5a2e96 100644 --- a/Assets/Translations/en.json +++ b/Assets/Translations/en.json @@ -509,16 +509,16 @@ }, "matugen-scheme-type": { "label": "Matugen scheme type", - "description": { - "scheme-content": "Derives colors that closely match the underlying image", - "scheme-expressive": "Vibrant palette with playful saturation", - "scheme-fidelity": "High-fidelity palette that preserves source hues", - "scheme-fruit-salad": "Colorful mix of bright contrasting accents", - "scheme-monochrome": "Minimal palette built around a single hue", - "scheme-neutral": "Muted palette with subdued and calming tones", - "scheme-rainbow": "Diverse palette spanning the full spectrum", - "scheme-tonal-spot": "Balanced palette with focused accents" - } + "description": { + "scheme-content": "Derives colors that closely match the underlying image", + "scheme-expressive": "Vibrant palette with playful saturation", + "scheme-fidelity": "High-fidelity palette that preserves source hues", + "scheme-fruit-salad": "Colorful mix of bright contrasting accents", + "scheme-monochrome": "Minimal palette built around a single hue", + "scheme-neutral": "Muted palette with subdued and calming tones", + "scheme-rainbow": "Diverse palette spanning the full spectrum", + "scheme-tonal-spot": "Balanced palette with focused accents" + } } }, "dark-mode": { @@ -1337,7 +1337,9 @@ "play": "Play", "next-media": "Next media", "power-profile": "'{profile}' power profile", - "keyboard-layout": "{layout} keyboard layout" + "keyboard-layout": "{layout} keyboard layout", + "output-muted": "Muted audio output", + "input-muted": "Muted audio input" }, "clock": { "tooltip": "Open calendar" @@ -1761,4 +1763,4 @@ "note": "Just a few basics to get you started - full options are in Settings" } } -} \ No newline at end of file +} diff --git a/Assets/Translations/es.json b/Assets/Translations/es.json index 6de64c7e..4572cdc1 100644 --- a/Assets/Translations/es.json +++ b/Assets/Translations/es.json @@ -1345,7 +1345,9 @@ "play": "Reproducir", "next-media": "Siguiente medio", "power-profile": "Perfil de energía '{profile}'", - "keyboard-layout": "Distribución de teclado {layout}" + "keyboard-layout": "Distribución de teclado {layout}", + "output-muted": "Silenciar salida de audio", + "input-muted": "Silenciar entrada de audio" }, "clock": { "tooltip": "Abrir calendario" diff --git a/Assets/Translations/fr.json b/Assets/Translations/fr.json index 756e51c4..05f3ecee 100644 --- a/Assets/Translations/fr.json +++ b/Assets/Translations/fr.json @@ -1345,7 +1345,9 @@ "play": "Lecture", "next-media": "Média suivant", "power-profile": "Profil d'alimentation '{profile}'", - "keyboard-layout": "Disposition du clavier {layout}" + "keyboard-layout": "Disposition du clavier {layout}", + "output-muted": "Couper la sortie audio", + "input-muted": "Couper l'entrée audio" }, "clock": { "tooltip": "Ouvrir le calendrier" diff --git a/Assets/Translations/pt.json b/Assets/Translations/pt.json index 7be3bbe3..5ba441bd 100644 --- a/Assets/Translations/pt.json +++ b/Assets/Translations/pt.json @@ -1345,7 +1345,9 @@ "play": "Reproduzir", "next-media": "Próxima mídia", "power-profile": "Perfil de energia '{profile}'", - "keyboard-layout": "Layout de teclado {layout}" + "keyboard-layout": "Layout de teclado {layout}", + "output-muted": "Silenciar saída de áudio", + "input-muted": "Silenciar entrada de áudio" }, "clock": { "tooltip": "Abrir calendário" diff --git a/Assets/Translations/zh-CN.json b/Assets/Translations/zh-CN.json index d99dd440..d68ec9e2 100644 --- a/Assets/Translations/zh-CN.json +++ b/Assets/Translations/zh-CN.json @@ -1345,7 +1345,9 @@ "play": "播放", "next-media": "下一媒体", "power-profile": "'{profile}' 电源模式", - "keyboard-layout": "{layout} 键盘布局" + "keyboard-layout": "{layout} 键盘布局", + "output-muted": "静音输出设备", + "input-muted": "静音输入设备" }, "clock": { "tooltip": "打开日历" diff --git a/Modules/Bar/Audio/AudioPanel.qml b/Modules/Bar/Audio/AudioPanel.qml index efb6eb14..4e4483af 100644 --- a/Modules/Bar/Audio/AudioPanel.qml +++ b/Modules/Bar/Audio/AudioPanel.qml @@ -83,7 +83,7 @@ NPanel { NIconButton { icon: AudioService.getOutputIcon() - tooltipText: I18n.tr("tooltips.output-devices") + tooltipText: I18n.tr("tooltips.output-muted") baseSize: Style.baseWidgetSize * 0.8 onClicked: { AudioService.setOutputMuted(!AudioService.muted) @@ -92,7 +92,7 @@ NPanel { NIconButton { icon: AudioService.getInputIcon() - tooltipText: I18n.tr("tooltips.refresh-devices") + tooltipText: I18n.tr("tooltips.input-muted") baseSize: Style.baseWidgetSize * 0.8 onClicked: { AudioService.setInputMuted(!AudioService.inputMuted)