From 8197764a210138030fe689ade281d6219963d4a4 Mon Sep 17 00:00:00 2001 From: Zoltan Papp Date: Tue, 21 Jul 2026 16:47:04 +0200 Subject: [PATCH] [client] Reuse existing sessionExpired label for expired tray row Drop the newly added tray.session.expired string and render the expired tray row with the existing tray.status.sessionExpired label, which is already translated in every locale and short enough for the tray. --- client/ui/i18n/locales/en/common.json | 4 ---- client/ui/tray_session.go | 2 +- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/client/ui/i18n/locales/en/common.json b/client/ui/i18n/locales/en/common.json index d4c13eff2..42d40ec30 100644 --- a/client/ui/i18n/locales/en/common.json +++ b/client/ui/i18n/locales/en/common.json @@ -35,10 +35,6 @@ "message": "Session expired", "description": "Tray status: the authenticated session expired; the user must sign in again." }, - "tray.session.expired": { - "message": "Session expired \u2014 sign in again", - "description": "Tray row shown once the session deadline has passed. Clicking it opens the sign-in flow. Keep short." - }, "tray.session.expiresIn": { "message": "Session expires in {remaining}", "description": "Tray row showing time left before the session expires. {remaining} is a human-readable duration such as '5 minutes', built from the tray.session.unit.* strings. Keep {remaining} unchanged." diff --git a/client/ui/tray_session.go b/client/ui/tray_session.go index a2566feb7..3d17bb968 100644 --- a/client/ui/tray_session.go +++ b/client/ui/tray_session.go @@ -93,7 +93,7 @@ func (t *Tray) refreshSessionExpiresLabel() { func (t *Tray) sessionRowLabel(deadline time.Time) string { remaining := time.Until(deadline) if remaining <= 0 { - return t.loc.T("tray.session.expired") + return t.loc.T("tray.status.sessionExpired") } return t.loc.T("tray.session.expiresIn", "remaining", t.formatSessionRemaining(remaining)) }