From 657056edc04f07ee62261644241c22549f51ed28 Mon Sep 17 00:00:00 2001 From: Vincent Langlet Date: Tue, 27 Apr 2021 20:56:41 +0200 Subject: [PATCH] Fix displays of the link to go to page 1 --- src/Resources/translations/SonataAdminBundle.bs.xliff | 4 ++-- src/Resources/translations/SonataAdminBundle.fr.xliff | 4 ++-- src/Resources/translations/SonataAdminBundle.hr.xliff | 4 ++-- src/Resources/translations/SonataAdminBundle.hu.xliff | 4 ++-- src/Resources/translations/SonataAdminBundle.it.xliff | 4 ++-- src/Resources/translations/SonataAdminBundle.ja.xliff | 4 ++-- src/Resources/translations/SonataAdminBundle.lb.xliff | 4 ++-- src/Resources/translations/SonataAdminBundle.lt.xliff | 4 ++-- src/Resources/translations/SonataAdminBundle.lv.xliff | 4 ++-- src/Resources/translations/SonataAdminBundle.nl.xliff | 4 ++-- src/Resources/translations/SonataAdminBundle.no.xliff | 4 ++-- src/Resources/translations/SonataAdminBundle.pl.xliff | 4 ++-- src/Resources/translations/SonataAdminBundle.pt.xliff | 4 ++-- src/Resources/translations/SonataAdminBundle.pt_BR.xliff | 4 ++-- src/Resources/translations/SonataAdminBundle.ro.xliff | 4 ++-- src/Resources/translations/SonataAdminBundle.ru.xliff | 4 ++-- src/Resources/translations/SonataAdminBundle.sk.xliff | 4 ++-- src/Resources/translations/SonataAdminBundle.sl.xliff | 4 ++-- src/Resources/translations/SonataAdminBundle.sr_Cyrl.xliff | 4 ++-- src/Resources/translations/SonataAdminBundle.sr_Latn.xliff | 4 ++-- src/Resources/translations/SonataAdminBundle.sv_SE.xliff | 4 ++-- src/Resources/translations/SonataAdminBundle.tr.xliff | 4 ++-- src/Resources/translations/SonataAdminBundle.uk.xliff | 4 ++-- src/Resources/translations/SonataAdminBundle.zh_CN.xliff | 4 ++-- src/Resources/translations/SonataAdminBundle.zh_HK.xliff | 4 ++-- src/Resources/views/CRUD/base_list.html.twig | 3 ++- 26 files changed, 52 insertions(+), 51 deletions(-) diff --git a/src/Resources/translations/SonataAdminBundle.bs.xliff b/src/Resources/translations/SonataAdminBundle.bs.xliff index bf6eb700d4a..4a0e67094de 100644 --- a/src/Resources/translations/SonataAdminBundle.bs.xliff +++ b/src/Resources/translations/SonataAdminBundle.bs.xliff @@ -498,8 +498,8 @@ label_type_ends_with završava se sa - - go_to_first_page + + go_to_the_first_page Idi na prvu stranicu diff --git a/src/Resources/translations/SonataAdminBundle.fr.xliff b/src/Resources/translations/SonataAdminBundle.fr.xliff index 24f84dd0ff7..86e85ff8e1e 100644 --- a/src/Resources/translations/SonataAdminBundle.fr.xliff +++ b/src/Resources/translations/SonataAdminBundle.fr.xliff @@ -502,8 +502,8 @@ label_type_ends_with termine par - - go_to_first_page + + go_to_the_first_page Aller à la première page diff --git a/src/Resources/translations/SonataAdminBundle.hr.xliff b/src/Resources/translations/SonataAdminBundle.hr.xliff index e9f6332c2bf..a6f590df8de 100644 --- a/src/Resources/translations/SonataAdminBundle.hr.xliff +++ b/src/Resources/translations/SonataAdminBundle.hr.xliff @@ -502,8 +502,8 @@ label_type_ends_with završava sa - - go_to_first_page + + go_to_the_first_page Idite na prvu stranicu diff --git a/src/Resources/translations/SonataAdminBundle.hu.xliff b/src/Resources/translations/SonataAdminBundle.hu.xliff index e567cc11cf8..bb20b89e496 100644 --- a/src/Resources/translations/SonataAdminBundle.hu.xliff +++ b/src/Resources/translations/SonataAdminBundle.hu.xliff @@ -502,8 +502,8 @@ label_type_ends_with végződik - - go_to_first_page + + go_to_the_first_page Menj az első oldalra diff --git a/src/Resources/translations/SonataAdminBundle.it.xliff b/src/Resources/translations/SonataAdminBundle.it.xliff index 91f706a475f..4c1f705fb5c 100644 --- a/src/Resources/translations/SonataAdminBundle.it.xliff +++ b/src/Resources/translations/SonataAdminBundle.it.xliff @@ -502,8 +502,8 @@ label_type_ends_with finisce con - - go_to_first_page + + go_to_the_first_page Vai alla prima pagina diff --git a/src/Resources/translations/SonataAdminBundle.ja.xliff b/src/Resources/translations/SonataAdminBundle.ja.xliff index e88d5a90fb1..843f1ab6851 100644 --- a/src/Resources/translations/SonataAdminBundle.ja.xliff +++ b/src/Resources/translations/SonataAdminBundle.ja.xliff @@ -502,8 +502,8 @@ label_type_ends_with で終わる - - go_to_first_page + + go_to_the_first_page 最初のページに移動 diff --git a/src/Resources/translations/SonataAdminBundle.lb.xliff b/src/Resources/translations/SonataAdminBundle.lb.xliff index 7871d0206a3..bcf6c3bb5fb 100644 --- a/src/Resources/translations/SonataAdminBundle.lb.xliff +++ b/src/Resources/translations/SonataAdminBundle.lb.xliff @@ -502,8 +502,8 @@ label_type_ends_with goung mat - - go_to_first_page + + go_to_the_first_page Gitt op déi éischt Säit diff --git a/src/Resources/translations/SonataAdminBundle.lt.xliff b/src/Resources/translations/SonataAdminBundle.lt.xliff index 42cb85fbc64..3e905de4cf9 100644 --- a/src/Resources/translations/SonataAdminBundle.lt.xliff +++ b/src/Resources/translations/SonataAdminBundle.lt.xliff @@ -502,8 +502,8 @@ label_type_ends_with baigiasi su - - go_to_first_page + + go_to_the_first_page Eikite į pirmąjį puslapį diff --git a/src/Resources/translations/SonataAdminBundle.lv.xliff b/src/Resources/translations/SonataAdminBundle.lv.xliff index 0ae8cd51983..4ffe05f99f9 100644 --- a/src/Resources/translations/SonataAdminBundle.lv.xliff +++ b/src/Resources/translations/SonataAdminBundle.lv.xliff @@ -504,8 +504,8 @@ toggle_navigation Pārslēgt navigāciju - - go_to_first_page + + go_to_the_first_page Pāriet uz pirmo lapu diff --git a/src/Resources/translations/SonataAdminBundle.nl.xliff b/src/Resources/translations/SonataAdminBundle.nl.xliff index b428c027c5c..11b15afc6b8 100644 --- a/src/Resources/translations/SonataAdminBundle.nl.xliff +++ b/src/Resources/translations/SonataAdminBundle.nl.xliff @@ -502,8 +502,8 @@ label_type_ends_with eindigt met - - go_to_first_page + + go_to_the_first_page Ga naar de eerste pagina diff --git a/src/Resources/translations/SonataAdminBundle.no.xliff b/src/Resources/translations/SonataAdminBundle.no.xliff index d3597e48182..209fc0af984 100644 --- a/src/Resources/translations/SonataAdminBundle.no.xliff +++ b/src/Resources/translations/SonataAdminBundle.no.xliff @@ -503,8 +503,8 @@ label_type_ends_with slutter med - - go_to_first_page + + go_to_the_first_page Gå til første side diff --git a/src/Resources/translations/SonataAdminBundle.pl.xliff b/src/Resources/translations/SonataAdminBundle.pl.xliff index f58a35ad147..6135dfbbbf8 100644 --- a/src/Resources/translations/SonataAdminBundle.pl.xliff +++ b/src/Resources/translations/SonataAdminBundle.pl.xliff @@ -502,8 +502,8 @@ label_type_ends_with kończy się na - - go_to_first_page + + go_to_the_first_page Przejdź do pierwszej strony diff --git a/src/Resources/translations/SonataAdminBundle.pt.xliff b/src/Resources/translations/SonataAdminBundle.pt.xliff index 0176f15454c..e6f0e7ece4f 100644 --- a/src/Resources/translations/SonataAdminBundle.pt.xliff +++ b/src/Resources/translations/SonataAdminBundle.pt.xliff @@ -503,8 +503,8 @@ label_type_ends_with termina com - - go_to_first_page + + go_to_the_first_page Vá para a primeira página diff --git a/src/Resources/translations/SonataAdminBundle.pt_BR.xliff b/src/Resources/translations/SonataAdminBundle.pt_BR.xliff index bcf69c92078..7d892c853a0 100644 --- a/src/Resources/translations/SonataAdminBundle.pt_BR.xliff +++ b/src/Resources/translations/SonataAdminBundle.pt_BR.xliff @@ -502,8 +502,8 @@ label_type_ends_with termina com - - go_to_first_page + + go_to_the_first_page Vá para a primeira página diff --git a/src/Resources/translations/SonataAdminBundle.ro.xliff b/src/Resources/translations/SonataAdminBundle.ro.xliff index b97ab8b6fb0..786cc126a0f 100644 --- a/src/Resources/translations/SonataAdminBundle.ro.xliff +++ b/src/Resources/translations/SonataAdminBundle.ro.xliff @@ -502,8 +502,8 @@ label_type_ends_with se termină cu - - go_to_first_page + + go_to_the_first_page Accesați prima pagină diff --git a/src/Resources/translations/SonataAdminBundle.ru.xliff b/src/Resources/translations/SonataAdminBundle.ru.xliff index 2059fb3c996..7b2e93052e0 100644 --- a/src/Resources/translations/SonataAdminBundle.ru.xliff +++ b/src/Resources/translations/SonataAdminBundle.ru.xliff @@ -502,8 +502,8 @@ label_type_ends_with заканчивается - - go_to_first_page + + go_to_the_first_page Перейти на первую страницу diff --git a/src/Resources/translations/SonataAdminBundle.sk.xliff b/src/Resources/translations/SonataAdminBundle.sk.xliff index 5f9af951466..041fd3e0d0f 100644 --- a/src/Resources/translations/SonataAdminBundle.sk.xliff +++ b/src/Resources/translations/SonataAdminBundle.sk.xliff @@ -502,8 +502,8 @@ label_type_ends_with končí na - - go_to_first_page + + go_to_the_first_page Prejdite na prvú stránku diff --git a/src/Resources/translations/SonataAdminBundle.sl.xliff b/src/Resources/translations/SonataAdminBundle.sl.xliff index 3fb9ef69343..d2f16dc08d4 100644 --- a/src/Resources/translations/SonataAdminBundle.sl.xliff +++ b/src/Resources/translations/SonataAdminBundle.sl.xliff @@ -502,8 +502,8 @@ label_type_ends_with konča z - - go_to_first_page + + go_to_the_first_page Pojdite na prvo stran diff --git a/src/Resources/translations/SonataAdminBundle.sr_Cyrl.xliff b/src/Resources/translations/SonataAdminBundle.sr_Cyrl.xliff index 7929ad06c3b..5a9f0b39809 100644 --- a/src/Resources/translations/SonataAdminBundle.sr_Cyrl.xliff +++ b/src/Resources/translations/SonataAdminBundle.sr_Cyrl.xliff @@ -498,8 +498,8 @@ label_type_ends_with завршава се са - - go_to_first_page + + go_to_the_first_page Иди на прву страницу diff --git a/src/Resources/translations/SonataAdminBundle.sr_Latn.xliff b/src/Resources/translations/SonataAdminBundle.sr_Latn.xliff index 648cf07566e..68640a1d6c6 100644 --- a/src/Resources/translations/SonataAdminBundle.sr_Latn.xliff +++ b/src/Resources/translations/SonataAdminBundle.sr_Latn.xliff @@ -498,8 +498,8 @@ label_type_ends_with završava se sa - - go_to_first_page + + go_to_the_first_page Idi na prvu stranicu diff --git a/src/Resources/translations/SonataAdminBundle.sv_SE.xliff b/src/Resources/translations/SonataAdminBundle.sv_SE.xliff index 186d126cde3..a6dc6b8e8f9 100644 --- a/src/Resources/translations/SonataAdminBundle.sv_SE.xliff +++ b/src/Resources/translations/SonataAdminBundle.sv_SE.xliff @@ -502,8 +502,8 @@ label_type_ends_with slutar med - - go_to_first_page + + go_to_the_first_page Gå till första sidan diff --git a/src/Resources/translations/SonataAdminBundle.tr.xliff b/src/Resources/translations/SonataAdminBundle.tr.xliff index c2579c14487..2ef14c4ce88 100644 --- a/src/Resources/translations/SonataAdminBundle.tr.xliff +++ b/src/Resources/translations/SonataAdminBundle.tr.xliff @@ -502,8 +502,8 @@ label_type_ends_with ile biter - - go_to_first_page + + go_to_the_first_page İlk sayfaya git diff --git a/src/Resources/translations/SonataAdminBundle.uk.xliff b/src/Resources/translations/SonataAdminBundle.uk.xliff index 36420ca1c16..f444f9daf1f 100644 --- a/src/Resources/translations/SonataAdminBundle.uk.xliff +++ b/src/Resources/translations/SonataAdminBundle.uk.xliff @@ -502,8 +502,8 @@ label_type_ends_with закінчується на - - go_to_first_page + + go_to_the_first_page Перейдіть на першу сторінку diff --git a/src/Resources/translations/SonataAdminBundle.zh_CN.xliff b/src/Resources/translations/SonataAdminBundle.zh_CN.xliff index cd6c2d8a89f..3efaab77953 100644 --- a/src/Resources/translations/SonataAdminBundle.zh_CN.xliff +++ b/src/Resources/translations/SonataAdminBundle.zh_CN.xliff @@ -502,8 +502,8 @@ label_type_ends_with 以。。结束 - - go_to_first_page + + go_to_the_first_page 转到第一页 diff --git a/src/Resources/translations/SonataAdminBundle.zh_HK.xliff b/src/Resources/translations/SonataAdminBundle.zh_HK.xliff index 38522da971f..6ddfd26da88 100644 --- a/src/Resources/translations/SonataAdminBundle.zh_HK.xliff +++ b/src/Resources/translations/SonataAdminBundle.zh_HK.xliff @@ -502,8 +502,8 @@ label_type_ends_with 以。。結束 - - go_to_first_page + + go_to_the_first_page 轉到第一頁 diff --git a/src/Resources/views/CRUD/base_list.html.twig b/src/Resources/views/CRUD/base_list.html.twig index 0f86d4e02e7..a80df69f5b7 100644 --- a/src/Resources/views/CRUD/base_list.html.twig +++ b/src/Resources/views/CRUD/base_list.html.twig @@ -115,7 +115,8 @@ file that was distributed with this source code.
    - {%- if admin.datagrid.results|length > 0 -%} + {# NEXT_MAJOR: remove the attribute check and just use .countResults() #} + {%- if (attribute(admin.datagrid.pager, 'countResults') is defined ? admin.datagrid.pager.countResults() : admin.datagrid.pager.getNbResults()) > 0 -%}
  • {{- 'go_to_the_first_page'|trans({}, 'SonataAdminBundle') -}}