From 7c3988865d3926563aaa6a821c781a671a46d2dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc-Andr=C3=A9=20Bombeck?= Date: Thu, 12 Nov 2026 14:05:37 +0100 Subject: [PATCH] fix(push): name the real button in the Home Screen hint The hint for iPhone and iPad Safari ended with "turn on push here", but the button reads "Enable push"; it now names the button in every language. The hint is two sentences of steps, so it is shown as content rather than muted, and the French one uses the typographic apostrophe like its neighbours. --- messages/de.json | 2 +- messages/en.json | 2 +- messages/es.json | 2 +- messages/fr.json | 2 +- messages/it.json | 2 +- messages/ko.json | 2 +- messages/nl.json | 2 +- messages/pl.json | 2 +- messages/pt-BR.json | 2 +- messages/ru.json | 2 +- src/components/settings/web-push-card.tsx | 9 +++++---- 11 files changed, 15 insertions(+), 14 deletions(-) diff --git a/messages/de.json b/messages/de.json index eac4854a7..7545c0fe0 100644 --- a/messages/de.json +++ b/messages/de.json @@ -6408,7 +6408,7 @@ "webPush": "Browser-Push", "webPushDescription": "Erhalte Benachrichtigungen direkt im Browser, auch wenn HealthLog nicht geöffnet ist.", "webPushNotSupported": "Dein Browser unterstützt keine Push-Benachrichtigungen.", - "webPushInstallFirst": "Auf iPhone und iPad funktionieren Push-Benachrichtigungen nur in der installierten App. Tippe in Safari auf Teilen und dann auf „Zum Home-Bildschirm“, öffne HealthLog vom Home-Bildschirm aus und schalte Push hier ein.", + "webPushInstallFirst": "Auf iPhone und iPad funktionieren Push-Benachrichtigungen nur in der installierten App. Tippe in Safari auf Teilen und dann auf „Zum Home-Bildschirm“, öffne HealthLog vom Home-Bildschirm aus und tippe hier auf „Push aktivieren“.", "webPushDenied": "Push-Benachrichtigungen wurden blockiert. Erlaube sie in den Browser-Einstellungen.", "webPushNotConfigured": "Web Push ist serverseitig nicht konfiguriert.", "webPushSubscribe": "Push aktivieren", diff --git a/messages/en.json b/messages/en.json index 0620047e6..38641c38d 100644 --- a/messages/en.json +++ b/messages/en.json @@ -6408,7 +6408,7 @@ "webPush": "Browser Push", "webPushDescription": "Receive notifications directly in your browser, even when HealthLog is not open.", "webPushNotSupported": "Your browser does not support push notifications.", - "webPushInstallFirst": "On iPhone and iPad, push notifications only work in the installed app. In Safari, tap Share, then Add to Home Screen, open HealthLog from the Home Screen and turn on push here.", + "webPushInstallFirst": "On iPhone and iPad, push notifications only work in the installed app. In Safari, tap Share, then Add to Home Screen, open HealthLog from the Home Screen and tap Enable push here.", "webPushDenied": "Push notifications are blocked. Allow them in your browser settings.", "webPushNotConfigured": "Web Push is not configured on the server.", "webPushSubscribe": "Enable push", diff --git a/messages/es.json b/messages/es.json index cb7f46cd3..710f4a520 100644 --- a/messages/es.json +++ b/messages/es.json @@ -6408,7 +6408,7 @@ "webPush": "Push del navegador", "webPushDescription": "Recibe notificaciones directamente en tu navegador, incluso cuando HealthLog no está abierto.", "webPushNotSupported": "Tu navegador no admite notificaciones push.", - "webPushInstallFirst": "En iPhone y iPad, las notificaciones push solo funcionan en la app instalada. En Safari, toca Compartir y luego «Añadir a pantalla de inicio», abre HealthLog desde la pantalla de inicio y activa las notificaciones push aquí.", + "webPushInstallFirst": "En iPhone y iPad, las notificaciones push solo funcionan en la app instalada. En Safari, toca Compartir y luego «Añadir a pantalla de inicio», abre HealthLog desde la pantalla de inicio y toca aquí «Activar push».", "webPushDenied": "Las notificaciones push están bloqueadas. Permítelas en los ajustes de tu navegador.", "webPushNotConfigured": "Web Push no está configurado en el servidor.", "webPushSubscribe": "Activar push", diff --git a/messages/fr.json b/messages/fr.json index 005668df3..ecd78a0cd 100644 --- a/messages/fr.json +++ b/messages/fr.json @@ -6408,7 +6408,7 @@ "webPush": "Push navigateur", "webPushDescription": "Recevez des notifications directement dans votre navigateur, même lorsque HealthLog n’est pas ouvert.", "webPushNotSupported": "Votre navigateur ne prend pas en charge les notifications push.", - "webPushInstallFirst": "Sur iPhone et iPad, les notifications push ne fonctionnent que dans l'app installée. Dans Safari, touchez Partager puis « Sur l'écran d'accueil », ouvrez HealthLog depuis l'écran d'accueil et activez les notifications push ici.", + "webPushInstallFirst": "Sur iPhone et iPad, les notifications push ne fonctionnent que dans l’app installée. Dans Safari, touchez Partager puis « Sur l’écran d’accueil », ouvrez HealthLog depuis l’écran d’accueil et touchez ici « Activer le push ».", "webPushDenied": "Les notifications push sont bloquées. Autorisez-les dans les réglages de votre navigateur.", "webPushNotConfigured": "Web Push n’est pas configuré sur le serveur.", "webPushSubscribe": "Activer le push", diff --git a/messages/it.json b/messages/it.json index e360f8ab8..3ff814e06 100644 --- a/messages/it.json +++ b/messages/it.json @@ -6408,7 +6408,7 @@ "webPush": "Push del browser", "webPushDescription": "Ricevi notifiche direttamente nel browser, anche quando HealthLog non è aperto.", "webPushNotSupported": "Il tuo browser non supporta le notifiche push.", - "webPushInstallFirst": "Su iPhone e iPad le notifiche push funzionano solo nell'app installata. In Safari tocca Condividi, poi «Aggiungi alla schermata Home», apri HealthLog dalla schermata Home e attiva qui le notifiche push.", + "webPushInstallFirst": "Su iPhone e iPad le notifiche push funzionano solo nell'app installata. In Safari tocca Condividi, poi «Aggiungi alla schermata Home», apri HealthLog dalla schermata Home e tocca qui «Attiva push».", "webPushDenied": "Le notifiche push sono bloccate. Consentile nelle impostazioni del browser.", "webPushNotConfigured": "Web Push non è configurato sul server.", "webPushSubscribe": "Attiva push", diff --git a/messages/ko.json b/messages/ko.json index 6c4556e6d..5cfbd4f5a 100644 --- a/messages/ko.json +++ b/messages/ko.json @@ -6408,7 +6408,7 @@ "webPush": "브라우저 푸시", "webPushDescription": "HealthLog를 열어 두지 않아도 브라우저로 바로 알림을 받아요.", "webPushNotSupported": "이 브라우저는 푸시 알림을 지원하지 않아요.", - "webPushInstallFirst": "iPhone과 iPad에서는 설치한 앱에서만 푸시 알림을 받을 수 있어요. Safari에서 공유를 누른 다음 '홈 화면에 추가'를 선택하고, 홈 화면에서 HealthLog를 연 뒤 여기서 푸시 알림을 켜 주세요.", + "webPushInstallFirst": "iPhone과 iPad에서는 설치한 앱에서만 푸시 알림을 받을 수 있어요. Safari에서 공유를 누른 다음 '홈 화면에 추가'를 선택하고, 홈 화면에서 HealthLog를 연 뒤 여기서 '푸시 켜기'를 눌러 주세요.", "webPushDenied": "푸시 알림이 차단돼 있어요. 브라우저 설정에서 허용해 주세요.", "webPushNotConfigured": "서버에 Web Push가 설정돼 있지 않아요.", "webPushSubscribe": "푸시 켜기", diff --git a/messages/nl.json b/messages/nl.json index f83498a75..53e39c1b8 100644 --- a/messages/nl.json +++ b/messages/nl.json @@ -6408,7 +6408,7 @@ "webPush": "Browserpush", "webPushDescription": "Ontvang meldingen rechtstreeks in je browser, ook als HealthLog niet geopend is.", "webPushNotSupported": "Je browser ondersteunt geen pushmeldingen.", - "webPushInstallFirst": "Op iPhone en iPad werken pushmeldingen alleen in de geïnstalleerde app. Tik in Safari op Deel en daarna op 'Zet op beginscherm', open HealthLog vanaf het beginscherm en zet pushmeldingen hier aan.", + "webPushInstallFirst": "Op iPhone en iPad werken pushmeldingen alleen in de geïnstalleerde app. Tik in Safari op Deel en daarna op 'Zet op beginscherm', open HealthLog vanaf het beginscherm en tik hier op 'Push inschakelen'.", "webPushDenied": "Pushmeldingen zijn geblokkeerd. Sta ze toe in de instellingen van je browser.", "webPushNotConfigured": "Web Push is niet geconfigureerd op de server.", "webPushSubscribe": "Push inschakelen", diff --git a/messages/pl.json b/messages/pl.json index b4431ac15..736876de3 100644 --- a/messages/pl.json +++ b/messages/pl.json @@ -6408,7 +6408,7 @@ "webPush": "Push przeglądarki", "webPushDescription": "Otrzymuj powiadomienia bezpośrednio w przeglądarce, nawet gdy HealthLog nie jest otwarty.", "webPushNotSupported": "Twoja przeglądarka nie obsługuje powiadomień push.", - "webPushInstallFirst": "Na iPhonie i iPadzie powiadomienia push działają tylko w zainstalowanej aplikacji. W Safari stuknij Udostępnij, potem „Do ekranu początkowego”, otwórz HealthLog z ekranu początkowego i włącz tutaj powiadomienia push.", + "webPushInstallFirst": "Na iPhonie i iPadzie powiadomienia push działają tylko w zainstalowanej aplikacji. W Safari stuknij Udostępnij, potem „Do ekranu początkowego”, otwórz HealthLog z ekranu początkowego i stuknij tutaj „Włącz push”.", "webPushDenied": "Powiadomienia push są zablokowane. Zezwól na nie w ustawieniach przeglądarki.", "webPushNotConfigured": "Web Push nie jest skonfigurowany na serwerze.", "webPushSubscribe": "Włącz push", diff --git a/messages/pt-BR.json b/messages/pt-BR.json index d815c9815..e0eb99ea0 100644 --- a/messages/pt-BR.json +++ b/messages/pt-BR.json @@ -6408,7 +6408,7 @@ "webPush": "Push do navegador", "webPushDescription": "Receba notificações diretamente no navegador, mesmo quando o HealthLog não estiver aberto.", "webPushNotSupported": "Seu navegador não oferece suporte a notificações push.", - "webPushInstallFirst": "No iPhone e no iPad, as notificações push só funcionam no app instalado. No Safari, toque em Compartilhar e depois em “Adicionar à Tela de Início”, abra o HealthLog pela Tela de Início e ative as notificações push aqui.", + "webPushInstallFirst": "No iPhone e no iPad, as notificações push só funcionam no app instalado. No Safari, toque em Compartilhar e depois em “Adicionar à Tela de Início”, abra o HealthLog pela Tela de Início e toque aqui em “Ativar push”.", "webPushDenied": "As notificações push estão bloqueadas. Permita-as nas configurações do navegador.", "webPushNotConfigured": "O Web Push não está configurado no servidor.", "webPushSubscribe": "Ativar push", diff --git a/messages/ru.json b/messages/ru.json index 8b4c02cf2..f05a230ed 100644 --- a/messages/ru.json +++ b/messages/ru.json @@ -6408,7 +6408,7 @@ "webPush": "Push в браузере", "webPushDescription": "Получайте уведомления прямо в браузере, даже когда HealthLog не открыт.", "webPushNotSupported": "Ваш браузер не поддерживает push-уведомления.", - "webPushInstallFirst": "На iPhone и iPad push-уведомления работают только в установленном приложении. В Safari нажмите «Поделиться», затем «На экран „Домой“», откройте HealthLog с экрана «Домой» и включите push-уведомления здесь.", + "webPushInstallFirst": "На iPhone и iPad push-уведомления работают только в установленном приложении. В Safari нажмите «Поделиться», затем «На экран „Домой“», откройте HealthLog с экрана «Домой» и нажмите здесь «Включить push».", "webPushDenied": "Push-уведомления заблокированы. Разрешите их в настройках браузера.", "webPushNotConfigured": "Web Push не настроен на сервере.", "webPushSubscribe": "Включить push", diff --git a/src/components/settings/web-push-card.tsx b/src/components/settings/web-push-card.tsx index 9a73f0a9b..f64c7d440 100644 --- a/src/components/settings/web-push-card.tsx +++ b/src/components/settings/web-push-card.tsx @@ -211,11 +211,12 @@ export function WebPushCard() { {(!loading && unsupported) || (!loading && isDenied) || msg ? (
- {!loading && unsupported ? ( + {!loading && unsupported === "install" ? ( + // Steps to follow: content, not meta. +

{t("settings.webPushInstallFirst")}

+ ) : !loading && unsupported ? (

- {unsupported === "install" - ? t("settings.webPushInstallFirst") - : t("settings.webPushNotSupported")} + {t("settings.webPushNotSupported")}

) : !loading && isDenied ? (