From fa840ae3c3dee8d9b0e6a4d22be533ab38660efb Mon Sep 17 00:00:00 2001 From: German Khokhlov Date: Fri, 30 Oct 2026 14:26:58 +0400 Subject: [PATCH] Translate the Radio privacy note into the new locales main added de, fr, it, ja and pt with the old "after you press play" note; give them the updated wording. main also removed the compact Context Radio player, so the Next/Previous tests stop checking its button. --- src/data/radioNextState.test.mjs | 7 +------ src/i18n/locales/de.json | 2 +- src/i18n/locales/fr.json | 2 +- src/i18n/locales/it.json | 2 +- src/i18n/locales/ja.json | 2 +- src/i18n/locales/pt.json | 2 +- 6 files changed, 6 insertions(+), 11 deletions(-) diff --git a/src/data/radioNextState.test.mjs b/src/data/radioNextState.test.mjs index 102ef3a42..ff8563003 100644 --- a/src/data/radioNextState.test.mjs +++ b/src/data/radioNextState.test.mjs @@ -80,7 +80,7 @@ async function withLayer(failingUrls, body) { const settle = () => new Promise((resolve) => setTimeout(resolve)); -// What the Radio panel, the compact Context player and Cockpit show for a state. +// What the Radio panel and the Cockpit player show for a state. function render(state) { const el = () => { const classes = new Set(); @@ -102,7 +102,6 @@ function render(state) { _radioPlaybackState: el(), _radioPlayBtn: el(), _radioStopBtn: el(), - _contextRadioMiniPlayBtn: el(), _cockpitRadioPlayBtn: el(), _syncContextRadioLauncherState() {}, actions: { @@ -118,7 +117,6 @@ function render(state) { error: host._radioPlaybackState.classList.contains('error'), button: host._radioPlayBtn.textContent, stopDisabled: host._radioStopBtn.disabled, - mini: host._contextRadioMiniPlayBtn.textContent, cockpit: host._cockpitRadioPlayBtn.textContent, }; } finally { @@ -158,7 +156,6 @@ test('Next after a failed stream leaves the new station ready to play, without t error: false, button: 'PLAY', stopDisabled: true, - mini: '▶', cockpit: '▶', }); await radioLayer.togglePlayback({ origin: 'user' }); @@ -184,7 +181,6 @@ test('Next while paused releases the paused stream, and Play starts the new stat error: false, button: 'PLAY', stopDisabled: true, - mini: '▶', cockpit: '▶', }); await radioLayer.togglePlayback({ origin: 'user' }); @@ -272,7 +268,6 @@ test('while a stream connects the transport buttons offer Pause, because a click }); assert.equal(shown.status, 'Connecting directly to broadcaster…'); assert.equal(shown.button, 'PAUSE'); - assert.equal(shown.mini, 'Ⅱ'); assert.equal(shown.cockpit, 'Ⅱ'); }); diff --git a/src/i18n/locales/de.json b/src/i18n/locales/de.json index 8e383aded..aaabc7f5a 100644 --- a/src/i18n/locales/de.json +++ b/src/i18n/locales/de.json @@ -781,7 +781,7 @@ "Stop radio playback": "Radiowiedergabe stoppen", "Radio volume": "Radio-Lautstärke", "STATION SITE": "SENDER-WEBSITE", - "Audio connects directly to the broadcaster after you press play. Your IP is visible to that broadcaster.": "Beim Starten der Wiedergabe wird eine direkte Verbindung zum Sender hergestellt. Die IP-Adresse ist für diesen Sender sichtbar.", + "Audio connects directly to the broadcaster when you press play, finish tuning or choose a station on the globe. Your IP is visible to that broadcaster.": "Beim Starten der Wiedergabe, nach dem Abstimmen oder bei der Wahl eines Senders auf dem Globus wird eine direkte Verbindung zum Sender hergestellt. Die IP-Adresse ist für diesen Sender sichtbar.", "Intelligence HUD (H)": "Lagebild-HUD (H)", "Layout": "Layout", "HUD layout": "HUD-Layout", diff --git a/src/i18n/locales/fr.json b/src/i18n/locales/fr.json index 931e7c3ff..3874b6a61 100644 --- a/src/i18n/locales/fr.json +++ b/src/i18n/locales/fr.json @@ -2828,7 +2828,7 @@ "Radio volume": "Volume de la radio", "STATION SITE": "SITE DE LA STATION", "DIRECTORY: RADIO BROWSER": "ANNUAIRE : RADIO BROWSER", - "Audio connects directly to the broadcaster after you press play. Your IP is visible to that broadcaster.": "Le flux audio se connecte directement au diffuseur dès que vous lancez la lecture. Votre IP est visible par ce diffuseur.", + "Audio connects directly to the broadcaster when you press play, finish tuning or choose a station on the globe. Your IP is visible to that broadcaster.": "Le flux audio se connecte directement au diffuseur dès que vous lancez la lecture, terminez le réglage ou choisissez une station sur le globe. Votre IP est visible par ce diffuseur.", "Local RTL-SDR receiver": "Récepteur RTL-SDR local", "LOCAL RTL-SDR": "RTL-SDR LOCAL", "Chrome/Edge · WebUSB · one local tuner shared by FM and the Local ADS-B layer.": "Chrome/Edge · WebUSB · un seul tuner local partagé entre la FM et la couche ADS-B local.", diff --git a/src/i18n/locales/it.json b/src/i18n/locales/it.json index 62c9931c1..267e656b1 100644 --- a/src/i18n/locales/it.json +++ b/src/i18n/locales/it.json @@ -2828,7 +2828,7 @@ "Radio volume": "Volume radio", "STATION SITE": "SITO STAZIONE", "DIRECTORY: RADIO BROWSER": "ELENCO: RADIO BROWSER", - "Audio connects directly to the broadcaster after you press play. Your IP is visible to that broadcaster.": "L'audio si collega direttamente all'emittente dopo aver premuto play. Il tuo IP è visibile a quell'emittente.", + "Audio connects directly to the broadcaster when you press play, finish tuning or choose a station on the globe. Your IP is visible to that broadcaster.": "L'audio si collega direttamente all'emittente dopo aver premuto play, terminato la sintonizzazione o scelto una stazione sul globo. Il tuo IP è visibile a quell'emittente.", "Local RTL-SDR receiver": "Ricevitore RTL-SDR locale", "LOCAL RTL-SDR": "RTL-SDR LOCALE", "Chrome/Edge · WebUSB · one local tuner shared by FM and the Local ADS-B layer.": "Chrome/Edge · WebUSB · un sintonizzatore locale condiviso tra FM e il livello ADS-B locale.", diff --git a/src/i18n/locales/ja.json b/src/i18n/locales/ja.json index 5a48dc886..31bdc0b1f 100644 --- a/src/i18n/locales/ja.json +++ b/src/i18n/locales/ja.json @@ -2686,7 +2686,7 @@ "Radio volume": "ラジオの音量", "STATION SITE": "放送局サイト", "DIRECTORY: RADIO BROWSER": "ディレクトリ:Radio Browser", - "Audio connects directly to the broadcaster after you press play. Your IP is visible to that broadcaster.": "再生ボタンを押すと、音声は放送局に直接接続されます。お使いのIPアドレスは放送局側から見えます。", + "Audio connects directly to the broadcaster when you press play, finish tuning or choose a station on the globe. Your IP is visible to that broadcaster.": "再生ボタンを押す、選局を終える、または地球儀で局を選ぶと、音声は放送局に直接接続されます。お使いのIPアドレスは放送局側から見えます。", "Local RTL-SDR receiver": "ローカルRTL-SDR受信機", "LOCAL RTL-SDR": "ローカルRTL-SDR", "Chrome/Edge · WebUSB · one local tuner shared by FM and the Local ADS-B layer.": "Chrome/Edge · WebUSB · FMとローカルADS-Bレイヤーで1台のローカルチューナーを共有します。", diff --git a/src/i18n/locales/pt.json b/src/i18n/locales/pt.json index de42b5aab..5f0b36e45 100644 --- a/src/i18n/locales/pt.json +++ b/src/i18n/locales/pt.json @@ -2830,7 +2830,7 @@ "Radio volume": "Volume do rádio", "STATION SITE": "SITE DA ESTAÇÃO", "DIRECTORY: RADIO BROWSER": "DIRETÓRIO: RADIO BROWSER", - "Audio connects directly to the broadcaster after you press play. Your IP is visible to that broadcaster.": "O áudio conecta direto à emissora depois que você aperta \"Ouvir\". Seu IP fica visível para essa emissora.", + "Audio connects directly to the broadcaster when you press play, finish tuning or choose a station on the globe. Your IP is visible to that broadcaster.": "O áudio conecta direto à emissora quando você aperta \"Ouvir\", termina de sintonizar ou escolhe uma estação no globo. Seu IP fica visível para essa emissora.", "Local RTL-SDR receiver": "Receptor RTL-SDR local", "LOCAL RTL-SDR": "RTL-SDR LOCAL", "Chrome/Edge · WebUSB · one local tuner shared by FM and the Local ADS-B layer.": "Chrome/Edge · WebUSB · um sintonizador local compartilhado entre o FM e a camada ADS-B local.",