Skip to content

Commit

Permalink
Fix displays of the link to go to page 1
Browse files Browse the repository at this point in the history
  • Loading branch information
VincentLanglet committed Apr 27, 2021
1 parent 0842eff commit 657056e
Show file tree
Hide file tree
Showing 26 changed files with 52 additions and 51 deletions.
4 changes: 2 additions & 2 deletions src/Resources/translations/SonataAdminBundle.bs.xliff
Original file line number Diff line number Diff line change
Expand Up @@ -498,8 +498,8 @@
<source>label_type_ends_with</source>
<target>završava se sa</target>
</trans-unit>
<trans-unit id="go_to_first_page">
<source>go_to_first_page</source>
<trans-unit id="go_to_the_first_page">
<source>go_to_the_first_page</source>
<target>Idi na prvu stranicu</target>
</trans-unit>
</body>
Expand Down
4 changes: 2 additions & 2 deletions src/Resources/translations/SonataAdminBundle.fr.xliff
Original file line number Diff line number Diff line change
Expand Up @@ -502,8 +502,8 @@
<source>label_type_ends_with</source>
<target>termine par</target>
</trans-unit>
<trans-unit id="go_to_first_page">
<source>go_to_first_page</source>
<trans-unit id="go_to_the_first_page">
<source>go_to_the_first_page</source>
<target>Aller à la première page</target>
</trans-unit>
</body>
Expand Down
4 changes: 2 additions & 2 deletions src/Resources/translations/SonataAdminBundle.hr.xliff
Original file line number Diff line number Diff line change
Expand Up @@ -502,8 +502,8 @@
<source>label_type_ends_with</source>
<target>završava sa</target>
</trans-unit>
<trans-unit id="go_to_first_page">
<source>go_to_first_page</source>
<trans-unit id="go_to_the_first_page">
<source>go_to_the_first_page</source>
<target>Idite na prvu stranicu</target>
</trans-unit>
</body>
Expand Down
4 changes: 2 additions & 2 deletions src/Resources/translations/SonataAdminBundle.hu.xliff
Original file line number Diff line number Diff line change
Expand Up @@ -502,8 +502,8 @@
<source>label_type_ends_with</source>
<target>végződik</target>
</trans-unit>
<trans-unit id="go_to_first_page">
<source>go_to_first_page</source>
<trans-unit id="go_to_the_first_page">
<source>go_to_the_first_page</source>
<target>Menj az első oldalra</target>
</trans-unit>
</body>
Expand Down
4 changes: 2 additions & 2 deletions src/Resources/translations/SonataAdminBundle.it.xliff
Original file line number Diff line number Diff line change
Expand Up @@ -502,8 +502,8 @@
<source>label_type_ends_with</source>
<target>finisce con</target>
</trans-unit>
<trans-unit id="go_to_first_page">
<source>go_to_first_page</source>
<trans-unit id="go_to_the_first_page">
<source>go_to_the_first_page</source>
<target>Vai alla prima pagina</target>
</trans-unit>
</body>
Expand Down
4 changes: 2 additions & 2 deletions src/Resources/translations/SonataAdminBundle.ja.xliff
Original file line number Diff line number Diff line change
Expand Up @@ -502,8 +502,8 @@
<source>label_type_ends_with</source>
<target>で終わる</target>
</trans-unit>
<trans-unit id="go_to_first_page">
<source>go_to_first_page</source>
<trans-unit id="go_to_the_first_page">
<source>go_to_the_first_page</source>
<target>最初のページに移動</target>
</trans-unit>
</body>
Expand Down
4 changes: 2 additions & 2 deletions src/Resources/translations/SonataAdminBundle.lb.xliff
Original file line number Diff line number Diff line change
Expand Up @@ -502,8 +502,8 @@
<source>label_type_ends_with</source>
<target>goung mat</target>
</trans-unit>
<trans-unit id="go_to_first_page">
<source>go_to_first_page</source>
<trans-unit id="go_to_the_first_page">
<source>go_to_the_first_page</source>
<target>Gitt op déi éischt Säit</target>
</trans-unit>
</body>
Expand Down
4 changes: 2 additions & 2 deletions src/Resources/translations/SonataAdminBundle.lt.xliff
Original file line number Diff line number Diff line change
Expand Up @@ -502,8 +502,8 @@
<source>label_type_ends_with</source>
<target>baigiasi su</target>
</trans-unit>
<trans-unit id="go_to_first_page">
<source>go_to_first_page</source>
<trans-unit id="go_to_the_first_page">
<source>go_to_the_first_page</source>
<target>Eikite į pirmąjį puslapį</target>
</trans-unit>
</body>
Expand Down
4 changes: 2 additions & 2 deletions src/Resources/translations/SonataAdminBundle.lv.xliff
Original file line number Diff line number Diff line change
Expand Up @@ -504,8 +504,8 @@
<source>toggle_navigation</source>
<target>Pārslēgt navigāciju</target>
</trans-unit>
<trans-unit id="go_to_first_page">
<source>go_to_first_page</source>
<trans-unit id="go_to_the_first_page">
<source>go_to_the_first_page</source>
<target>Pāriet uz pirmo lapu</target>
</trans-unit>
</body>
Expand Down
4 changes: 2 additions & 2 deletions src/Resources/translations/SonataAdminBundle.nl.xliff
Original file line number Diff line number Diff line change
Expand Up @@ -502,8 +502,8 @@
<source>label_type_ends_with</source>
<target>eindigt met</target>
</trans-unit>
<trans-unit id="go_to_first_page">
<source>go_to_first_page</source>
<trans-unit id="go_to_the_first_page">
<source>go_to_the_first_page</source>
<target>Ga naar de eerste pagina</target>
</trans-unit>
</body>
Expand Down
4 changes: 2 additions & 2 deletions src/Resources/translations/SonataAdminBundle.no.xliff
Original file line number Diff line number Diff line change
Expand Up @@ -503,8 +503,8 @@
<source>label_type_ends_with</source>
<target>slutter med</target>
</trans-unit>
<trans-unit id="go_to_first_page">
<source>go_to_first_page</source>
<trans-unit id="go_to_the_first_page">
<source>go_to_the_first_page</source>
<target>Gå til første side</target>
</trans-unit>
</body>
Expand Down
4 changes: 2 additions & 2 deletions src/Resources/translations/SonataAdminBundle.pl.xliff
Original file line number Diff line number Diff line change
Expand Up @@ -502,8 +502,8 @@
<source>label_type_ends_with</source>
<target>kończy się na</target>
</trans-unit>
<trans-unit id="go_to_first_page">
<source>go_to_first_page</source>
<trans-unit id="go_to_the_first_page">
<source>go_to_the_first_page</source>
<target>Przejdź do pierwszej strony</target>
</trans-unit>
</body>
Expand Down
4 changes: 2 additions & 2 deletions src/Resources/translations/SonataAdminBundle.pt.xliff
Original file line number Diff line number Diff line change
Expand Up @@ -503,8 +503,8 @@
<source>label_type_ends_with</source>
<target>termina com</target>
</trans-unit>
<trans-unit id="go_to_first_page">
<source>go_to_first_page</source>
<trans-unit id="go_to_the_first_page">
<source>go_to_the_first_page</source>
<target>Vá para a primeira página</target>
</trans-unit>
</body>
Expand Down
4 changes: 2 additions & 2 deletions src/Resources/translations/SonataAdminBundle.pt_BR.xliff
Original file line number Diff line number Diff line change
Expand Up @@ -502,8 +502,8 @@
<source>label_type_ends_with</source>
<target>termina com</target>
</trans-unit>
<trans-unit id="go_to_first_page">
<source>go_to_first_page</source>
<trans-unit id="go_to_the_first_page">
<source>go_to_the_first_page</source>
<target>Vá para a primeira página</target>
</trans-unit>
</body>
Expand Down
4 changes: 2 additions & 2 deletions src/Resources/translations/SonataAdminBundle.ro.xliff
Original file line number Diff line number Diff line change
Expand Up @@ -502,8 +502,8 @@
<source>label_type_ends_with</source>
<target>se termină cu</target>
</trans-unit>
<trans-unit id="go_to_first_page">
<source>go_to_first_page</source>
<trans-unit id="go_to_the_first_page">
<source>go_to_the_first_page</source>
<target>Accesați prima pagină</target>
</trans-unit>
</body>
Expand Down
4 changes: 2 additions & 2 deletions src/Resources/translations/SonataAdminBundle.ru.xliff
Original file line number Diff line number Diff line change
Expand Up @@ -502,8 +502,8 @@
<source>label_type_ends_with</source>
<target> заканчивается </target>
</trans-unit>
<trans-unit id="go_to_first_page">
<source>go_to_first_page</source>
<trans-unit id="go_to_the_first_page">
<source>go_to_the_first_page</source>
<target>Перейти на первую страницу</target>
</trans-unit>
</body>
Expand Down
4 changes: 2 additions & 2 deletions src/Resources/translations/SonataAdminBundle.sk.xliff
Original file line number Diff line number Diff line change
Expand Up @@ -502,8 +502,8 @@
<source>label_type_ends_with</source>
<target>končí na</target>
</trans-unit>
<trans-unit id="go_to_first_page">
<source>go_to_first_page</source>
<trans-unit id="go_to_the_first_page">
<source>go_to_the_first_page</source>
<target>Prejdite na prvú stránku</target>
</trans-unit>
</body>
Expand Down
4 changes: 2 additions & 2 deletions src/Resources/translations/SonataAdminBundle.sl.xliff
Original file line number Diff line number Diff line change
Expand Up @@ -502,8 +502,8 @@
<source>label_type_ends_with</source>
<target>konča z</target>
</trans-unit>
<trans-unit id="go_to_first_page">
<source>go_to_first_page</source>
<trans-unit id="go_to_the_first_page">
<source>go_to_the_first_page</source>
<target>Pojdite na prvo stran</target>
</trans-unit>
</body>
Expand Down
4 changes: 2 additions & 2 deletions src/Resources/translations/SonataAdminBundle.sr_Cyrl.xliff
Original file line number Diff line number Diff line change
Expand Up @@ -498,8 +498,8 @@
<source>label_type_ends_with</source>
<target>завршава се са</target>
</trans-unit>
<trans-unit id="go_to_first_page">
<source>go_to_first_page</source>
<trans-unit id="go_to_the_first_page">
<source>go_to_the_first_page</source>
<target>Иди на прву страницу</target>
</trans-unit>
</body>
Expand Down
4 changes: 2 additions & 2 deletions src/Resources/translations/SonataAdminBundle.sr_Latn.xliff
Original file line number Diff line number Diff line change
Expand Up @@ -498,8 +498,8 @@
<source>label_type_ends_with</source>
<target>završava se sa</target>
</trans-unit>
<trans-unit id="go_to_first_page">
<source>go_to_first_page</source>
<trans-unit id="go_to_the_first_page">
<source>go_to_the_first_page</source>
<target>Idi na prvu stranicu</target>
</trans-unit>
</body>
Expand Down
4 changes: 2 additions & 2 deletions src/Resources/translations/SonataAdminBundle.sv_SE.xliff
Original file line number Diff line number Diff line change
Expand Up @@ -502,8 +502,8 @@
<source>label_type_ends_with</source>
<target>slutar med</target>
</trans-unit>
<trans-unit id="go_to_first_page">
<source>go_to_first_page</source>
<trans-unit id="go_to_the_first_page">
<source>go_to_the_first_page</source>
<target>Gå till första sidan</target>
</trans-unit>
</body>
Expand Down
4 changes: 2 additions & 2 deletions src/Resources/translations/SonataAdminBundle.tr.xliff
Original file line number Diff line number Diff line change
Expand Up @@ -502,8 +502,8 @@
<source>label_type_ends_with</source>
<target>ile biter</target>
</trans-unit>
<trans-unit id="go_to_first_page">
<source>go_to_first_page</source>
<trans-unit id="go_to_the_first_page">
<source>go_to_the_first_page</source>
<target>İlk sayfaya git</target>
</trans-unit>
</body>
Expand Down
4 changes: 2 additions & 2 deletions src/Resources/translations/SonataAdminBundle.uk.xliff
Original file line number Diff line number Diff line change
Expand Up @@ -502,8 +502,8 @@
<source>label_type_ends_with</source>
<target>закінчується на</target>
</trans-unit>
<trans-unit id="go_to_first_page">
<source>go_to_first_page</source>
<trans-unit id="go_to_the_first_page">
<source>go_to_the_first_page</source>
<target>Перейдіть на першу сторінку</target>
</trans-unit>
</body>
Expand Down
4 changes: 2 additions & 2 deletions src/Resources/translations/SonataAdminBundle.zh_CN.xliff
Original file line number Diff line number Diff line change
Expand Up @@ -502,8 +502,8 @@
<source>label_type_ends_with</source>
<target>以。。结束</target>
</trans-unit>
<trans-unit id="go_to_first_page">
<source>go_to_first_page</source>
<trans-unit id="go_to_the_first_page">
<source>go_to_the_first_page</source>
<target>转到第一页</target>
</trans-unit>
</body>
Expand Down
4 changes: 2 additions & 2 deletions src/Resources/translations/SonataAdminBundle.zh_HK.xliff
Original file line number Diff line number Diff line change
Expand Up @@ -502,8 +502,8 @@
<source>label_type_ends_with</source>
<target>以。。結束</target>
</trans-unit>
<trans-unit id="go_to_first_page">
<source>go_to_first_page</source>
<trans-unit id="go_to_the_first_page">
<source>go_to_the_first_page</source>
<target>轉到第一頁</target>
</trans-unit>
</body>
Expand Down
3 changes: 2 additions & 1 deletion src/Resources/views/CRUD/base_list.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,8 @@ file that was distributed with this source code.
</div>
<div class="progress-description">
<ul class="list-inline">
{%- 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 -%}
<li>
<a href="{{ admin.generateUrl('list') }}">
{{- 'go_to_the_first_page'|trans({}, 'SonataAdminBundle') -}}
Expand Down

0 comments on commit 657056e

Please sign in to comment.