From f7a24120764afe46d9ae3c8a61c708547936f00f Mon Sep 17 00:00:00 2001 From: Tomas Vondracek Date: Mon, 3 Aug 2026 17:33:50 +0200 Subject: [PATCH 1/3] chore(translations): drop messages entries served by another domain Four keys are duplicated into the messages catalogue but are only ever looked up in a different domain: user.not_valid_display_name src/Entity/User.php:35,36 user.not_valid_email src/Entity/User.php:49 user.not_valid_password src/Entity/User.php:57 Assert constraint messages, which Symfony resolves in `validators` You have to login in order to access this page. src/Security/AuthenticationEntryPointRedirector.php:26, trans(..., 'security') Nothing reads them from `messages`, so the entries are unreachable and `debug:translation --domain=messages` reports all four as unused. Removes 24 units from 7 catalogues - only where that same locale already carries the key in the domain that serves it, so no lookup changes result. Nine entries are deliberately left in place: security.fr, security.nl, validators.hu, validators.nl and validators.zh_CN have no entry for their key, so those locales fall back to English today. Deleting the messages copy would be equally unreachable but would discard translated text that should instead be moved into the correct domain. That move belongs in its own change. --- translations/messages.cs.xlf | 24 ------------------------ translations/messages.el.xlf | 18 ------------------ translations/messages.en.xlf | 24 ------------------------ translations/messages.fr.xlf | 18 ------------------ translations/messages.ru.xlf | 24 ------------------------ translations/messages.sk.xlf | 24 ------------------------ translations/messages.tr.xlf | 18 ------------------ translations/messages.uk.xlf | 18 ------------------ 8 files changed, 168 deletions(-) diff --git a/translations/messages.cs.xlf b/translations/messages.cs.xlf index 8db3134bc..8d85004d8 100644 --- a/translations/messages.cs.xlf +++ b/translations/messages.cs.xlf @@ -1719,18 +1719,6 @@ Akce - - - user.not_valid_email - Chybný email - - - - - user.not_valid_password - Chybné heslo. Heslo by mělo obsahovat minimálně 6 znaků. - - user.unknown_user @@ -2127,12 +2115,6 @@ Systémové informace - - - user.not_valid_display_name - Chybné zobrazované jméno - - action.confirm_delete @@ -2661,12 +2643,6 @@ Váš e-mail - - - You have to login in order to access this page. - Pro přístup na tuto stránku se musíte přihlásit. - - modal.title.file_field diff --git a/translations/messages.el.xlf b/translations/messages.el.xlf index 0063e8cb4..2d7af19f8 100644 --- a/translations/messages.el.xlf +++ b/translations/messages.el.xlf @@ -1768,18 +1768,6 @@ Ενέργειες - - - user.not_valid_email - Ακυρο ηλ. ταχυδρομείο - - - - - user.not_valid_password - Λανθασμένος κωδικός. Ο κωδικός πρόσβασης πρέπει να περιέχει τουλάχιστον 6 χαρακτήρες. - - user.unknown_user @@ -2176,12 +2164,6 @@ Πληροφορίες συστήματος - - - user.not_valid_display_name - Μη έγκυρο εμφανιζόμενο όνομα - - action.confirm_delete diff --git a/translations/messages.en.xlf b/translations/messages.en.xlf index f8decc4aa..7cdc52690 100644 --- a/translations/messages.en.xlf +++ b/translations/messages.en.xlf @@ -1771,18 +1771,6 @@ Actions - - - user.not_valid_email - Invalid email - - - - - user.not_valid_password - Invalid password. The password should contain at least 6 characters. - - user.unknown_user @@ -2179,12 +2167,6 @@ System Information - - - user.not_valid_display_name - Invalid display name - - action.confirm_delete @@ -2713,12 +2695,6 @@ your email - - - You have to login in order to access this page. - You have to login in order to access this page. - - modal.title.file_field diff --git a/translations/messages.fr.xlf b/translations/messages.fr.xlf index 14567af8b..a4f38fd0d 100644 --- a/translations/messages.fr.xlf +++ b/translations/messages.fr.xlf @@ -1777,18 +1777,6 @@ Actions - - - user.not_valid_email - Email invalide - - - - - user.not_valid_password - Mot de passe incorrect. Le mot de passe doit contenir au moins 6 caractères. - - user.unknown_user @@ -2185,12 +2173,6 @@ Informations système - - - user.not_valid_display_name - Nom d'affichage non valide - - action.confirm_delete diff --git a/translations/messages.ru.xlf b/translations/messages.ru.xlf index 438abb379..f7af414f5 100644 --- a/translations/messages.ru.xlf +++ b/translations/messages.ru.xlf @@ -1771,18 +1771,6 @@ Действия - - - user.not_valid_email - Неверный адрес электронной почты - - - - - user.not_valid_password - Неправильный пароль. Пароль должен содержать не менее 6 символов. - - user.unknown_user @@ -2179,12 +2167,6 @@ Системная информация - - - user.not_valid_display_name - Недействительное отображаемое имя - - action.confirm_delete @@ -2443,12 +2425,6 @@ Аватар - - - You have to login in order to access this page. - Вы должны войти в систему, чтобы получить доступ к этой странице. - - reset_password.email_title diff --git a/translations/messages.sk.xlf b/translations/messages.sk.xlf index f99ce26cc..69146fefc 100644 --- a/translations/messages.sk.xlf +++ b/translations/messages.sk.xlf @@ -1771,18 +1771,6 @@ Akcie - - - user.not_valid_email - Neplatný e-mail - - - - - user.not_valid_password - Neplatné heslo. Heslo musí obsahovať aspoň 6 znakov. - - user.unknown_user @@ -2179,12 +2167,6 @@ Systémové informácie - - - user.not_valid_display_name - Neplatné zobrazované meno - - action.confirm_delete @@ -2713,12 +2695,6 @@ váš e-mail - - - You have to login in order to access this page. - Na prístup k tejto stránke sa musíte prihlásiť. - - modal.title.file_field diff --git a/translations/messages.tr.xlf b/translations/messages.tr.xlf index e11114fe2..eb17636c3 100644 --- a/translations/messages.tr.xlf +++ b/translations/messages.tr.xlf @@ -1767,18 +1767,6 @@ Eylemler - - - user.not_valid_email - Geçersiz e-posta. - - - - - user.not_valid_password - Geçersiz parola. Parola en az 6 karakter içermelidir. - - user.unknown_user @@ -2175,12 +2163,6 @@ Sistem Bilgisi - - - user.not_valid_display_name - Geçersiz görüntüleme adı - - action.confirm_delete diff --git a/translations/messages.uk.xlf b/translations/messages.uk.xlf index 3deb89646..5c856d0d1 100644 --- a/translations/messages.uk.xlf +++ b/translations/messages.uk.xlf @@ -1767,18 +1767,6 @@ Дії - - - user.not_valid_email - Неправильна адреса електронної пошти - - - - - user.not_valid_password - Неправильний пароль. Пароль повинен містити не менше 6 символів. - - user.unknown_user @@ -2175,12 +2163,6 @@ Системна інформація - - - user.not_valid_display_name - Недійсне відображене імʼя - - action.confirm_delete From a8b243f3bef4c5ccdcc02359253150f6893eaa00 Mon Sep 17 00:00:00 2001 From: Tomas Vondracek Date: Fri, 14 Aug 2026 11:30:55 +0200 Subject: [PATCH 2/3] fix(translations): move remaining messages entries to their serving domain The previous commit removed the `user.not_valid_*` and login entries from the `messages` domain only where the serving domain (`validators` / `security`) already held the same key. Nine entries were left behind because their locale had no copy in the serving domain, so deleting them outright would have discarded translated text. Those entries are moved into the domain that actually resolves them: security.fr <- You have to login in order to access this page. security.nl <- You have to login in order to access this page. validators.hu <- user.not_valid_email, user.not_valid_password validators.zh_CN <- user.not_valid_display_name, user.not_valid_email, user.not_valid_password Unlike the previous commit this does change rendered output, in every case by replacing an English fallback with the existing translation: fr and nl now show a translated login warning, hu and zh_CN translated validation messages. The two remaining `messages.nl` entries are dropped rather than moved. Their targets were English ("Invalid email", "Invalid password"), never Dutch, and the truncated password string is worse than the `en` fallback it would have shadowed. Dropping them leaves nl rendering unchanged. The `messages` domain no longer contains any of the four keys. --- translations/messages.fr.xlf | 6 ------ translations/messages.hu.xlf | 12 ------------ translations/messages.nl.xlf | 18 ------------------ translations/messages.zh_CN.xlf | 18 ------------------ translations/security.fr.xlf | 6 ++++++ translations/security.nl.xlf | 6 ++++++ translations/validators.hu.xlf | 12 ++++++++++++ translations/validators.zh_CN.xlf | 18 ++++++++++++++++++ 8 files changed, 42 insertions(+), 54 deletions(-) diff --git a/translations/messages.fr.xlf b/translations/messages.fr.xlf index a4f38fd0d..7accea1c6 100644 --- a/translations/messages.fr.xlf +++ b/translations/messages.fr.xlf @@ -2701,12 +2701,6 @@ votre email - - - You have to login in order to access this page. - Vous devez vous connecter pour accéder à cette page. - - modal.title.file_field diff --git a/translations/messages.hu.xlf b/translations/messages.hu.xlf index c0f97ae02..d3958ed5b 100644 --- a/translations/messages.hu.xlf +++ b/translations/messages.hu.xlf @@ -1785,18 +1785,6 @@ Műveletek - - - user.not_valid_email - Érvénytelen email cím - - - - - user.not_valid_password - Érvénytelen jelszó - - caption.redirection_page diff --git a/translations/messages.nl.xlf b/translations/messages.nl.xlf index e9a135ea2..45b8bd422 100644 --- a/translations/messages.nl.xlf +++ b/translations/messages.nl.xlf @@ -1374,18 +1374,6 @@ Acties - - - user.not_valid_email - Invalid email - - - - - user.not_valid_password - Invalid password - - Unknown @@ -2076,12 +2064,6 @@ Avatar - - - You have to login in order to access this page. - Je moet ingelogd zijn om deze pagina te bekijken. - - modal.title.file_field diff --git a/translations/messages.zh_CN.xlf b/translations/messages.zh_CN.xlf index fcc3badd5..9022c012f 100644 --- a/translations/messages.zh_CN.xlf +++ b/translations/messages.zh_CN.xlf @@ -1767,18 +1767,6 @@ Actions - - - user.not_valid_email - 无效的电子邮件 - - - - - user.not_valid_password - 无效的密码,密码应至少包含6个字符。 - - user.unknown_user @@ -2175,12 +2163,6 @@ 系统信息 - - - user.not_valid_display_name - 无效的显示名称 - - action.confirm_delete diff --git a/translations/security.fr.xlf b/translations/security.fr.xlf index 134b5d63b..27a91ef44 100644 --- a/translations/security.fr.xlf +++ b/translations/security.fr.xlf @@ -97,5 +97,11 @@ L'utilisateur est désactivé. + + + You have to login in order to access this page. + Vous devez vous connecter pour accéder à cette page. + + diff --git a/translations/security.nl.xlf b/translations/security.nl.xlf index 86f9427ee..4559ad816 100644 --- a/translations/security.nl.xlf +++ b/translations/security.nl.xlf @@ -91,5 +91,11 @@ Account is geblokkeerd. + + + You have to login in order to access this page. + Je moet ingelogd zijn om deze pagina te bekijken. + + diff --git a/translations/validators.hu.xlf b/translations/validators.hu.xlf index 6e2dbb518..5cafb6890 100644 --- a/translations/validators.hu.xlf +++ b/translations/validators.hu.xlf @@ -667,5 +667,17 @@ A komment tartalma spamnek tűnik. + + + user.not_valid_email + Érvénytelen email cím + + + + + user.not_valid_password + Érvénytelen jelszó + + diff --git a/translations/validators.zh_CN.xlf b/translations/validators.zh_CN.xlf index ca76f7625..3e19f2175 100644 --- a/translations/validators.zh_CN.xlf +++ b/translations/validators.zh_CN.xlf @@ -517,5 +517,23 @@ CSRF 验证符无效, 请重新提交. + + + user.not_valid_display_name + 无效的显示名称 + + + + + user.not_valid_email + 无效的电子邮件 + + + + + user.not_valid_password + 无效的密码,密码应至少包含6个字符。 + + From 3b98744d4fdda48d434e6c367b032372cc607ca4 Mon Sep 17 00:00:00 2001 From: Tomas Vondracek Date: Fri, 14 Aug 2026 11:32:23 +0200 Subject: [PATCH 3/3] docs(upgrading): note the translation keys removed from the messages domain These keys are unreachable from `messages` (Symfony has no domain fallback), so Bolt's own rendering is unaffected, but consumers translating them from `messages` in their own code or templates need to switch domain. --- UPGRADING.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/UPGRADING.md b/UPGRADING.md index b0ee82871..c2efc01c0 100644 --- a/UPGRADING.md +++ b/UPGRADING.md @@ -12,6 +12,23 @@ You will need to migrate to Bolt 6.1 first, migrate all your databases and after - `\Bolt\Doctrine\Migrations\ArrayToJsonMigrator`. This class was always meant to be temporary. If you use it in your migration, you should remove the usages in your migration (but make sure that it has already been executed on all your deployments). +## Removed translations + +The following keys have been removed from the `messages` domain. Bolt itself only ever resolves them from the domain listed below, so this does not change anything Bolt renders. If your own code, templates or extensions translate one of these keys **from the `messages` domain**, update the call to use the correct domain, or add the key to your own `messages` catalogue. + +| Key | Now only in domain | Used by Bolt at | +|---|---|---| +| `user.not_valid_display_name` | `validators` | `src/Entity/User.php` (`Assert\NotBlank`, `Assert\Length`) | +| `user.not_valid_email` | `validators` | `src/Entity/User.php` (`Assert\Email`) | +| `user.not_valid_password` | `validators` | `src/Entity/User.php` (`Assert\Length`) | +| `You have to login in order to access this page.` | `security` | `src/Security/AuthenticationEntryPointRedirector.php` | + +Note that Symfony's translator falls back between *locales*, but never between *domains*, so a lookup in `messages` will not fall back to `validators` or `security`. + +Affected locales: `cs`, `el`, `en`, `fr`, `hu`, `nl`, `ru`, `sk`, `tr`, `uk`, `zh_CN`. + +Where a locale had a translation in `messages` but not yet in the serving domain, the translation was moved rather than dropped (`security.fr`, `security.nl`, `validators.hu`, `validators.zh_CN`). Those locales previously fell back to English for these keys and now show their own translation. + # From Bolt 6.0 to 6.1 This release upgrades the erusev parsedown packages (used for Markdown) requirements to resolve issues with newer PHP version compatibility. However, this can have an impact on your existing pages as the Markdown parsing rules have changed.