diff --git a/UPGRADE.md b/UPGRADE.md index 52ce896255..ed10dae626 100644 --- a/UPGRADE.md +++ b/UPGRADE.md @@ -1,6 +1,39 @@ Upgrade between EasyAdmin 4.x versions ====================================== +EasyAdmin 4.10.0 +---------------- + +### Updated the Default Title of Detail Page + +The default title of the `detail` page in previous versions was `%entity_as_string%` +which is a placeholder that refers to the value returned by the `__toString()` +method of the entity. + +This can potentially result in a XSS vulnerability because page titles and other +elements are rendered with the `raw` Twig filter (to allow you to customize the +contents with HTML tags). + +Starting from EasyAdmin 4.10.0, the default page title is `%entity_label_singular% (#%entity_short_id%)`, +which only contains safe items that will never result in a XSS issue. If you +want to keep the previous page title (because you don't include user-generated +contents in `__toString()` or because you sanitize all user-submitted data) you +can add the following to your dashboard and all your CRUD controllers will use +that page title: + + class DashboardController extends AbstractDashboardController + { + // ... + + public function configureCrud(Crud $crud): Crud + { + return $crud + // ... + ->setPageTitle('detail', '%entity_as_string%') + ; + } + } + EasyAdmin 4.8.0 --------------- diff --git a/doc/crud.rst b/doc/crud.rst index d405bbbec1..9bf1f3a821 100644 --- a/doc/crud.rst +++ b/doc/crud.rst @@ -176,18 +176,17 @@ You can override the default page titles with the following methods:: } EasyAdmin applies the ``raw`` filter to all titles, labels, help messages, etc. -displayed in templates. This allows you to customize everything with HTML tags -because they are rendered instead of escaped. - -This is generally safe because you are in charge of writing those contents yourself. -However, in pages like the ``detail`` page, the default title is the string -representation of the entity (which is the value returned by the ``__toString()`` -method). If you include user-generated contents in that value, your backend (and -your application in general) will be vulnerable to `XSS attacks`_. - -If the string representation of your entity must include those user-generated values, -make sure to sanitize those contents before storing them in the database. You can -use the `HtmlSanitizer component`_ from Symfony to do that. +displayed in templates. This is done to allow you to customize everything with +HTML tags (because those tags will be rendered instead of escaped). + +That's why the default page titles used by EasyAdmin only include safe contents +like the entity name and ID. Otherwise, your backend could be vulnerable to +`XSS attacks`_. + +If you change the default page title to include the placeholder ``%entity_as_string%``, +check that you don't include user-created contents in the value returned by the +``__toString()`` method of the related entity. If you can't avoid that, make sure +to sanitize any user submitted data with the Symfony `HtmlSanitizer component`_. .. _crud-date-time-number-format-options: diff --git a/src/Resources/translations/EasyAdminBundle.ar.php b/src/Resources/translations/EasyAdminBundle.ar.php index 93efc85b9e..4a4d3e25e9 100644 --- a/src/Resources/translations/EasyAdminBundle.ar.php +++ b/src/Resources/translations/EasyAdminBundle.ar.php @@ -3,7 +3,7 @@ return [ 'page_title' => [ 'dashboard' => 'لوحة التحكم', - 'detail' => '%entity_as_string%', + 'detail' => '%entity_label_singular% (#%entity_short_id%)', 'edit' => '%entity_label_singular% تعديل', 'index' => '%entity_label_plural%', 'new' => '"%entity_label_singular%" جديد', diff --git a/src/Resources/translations/EasyAdminBundle.bg.php b/src/Resources/translations/EasyAdminBundle.bg.php index 18b328bdfc..2765d1dd29 100644 --- a/src/Resources/translations/EasyAdminBundle.bg.php +++ b/src/Resources/translations/EasyAdminBundle.bg.php @@ -3,7 +3,7 @@ return [ 'page_title' => [ 'dashboard' => 'Табло', - 'detail' => '%entity_as_string%', + 'detail' => '%entity_label_singular% (#%entity_short_id%)', 'edit' => 'Редактиране на %entity_label_singular%', 'index' => '%entity_label_plural%', 'new' => 'Създаване на %entity_label_singular%', diff --git a/src/Resources/translations/EasyAdminBundle.ca.php b/src/Resources/translations/EasyAdminBundle.ca.php index 8d5afcf0d1..a6ba1c1ba4 100644 --- a/src/Resources/translations/EasyAdminBundle.ca.php +++ b/src/Resources/translations/EasyAdminBundle.ca.php @@ -3,7 +3,7 @@ return [ 'page_title' => [ 'dashboard' => 'Tauler de control', - 'detail' => '%entity_as_string%', + 'detail' => '%entity_label_singular% (#%entity_short_id%)', 'edit' => 'Modificar %entity_label_singular%', 'index' => '%entity_label_plural%', 'new' => 'Crear %entity_label_singular%', diff --git a/src/Resources/translations/EasyAdminBundle.cs.php b/src/Resources/translations/EasyAdminBundle.cs.php index 0c95b399b7..50bf9ef656 100644 --- a/src/Resources/translations/EasyAdminBundle.cs.php +++ b/src/Resources/translations/EasyAdminBundle.cs.php @@ -3,7 +3,7 @@ return [ 'page_title' => [ 'dashboard' => 'Úvod', - 'detail' => '%entity_as_string%', + 'detail' => '%entity_label_singular% (#%entity_short_id%)', 'edit' => 'Editovat %entity_label_singular%', 'index' => '%entity_label_plural%', 'new' => 'Vytvořit %entity_label_singular%', diff --git a/src/Resources/translations/EasyAdminBundle.da.php b/src/Resources/translations/EasyAdminBundle.da.php index 68f3ae117b..f021113a7f 100644 --- a/src/Resources/translations/EasyAdminBundle.da.php +++ b/src/Resources/translations/EasyAdminBundle.da.php @@ -3,7 +3,7 @@ return [ 'page_title' => [ 'dashboard' => 'Dashboard', - 'detail' => '%entity_as_string%', + 'detail' => '%entity_label_singular% (#%entity_short_id%)', 'edit' => 'Ret %entity_label_singular%', 'index' => '%entity_label_plural%', 'new' => 'Opret %entity_label_singular%', diff --git a/src/Resources/translations/EasyAdminBundle.de.php b/src/Resources/translations/EasyAdminBundle.de.php index b8c9443f18..621a3152d8 100644 --- a/src/Resources/translations/EasyAdminBundle.de.php +++ b/src/Resources/translations/EasyAdminBundle.de.php @@ -3,7 +3,7 @@ return [ 'page_title' => [ 'dashboard' => 'Dashboard', - 'detail' => '%entity_as_string%', + 'detail' => '%entity_label_singular% (#%entity_short_id%)', 'edit' => '%entity_label_singular% bearbeiten', 'index' => '%entity_label_plural%', 'new' => '%entity_label_singular% erstellen', diff --git a/src/Resources/translations/EasyAdminBundle.el.php b/src/Resources/translations/EasyAdminBundle.el.php index c43bd697db..faf8bf0f36 100644 --- a/src/Resources/translations/EasyAdminBundle.el.php +++ b/src/Resources/translations/EasyAdminBundle.el.php @@ -3,7 +3,7 @@ return [ 'page_title' => [ 'dashboard' => 'Πίνακας ελέγχου', - 'detail' => '%entity_as_string%', + 'detail' => '%entity_label_singular% (#%entity_short_id%)', 'edit' => 'Επεξεργασία %entity_label_singular%', 'index' => '%entity_label_plural%', 'new' => 'Δημιουργία %entity_label_singular%', diff --git a/src/Resources/translations/EasyAdminBundle.en.php b/src/Resources/translations/EasyAdminBundle.en.php index aa48ea775b..d825f8ee21 100644 --- a/src/Resources/translations/EasyAdminBundle.en.php +++ b/src/Resources/translations/EasyAdminBundle.en.php @@ -3,7 +3,7 @@ return [ 'page_title' => [ 'dashboard' => 'Dashboard', - 'detail' => '%entity_as_string%', + 'detail' => '%entity_label_singular% (#%entity_short_id%)', 'edit' => 'Edit %entity_label_singular%', 'index' => '%entity_label_plural%', 'new' => 'Create %entity_label_singular%', diff --git a/src/Resources/translations/EasyAdminBundle.es.php b/src/Resources/translations/EasyAdminBundle.es.php index fa0791cf94..15c4501408 100644 --- a/src/Resources/translations/EasyAdminBundle.es.php +++ b/src/Resources/translations/EasyAdminBundle.es.php @@ -3,7 +3,7 @@ return [ 'page_title' => [ 'dashboard' => 'Inicio', - 'detail' => '%entity_as_string%', + 'detail' => '%entity_label_singular% (#%entity_short_id%)', 'edit' => 'Modificar %entity_label_singular%', 'index' => '%entity_label_plural%', 'new' => 'Crear %entity_label_singular%', diff --git a/src/Resources/translations/EasyAdminBundle.eu.php b/src/Resources/translations/EasyAdminBundle.eu.php index fb5932fa53..2b428c64f7 100644 --- a/src/Resources/translations/EasyAdminBundle.eu.php +++ b/src/Resources/translations/EasyAdminBundle.eu.php @@ -3,7 +3,7 @@ return [ 'page_title' => [ 'dashboard' => 'Hasiera', - 'detail' => '%entity_as_string%', + 'detail' => '%entity_label_singular% (#%entity_short_id%)', 'edit' => '%entity_label_singular% aldatu', 'index' => '%entity_label_plural%', 'new' => '%entity_label_singular%-a sortu', diff --git a/src/Resources/translations/EasyAdminBundle.fa.php b/src/Resources/translations/EasyAdminBundle.fa.php index 2b97f075ba..18bed4e9fe 100644 --- a/src/Resources/translations/EasyAdminBundle.fa.php +++ b/src/Resources/translations/EasyAdminBundle.fa.php @@ -3,7 +3,7 @@ return [ 'page_title' => [ 'dashboard' => 'داشبورد', - 'detail' => '%entity_as_string%', + 'detail' => '%entity_label_singular% (#%entity_short_id%)', 'edit' => 'ویرایش %entity_label_singular%', 'index' => '%entity_label_plural%', 'new' => 'ایجاد %entity_label_singular%', diff --git a/src/Resources/translations/EasyAdminBundle.fi.php b/src/Resources/translations/EasyAdminBundle.fi.php index 511ee28858..4759e84ad6 100644 --- a/src/Resources/translations/EasyAdminBundle.fi.php +++ b/src/Resources/translations/EasyAdminBundle.fi.php @@ -3,7 +3,7 @@ return [ 'page_title' => [ // 'dashboard' => '', - 'detail' => '%entity_as_string%', + 'detail' => '%entity_label_singular% (#%entity_short_id%)', 'edit' => 'Muokkaa %entity_label_singular%', 'index' => '%entity_label_plural%', 'new' => 'Luo uusi %entity_label_singular%', diff --git a/src/Resources/translations/EasyAdminBundle.fr.php b/src/Resources/translations/EasyAdminBundle.fr.php index 3107741574..767f1c2680 100644 --- a/src/Resources/translations/EasyAdminBundle.fr.php +++ b/src/Resources/translations/EasyAdminBundle.fr.php @@ -3,7 +3,7 @@ return [ 'page_title' => [ 'dashboard' => 'Tableau de bord', - 'detail' => '%entity_as_string%', + 'detail' => '%entity_label_singular% (#%entity_short_id%)', 'edit' => 'Modifier %entity_label_singular%', 'index' => '%entity_label_plural%', 'new' => 'Créer "%entity_label_singular%"', diff --git a/src/Resources/translations/EasyAdminBundle.gl.php b/src/Resources/translations/EasyAdminBundle.gl.php index 5a06014cd9..564d967efb 100644 --- a/src/Resources/translations/EasyAdminBundle.gl.php +++ b/src/Resources/translations/EasyAdminBundle.gl.php @@ -3,7 +3,7 @@ return [ 'page_title' => [ // 'dashboard' => '', - 'detail' => '%entity_as_string%', + 'detail' => '%entity_label_singular% (#%entity_short_id%)', 'edit' => 'Modificar %entity_label_singular%', 'index' => '%entity_label_plural%', 'new' => 'Crear %entity_label_singular%', diff --git a/src/Resources/translations/EasyAdminBundle.he.php b/src/Resources/translations/EasyAdminBundle.he.php index cd288d3f46..9cf6084765 100644 --- a/src/Resources/translations/EasyAdminBundle.he.php +++ b/src/Resources/translations/EasyAdminBundle.he.php @@ -3,7 +3,7 @@ return [ 'page_title' => [ 'dashboard' => 'לוח בקרה', - 'detail' => '%entity_as_string%', + 'detail' => '%entity_label_singular% (#%entity_short_id%)', 'edit' => 'עריכת %entity_label_singular%', 'index' => '%entity_label_plural%', 'new' => 'יצירת %entity_label_singular%', diff --git a/src/Resources/translations/EasyAdminBundle.hr.php b/src/Resources/translations/EasyAdminBundle.hr.php index 1368a44238..9af5c5e9a4 100644 --- a/src/Resources/translations/EasyAdminBundle.hr.php +++ b/src/Resources/translations/EasyAdminBundle.hr.php @@ -3,7 +3,7 @@ return [ 'page_title' => [ // 'dashboard' => '', - 'detail' => '%entity_as_string%', + 'detail' => '%entity_label_singular% (#%entity_short_id%)', 'edit' => 'Uredi %entity_label_singular%', 'index' => '%entity_label_plural%', 'new' => 'Izradi %entity_label_singular%', diff --git a/src/Resources/translations/EasyAdminBundle.hu.php b/src/Resources/translations/EasyAdminBundle.hu.php index 597457dee6..3b38943bd3 100644 --- a/src/Resources/translations/EasyAdminBundle.hu.php +++ b/src/Resources/translations/EasyAdminBundle.hu.php @@ -3,7 +3,7 @@ return [ 'page_title' => [ 'dashboard' => 'Vezérlőpult', - 'detail' => '%entity_as_string%', + 'detail' => '%entity_label_singular% (#%entity_short_id%)', 'edit' => '%entity_label_singular% szerkesztése', 'index' => '%entity_label_plural%', 'new' => 'Új %entity_label_singular% létrehozása', diff --git a/src/Resources/translations/EasyAdminBundle.hy.php b/src/Resources/translations/EasyAdminBundle.hy.php index 491e508e3e..991c0d0d21 100644 --- a/src/Resources/translations/EasyAdminBundle.hy.php +++ b/src/Resources/translations/EasyAdminBundle.hy.php @@ -3,7 +3,7 @@ return [ 'page_title' => [ 'dashboard' => 'Վահանակ', - 'detail' => '%entity_as_string%', + 'detail' => '%entity_label_singular% (#%entity_short_id%)', 'edit' => '%entity_label_singular%', 'index' => '%entity_label_plural%', 'new' => 'Ստեղծել նոր %entity_label_singular%', diff --git a/src/Resources/translations/EasyAdminBundle.id.php b/src/Resources/translations/EasyAdminBundle.id.php index 1d299e1ed6..6cbcabdaa6 100644 --- a/src/Resources/translations/EasyAdminBundle.id.php +++ b/src/Resources/translations/EasyAdminBundle.id.php @@ -3,7 +3,7 @@ return [ 'page_title' => [ 'dashboard' => 'Dasbor', - 'detail' => '%entity_as_string%', + 'detail' => '%entity_label_singular% (#%entity_short_id%)', 'edit' => 'Sunting %entity_label_singular%', 'index' => '%entity_label_plural%', 'new' => 'Buat %entity_label_singular%', diff --git a/src/Resources/translations/EasyAdminBundle.it.php b/src/Resources/translations/EasyAdminBundle.it.php index 3d8d4f3c66..ced892c814 100644 --- a/src/Resources/translations/EasyAdminBundle.it.php +++ b/src/Resources/translations/EasyAdminBundle.it.php @@ -3,7 +3,7 @@ return [ 'page_title' => [ // 'dashboard' => '', - 'detail' => '%entity_as_string%', + 'detail' => '%entity_label_singular% (#%entity_short_id%)', 'edit' => 'Modifica %entity_label_singular%', 'index' => '%entity_label_plural%', 'new' => 'Crea %entity_label_singular%', diff --git a/src/Resources/translations/EasyAdminBundle.lb.php b/src/Resources/translations/EasyAdminBundle.lb.php index e57174d255..d6a997984d 100644 --- a/src/Resources/translations/EasyAdminBundle.lb.php +++ b/src/Resources/translations/EasyAdminBundle.lb.php @@ -3,7 +3,7 @@ return [ 'page_title' => [ 'dashboard' => 'Tableau de bord', - 'detail' => '%entity_as_string%', + 'detail' => '%entity_label_singular% (#%entity_short_id%)', 'edit' => '%entity_label_singular% beaarbechten', 'index' => '%entity_label_plural%', 'new' => '%entity_label_singular% erstellen', diff --git a/src/Resources/translations/EasyAdminBundle.lt.php b/src/Resources/translations/EasyAdminBundle.lt.php index 3e568d3b77..547e5f4b0f 100644 --- a/src/Resources/translations/EasyAdminBundle.lt.php +++ b/src/Resources/translations/EasyAdminBundle.lt.php @@ -3,7 +3,7 @@ return [ 'page_title' => [ 'dashboard' => 'Skydelis', - 'detail' => '%entity_as_string%', + 'detail' => '%entity_label_singular% (#%entity_short_id%)', 'edit' => 'Redaguoti %entity_label_singular%', 'index' => '%entity_label_plural%', 'new' => 'Sukurti %entity_label_singular%', diff --git a/src/Resources/translations/EasyAdminBundle.mk.php b/src/Resources/translations/EasyAdminBundle.mk.php index e28d2153b8..e4a3d51556 100644 --- a/src/Resources/translations/EasyAdminBundle.mk.php +++ b/src/Resources/translations/EasyAdminBundle.mk.php @@ -3,7 +3,7 @@ return [ 'page_title' => [ 'dashboard' => 'Контролна табла', - 'detail' => '%entity_as_string%', + 'detail' => '%entity_label_singular% (#%entity_short_id%)', 'edit' => 'Уреди %entity_label_singular%', 'index' => '%entity_label_plural%', 'new' => 'Креирај %entity_label_singular%', diff --git a/src/Resources/translations/EasyAdminBundle.nl.php b/src/Resources/translations/EasyAdminBundle.nl.php index ada174f6d8..5fbfb95a6b 100644 --- a/src/Resources/translations/EasyAdminBundle.nl.php +++ b/src/Resources/translations/EasyAdminBundle.nl.php @@ -3,7 +3,7 @@ return [ 'page_title' => [ 'dashboard' => 'Dashboard', - 'detail' => '%entity_as_string%', + 'detail' => '%entity_label_singular% (#%entity_short_id%)', 'edit' => '%entity_label_singular%', 'index' => '%entity_label_plural%', 'new' => 'Maak nieuw(e) %entity_label_singular%', diff --git a/src/Resources/translations/EasyAdminBundle.no.php b/src/Resources/translations/EasyAdminBundle.no.php index a9663ed5f6..f2d4de5d29 100644 --- a/src/Resources/translations/EasyAdminBundle.no.php +++ b/src/Resources/translations/EasyAdminBundle.no.php @@ -3,7 +3,7 @@ return [ 'page_title' => [ 'dashboard' => 'Forsiden', - 'detail' => '%entity_as_string%', + 'detail' => '%entity_label_singular% (#%entity_short_id%)', 'edit' => 'Rediger %entity_label_singular%', 'index' => '%entity_label_plural%', 'new' => 'Opprett %entity_label_singular%', diff --git a/src/Resources/translations/EasyAdminBundle.pl.php b/src/Resources/translations/EasyAdminBundle.pl.php index 9ae5ccee60..8899d00c90 100644 --- a/src/Resources/translations/EasyAdminBundle.pl.php +++ b/src/Resources/translations/EasyAdminBundle.pl.php @@ -3,7 +3,7 @@ return [ 'page_title' => [ // 'dashboard' => '', - 'detail' => '%entity_as_string%', + 'detail' => '%entity_label_singular% (#%entity_short_id%)', 'edit' => '%entity_label_singular%', 'index' => '%entity_label_plural%', 'new' => 'Dodaj nowy %entity_label_singular%', diff --git a/src/Resources/translations/EasyAdminBundle.pt.php b/src/Resources/translations/EasyAdminBundle.pt.php index 1d82fa0194..a7d3c7a03b 100644 --- a/src/Resources/translations/EasyAdminBundle.pt.php +++ b/src/Resources/translations/EasyAdminBundle.pt.php @@ -3,7 +3,7 @@ return [ 'page_title' => [ 'dashboard' => 'Painel de Controlo', - 'detail' => '%entity_as_string%', + 'detail' => '%entity_label_singular% (#%entity_short_id%)', 'edit' => 'Editar %entity_label_singular%', 'index' => '%entity_label_plural%', 'new' => 'Criar %entity_label_singular%', diff --git a/src/Resources/translations/EasyAdminBundle.pt_BR.php b/src/Resources/translations/EasyAdminBundle.pt_BR.php index 3fc798b26d..611e1cd807 100644 --- a/src/Resources/translations/EasyAdminBundle.pt_BR.php +++ b/src/Resources/translations/EasyAdminBundle.pt_BR.php @@ -3,7 +3,7 @@ return [ 'page_title' => [ 'dashboard' => 'Painel de Controle', - 'detail' => '%entity_as_string%', + 'detail' => '%entity_label_singular% (#%entity_short_id%)', 'edit' => 'Editar %entity_label_singular%', 'index' => '%entity_label_plural%', 'new' => 'Adicionar %entity_label_singular%', diff --git a/src/Resources/translations/EasyAdminBundle.ro.php b/src/Resources/translations/EasyAdminBundle.ro.php index 9f8ca2377b..a5331e0415 100644 --- a/src/Resources/translations/EasyAdminBundle.ro.php +++ b/src/Resources/translations/EasyAdminBundle.ro.php @@ -3,7 +3,7 @@ return [ 'page_title' => [ 'dashboard' => 'Tablou de bord', - 'detail' => '%entity_as_string%', + 'detail' => '%entity_label_singular% (#%entity_short_id%)', 'edit' => 'Editează %entity_label_singular%', 'index' => '%entity_label_plural%', 'new' => 'Creează %entity_label_singular%', diff --git a/src/Resources/translations/EasyAdminBundle.ru.php b/src/Resources/translations/EasyAdminBundle.ru.php index 5185bdd6bf..289d4c8f72 100644 --- a/src/Resources/translations/EasyAdminBundle.ru.php +++ b/src/Resources/translations/EasyAdminBundle.ru.php @@ -3,7 +3,7 @@ return [ 'page_title' => [ 'dashboard' => 'Дашборд', - 'detail' => '%entity_as_string%', + 'detail' => '%entity_label_singular% (#%entity_short_id%)', 'edit' => '%entity_label_singular%', 'index' => '%entity_label_plural%', 'new' => 'Создать новый %entity_label_singular%', diff --git a/src/Resources/translations/EasyAdminBundle.sk.php b/src/Resources/translations/EasyAdminBundle.sk.php index 5e99f1b2d3..f84eb13343 100644 --- a/src/Resources/translations/EasyAdminBundle.sk.php +++ b/src/Resources/translations/EasyAdminBundle.sk.php @@ -3,7 +3,7 @@ return [ 'page_title' => [ 'dashboard' => 'Úvod', - 'detail' => '%entity_as_string%', + 'detail' => '%entity_label_singular% (#%entity_short_id%)', 'edit' => 'Upraviť %entity_label_singular%', 'index' => '%entity_label_plural%', 'new' => 'Vytvoriť %entity_label_singular%', diff --git a/src/Resources/translations/EasyAdminBundle.sl.php b/src/Resources/translations/EasyAdminBundle.sl.php index ca6f802c51..5705704513 100644 --- a/src/Resources/translations/EasyAdminBundle.sl.php +++ b/src/Resources/translations/EasyAdminBundle.sl.php @@ -3,7 +3,7 @@ return [ 'page_title' => [ 'dashboard' => 'Nadzorna plošča', - 'detail' => '%entity_as_string%', + 'detail' => '%entity_label_singular% (#%entity_short_id%)', 'edit' => '%entity_label_singular%', 'index' => '%entity_label_plural%', 'new' => 'Dodaj %entity_label_singular%', diff --git a/src/Resources/translations/EasyAdminBundle.sr_RS.php b/src/Resources/translations/EasyAdminBundle.sr_RS.php index 827879fabe..2412b19e2f 100644 --- a/src/Resources/translations/EasyAdminBundle.sr_RS.php +++ b/src/Resources/translations/EasyAdminBundle.sr_RS.php @@ -3,7 +3,7 @@ return [ 'page_title' => [ 'dashboard' => 'Kontrolna tabla', - 'detail' => '%entity_as_string%', + 'detail' => '%entity_label_singular% (#%entity_short_id%)', 'edit' => 'Izmena %entity_label_singular%', 'index' => '%entity_label_plural%', 'new' => 'Novi %entity_label_singular%', diff --git a/src/Resources/translations/EasyAdminBundle.sv.php b/src/Resources/translations/EasyAdminBundle.sv.php index 90cf1f5fb0..d024833750 100644 --- a/src/Resources/translations/EasyAdminBundle.sv.php +++ b/src/Resources/translations/EasyAdminBundle.sv.php @@ -3,7 +3,7 @@ return [ 'page_title' => [ // 'dashboard' => '', - 'detail' => '%entity_as_string%', + 'detail' => '%entity_label_singular% (#%entity_short_id%)', 'edit' => '%entity_label_singular%', 'index' => '%entity_label_plural%', 'new' => 'Create new %entity_label_singular%', diff --git a/src/Resources/translations/EasyAdminBundle.tr.php b/src/Resources/translations/EasyAdminBundle.tr.php index 67a678155e..8e46c9bb5d 100644 --- a/src/Resources/translations/EasyAdminBundle.tr.php +++ b/src/Resources/translations/EasyAdminBundle.tr.php @@ -3,7 +3,7 @@ return [ 'page_title' => [ 'dashboard' => 'Kontrol Paneli', - 'detail' => '%entity_as_string%', + 'detail' => '%entity_label_singular% (#%entity_short_id%)', 'edit' => '%entity_label_singular% Düzenle', 'index' => '%entity_label_plural%', 'new' => 'Oluştur : %entity_label_singular%', diff --git a/src/Resources/translations/EasyAdminBundle.uk.php b/src/Resources/translations/EasyAdminBundle.uk.php index ad93f05e3a..e5aef25069 100644 --- a/src/Resources/translations/EasyAdminBundle.uk.php +++ b/src/Resources/translations/EasyAdminBundle.uk.php @@ -3,7 +3,7 @@ return [ 'page_title' => [ 'dashboard' => 'Дешборд', - 'detail' => '%entity_as_string%', + 'detail' => '%entity_label_singular% (#%entity_short_id%)', 'edit' => '%entity_label_singular%', 'index' => '%entity_label_plural%', 'new' => 'Створити новий %entity_label_singular%', diff --git a/src/Resources/translations/EasyAdminBundle.zh_CN.php b/src/Resources/translations/EasyAdminBundle.zh_CN.php index d9b8f3e0cf..9d9e36b4a0 100644 --- a/src/Resources/translations/EasyAdminBundle.zh_CN.php +++ b/src/Resources/translations/EasyAdminBundle.zh_CN.php @@ -3,7 +3,7 @@ return [ 'page_title' => [ 'dashboard' => '控制台', - 'detail' => '%entity_as_string%', + 'detail' => '%entity_label_singular% (#%entity_short_id%)', 'edit' => '编辑 %entity_label_singular%', 'index' => '%entity_label_plural%', 'new' => '新增 %entity_label_singular%',