pagy 6.0.0 → 7.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (97) hide show
  1. checksums.yaml +4 -4
  2. data/LICENSE.txt +1 -1
  3. data/lib/config/pagy.rb +56 -44
  4. data/lib/javascripts/pagy-dev.js +3 -3
  5. data/lib/javascripts/pagy-module.js +2 -2
  6. data/lib/javascripts/pagy.js +1 -1
  7. data/lib/locales/ar.yml +15 -11
  8. data/lib/locales/be.yml +25 -0
  9. data/lib/locales/bg.yml +10 -11
  10. data/lib/locales/bs.yml +12 -11
  11. data/lib/locales/ca.yml +12 -11
  12. data/lib/locales/cs.yml +13 -10
  13. data/lib/locales/da.yml +14 -13
  14. data/lib/locales/de.yml +10 -11
  15. data/lib/locales/en.yml +10 -11
  16. data/lib/locales/es.yml +10 -11
  17. data/lib/locales/fr.yml +10 -11
  18. data/lib/locales/hr.yml +12 -11
  19. data/lib/locales/id.yml +10 -11
  20. data/lib/locales/it.yml +10 -11
  21. data/lib/locales/ja.yml +10 -11
  22. data/lib/locales/km.yml +10 -10
  23. data/lib/locales/ko.yml +10 -11
  24. data/lib/locales/nb.yml +10 -11
  25. data/lib/locales/nl.yml +10 -11
  26. data/lib/locales/nn.yml +10 -11
  27. data/lib/locales/pl.yml +12 -11
  28. data/lib/locales/pt-BR.yml +10 -11
  29. data/lib/locales/pt.yml +10 -11
  30. data/lib/locales/ru.yml +14 -11
  31. data/lib/locales/sr.yml +12 -10
  32. data/lib/locales/sv-SE.yml +10 -12
  33. data/lib/locales/sv.yml +10 -12
  34. data/lib/locales/sw.yml +12 -11
  35. data/lib/locales/ta.yml +12 -11
  36. data/lib/locales/tr.yml +10 -11
  37. data/lib/locales/uk.yml +12 -11
  38. data/lib/locales/vi.yml +17 -0
  39. data/lib/locales/zh-CN.yml +10 -11
  40. data/lib/locales/zh-HK.yml +10 -11
  41. data/lib/locales/zh-TW.yml +10 -11
  42. data/lib/pagy/backend.rb +10 -4
  43. data/lib/pagy/calendar/day.rb +4 -3
  44. data/lib/pagy/calendar/helper.rb +15 -11
  45. data/lib/pagy/calendar/month.rb +4 -3
  46. data/lib/pagy/calendar/quarter.rb +4 -3
  47. data/lib/pagy/calendar/week.rb +1 -1
  48. data/lib/pagy/calendar/year.rb +3 -2
  49. data/lib/pagy/calendar.rb +33 -7
  50. data/lib/pagy/console.rb +1 -1
  51. data/lib/pagy/countless.rb +1 -1
  52. data/lib/pagy/exceptions.rb +1 -1
  53. data/lib/pagy/extras/arel.rb +1 -1
  54. data/lib/pagy/extras/array.rb +1 -1
  55. data/lib/pagy/extras/bootstrap.rb +45 -32
  56. data/lib/pagy/extras/bulma.rb +41 -32
  57. data/lib/pagy/extras/calendar.rb +17 -13
  58. data/lib/pagy/extras/countless.rb +1 -1
  59. data/lib/pagy/extras/elasticsearch_rails.rb +8 -8
  60. data/lib/pagy/extras/foundation.rb +48 -33
  61. data/lib/pagy/extras/frontend_helpers.rb +11 -11
  62. data/lib/pagy/extras/gearbox.rb +1 -1
  63. data/lib/pagy/extras/headers.rb +8 -8
  64. data/lib/pagy/extras/i18n.rb +5 -5
  65. data/lib/pagy/extras/items.rb +19 -12
  66. data/lib/pagy/extras/jsonapi.rb +79 -0
  67. data/lib/pagy/extras/materialize.rb +42 -30
  68. data/lib/pagy/extras/meilisearch.rb +12 -11
  69. data/lib/pagy/extras/metadata.rb +2 -2
  70. data/lib/pagy/extras/navs.rb +22 -34
  71. data/lib/pagy/extras/overflow.rb +9 -7
  72. data/lib/pagy/extras/searchkick.rb +8 -8
  73. data/lib/pagy/extras/semantic.rb +41 -28
  74. data/lib/pagy/extras/standalone.rb +10 -16
  75. data/lib/pagy/extras/support.rb +19 -33
  76. data/lib/pagy/extras/trim.rb +4 -4
  77. data/lib/pagy/extras/uikit.rb +44 -31
  78. data/lib/pagy/frontend.rb +57 -26
  79. data/lib/pagy/i18n.rb +3 -3
  80. data/lib/pagy/url_helpers.rb +15 -12
  81. data/lib/pagy.rb +57 -41
  82. metadata +7 -19
  83. data/lib/templates/bootstrap_nav.html.erb +0 -24
  84. data/lib/templates/bootstrap_nav.html.haml +0 -34
  85. data/lib/templates/bootstrap_nav.html.slim +0 -34
  86. data/lib/templates/bulma_nav.html.erb +0 -24
  87. data/lib/templates/bulma_nav.html.haml +0 -32
  88. data/lib/templates/bulma_nav.html.slim +0 -32
  89. data/lib/templates/foundation_nav.html.erb +0 -24
  90. data/lib/templates/foundation_nav.html.haml +0 -34
  91. data/lib/templates/foundation_nav.html.slim +0 -34
  92. data/lib/templates/nav.html.erb +0 -22
  93. data/lib/templates/nav.html.haml +0 -30
  94. data/lib/templates/nav.html.slim +0 -29
  95. data/lib/templates/uikit_nav.html.erb +0 -15
  96. data/lib/templates/uikit_nav.html.haml +0 -28
  97. data/lib/templates/uikit_nav.html.slim +0 -28
data/lib/locales/de.yml CHANGED
@@ -1,22 +1,21 @@
1
- # :one_other pluralization (see https://github.com/ddnexus/pagy/blob/master/lib/locales/utils/p11n.rb)
2
-
1
+ # :one_other pluralization (see https://github.com/ddnexus/pagy/blob/master/lib/pagy/i18n.rb)
3
2
  de:
4
3
  pagy:
5
-
4
+ aria_label:
5
+ nav:
6
+ one: "Seite"
7
+ other: "Seiten"
8
+ prev: "Zurück"
9
+ next: "Weiter"
10
+ prev: "<"
11
+ next: ">"
12
+ gap: "…"
6
13
  item_name:
7
14
  one: "Eintrag"
8
15
  other: "Einträge"
9
-
10
- nav:
11
- prev: "‹ Zurück"
12
- next: "Weiter ›"
13
- gap: "…"
14
-
15
16
  info:
16
17
  no_items: "Keine %{item_name} gefunden"
17
18
  single_page: "Zeige <b>%{count}</b> %{item_name}"
18
19
  multiple_pages: "Zeige %{item_name} <b>%{from}-%{to}</b> von <b>%{count}</b> gesamt"
19
-
20
20
  combo_nav_js: "<label>Seite %{page_input} von %{pages}</label>"
21
-
22
21
  items_selector_js: "<label>Zeige %{items_input} %{item_name} pro Seite</label>"
data/lib/locales/en.yml CHANGED
@@ -1,22 +1,21 @@
1
- # :one_other pluralization (see https://github.com/ddnexus/pagy/blob/master/lib/locales/utils/p11n.rb)
2
-
1
+ # :one_other pluralization (see https://github.com/ddnexus/pagy/blob/master/lib/pagy/i18n.rb)
3
2
  en:
4
3
  pagy:
5
-
4
+ aria_label:
5
+ nav:
6
+ one: "Page"
7
+ other: "Pages"
8
+ prev: "Previous"
9
+ next: "Next"
10
+ prev: "&lt;"
11
+ next: "&gt;"
12
+ gap: "&hellip;"
6
13
  item_name:
7
14
  one: "item"
8
15
  other: "items"
9
-
10
- nav:
11
- prev: "&lsaquo;&nbsp;Prev"
12
- next: "Next&nbsp;&rsaquo;"
13
- gap: "&hellip;"
14
-
15
16
  info:
16
17
  no_items: "No %{item_name} found"
17
18
  single_page: "Displaying <b>%{count}</b> %{item_name}"
18
19
  multiple_pages: "Displaying %{item_name} <b>%{from}-%{to}</b> of <b>%{count}</b> in total"
19
-
20
20
  combo_nav_js: "<label>Page %{page_input} of %{pages}</label>"
21
-
22
21
  items_selector_js: "<label>Show %{items_input} %{item_name} per page</label>"
data/lib/locales/es.yml CHANGED
@@ -1,22 +1,21 @@
1
- # :one_other pluralization (see https://github.com/ddnexus/pagy/blob/master/lib/locales/utils/p11n.rb)
2
-
1
+ # :one_other pluralization (see https://github.com/ddnexus/pagy/blob/master/lib/pagy/i18n.rb)
3
2
  es:
4
3
  pagy:
5
-
4
+ aria_label:
5
+ nav:
6
+ one: "Página"
7
+ other: "Páginas"
8
+ prev: "Anterior"
9
+ next: "Siguiente"
10
+ prev: "&lt;"
11
+ next: "&gt;"
12
+ gap: "&hellip;"
6
13
  item_name:
7
14
  one: "ítem"
8
15
  other: "ítems"
9
-
10
- nav:
11
- prev: "&lsaquo;&nbsp;Anterior"
12
- next: "Siguiente&nbsp;&rsaquo;"
13
- gap: "&hellip;"
14
-
15
16
  info:
16
17
  no_items: "Sin resultados"
17
18
  single_page: "Mostrando %{count} %{item_name}"
18
19
  multiple_pages: "Mostrando %{item_name} %{from}-%{to} de %{count} en total"
19
-
20
20
  combo_nav_js: "<label>Página %{page_input} de %{pages}</label>"
21
-
22
21
  items_selector_js: "<label>Mostrar %{items_input} %{item_name} por página</label>"
data/lib/locales/fr.yml CHANGED
@@ -1,22 +1,21 @@
1
- # :one_upto_two_other pluralization (see https://github.com/ddnexus/pagy/blob/master/lib/locales/utils/p11n.rb)
2
-
1
+ # :one_upto_two_other pluralization (see https://github.com/ddnexus/pagy/blob/master/lib/pagy/i18n.rb)
3
2
  fr:
4
3
  pagy:
5
-
4
+ aria_label:
5
+ nav:
6
+ one: "Page"
7
+ other: "Pages"
8
+ prev: "Précédent"
9
+ next: "Suivant"
10
+ prev: "&lt;"
11
+ next: "&gt;"
12
+ gap: "&hellip;"
6
13
  item_name:
7
14
  one: "élément"
8
15
  other: "éléments"
9
-
10
- nav:
11
- prev: "&lsaquo;&nbsp;Précédent"
12
- next: "Suivant&nbsp;&rsaquo;"
13
- gap: "&hellip;"
14
-
15
16
  info:
16
17
  no_items: "Aucun %{item_name} trouvé"
17
18
  single_page: "Affichage de <b>%{count}</b> %{item_name}"
18
19
  multiple_pages: "Affichage des %{item_name} <b>%{from} à %{to}</b> sur <b>%{count}</b> au total"
19
-
20
20
  combo_nav_js: "<label>Page %{page_input} sur %{pages}</label>"
21
-
22
21
  items_selector_js: "<label>Afficher %{items_input} %{item_name} par page</label>"
data/lib/locales/hr.yml CHANGED
@@ -1,24 +1,25 @@
1
- # :east_slavic pluralization (see https://github.com/ddnexus/pagy/blob/master/lib/locales/utils/p11n.rb)
2
-
1
+ # :east_slavic pluralization (see https://github.com/ddnexus/pagy/blob/master/lib/pagy/i18n.rb)
3
2
  hr:
4
3
  pagy:
5
-
4
+ aria_label:
5
+ nav:
6
+ one: "Stranica"
7
+ few: "Stranice"
8
+ many: "Stranica"
9
+ other: "Stranice"
10
+ prev: "Prethodna"
11
+ next: "Sljedeća "
12
+ prev: "&lt;"
13
+ next: "&gt;"
14
+ gap: "&hellip;"
6
15
  item_name:
7
16
  one: "stavka"
8
17
  few: "stavke"
9
18
  many: "stavki"
10
19
  other: "stavki"
11
-
12
- nav:
13
- prev: "&lsaquo;&nbsp;Prethodna"
14
- next: "Sljedeća &nbsp;&rsaquo;"
15
- gap: "&hellip;"
16
-
17
20
  info:
18
21
  no_items: "Nije pronađena %{item_name}"
19
22
  single_page: "Prikazuje se <b>%{count}</b> %{item_name}"
20
23
  multiple_pages: "Prikaz %{item_name} <b>%{from}-%{to}</b> od <b>%{count}</b> ukupno"
21
-
22
24
  combo_nav_js: "<label>Stranica %{page_input} od %{pages}</label>"
23
-
24
25
  items_selector_js: "<label>Prikaži %{items_input} %{item_name} po stranici</label>"
data/lib/locales/id.yml CHANGED
@@ -1,20 +1,19 @@
1
- # :other pluralization (see https://github.com/ddnexus/pagy/blob/master/lib/locales/utils/p11n.rb)
2
-
1
+ # :other pluralization (see https://github.com/ddnexus/pagy/blob/master/lib/pagy/i18n.rb)
3
2
  id:
4
3
  pagy:
5
-
4
+ aria_label:
5
+ # please add a comment in the https://github.com/ddnexus/pagy/issues/588
6
+ # posting the translation of the following "Page"/"Pages" with the plurals for this locale
7
+ nav: "Pages"
8
+ prev: "Sebelumnya"
9
+ next: "Selanjutnya"
10
+ prev: "&lt;"
11
+ next: "&gt;"
12
+ gap: "&hellip;"
6
13
  item_name: "item"
7
-
8
- nav:
9
- prev: "&lsaquo;&nbsp;Sebelumnya"
10
- next: "Selanjutnya&nbsp;&rsaquo;"
11
- gap: "&hellip;"
12
-
13
14
  info:
14
15
  no_items: "Tidak ditemukan %{item_name}"
15
16
  single_page: "Menampilkan <b>%{count}</b> %{item_name}"
16
17
  multiple_pages: "Menampilkan %{item_name} <b>%{from}-%{to}</b> dari total <b>%{count}</b>"
17
-
18
18
  combo_nav_js: "<label>Halaman %{page_input} dari %{pages}</label>"
19
-
20
19
  items_selector_js: "<label>Tampilkan %{items_input} %{item_name} per halaman</label>"
data/lib/locales/it.yml CHANGED
@@ -1,22 +1,21 @@
1
- # :one_other pluralization (see https://github.com/ddnexus/pagy/blob/master/lib/locales/utils/p11n.rb)
2
-
1
+ # :one_other pluralization (see https://github.com/ddnexus/pagy/blob/master/lib/pagy/i18n.rb)
3
2
  it:
4
3
  pagy:
5
-
4
+ aria_label:
5
+ nav:
6
+ one: "Pagina"
7
+ other: "Pagine"
8
+ prev: "Precedente"
9
+ next: "Seguente"
10
+ prev: "&lt;"
11
+ next: "&gt;"
12
+ gap: "&hellip;"
6
13
  item_name:
7
14
  one: "elemento"
8
15
  other: "elementi"
9
-
10
- nav:
11
- prev: "&lsaquo;&nbsp;Precedente"
12
- next: "Seguente&nbsp;&rsaquo;"
13
- gap: "&hellip;"
14
-
15
16
  info:
16
17
  no_items: "Nessun %{item_name} trovato"
17
18
  single_page: "Visualizzazione di <b>%{count}</b> %{item_name}"
18
19
  multiple_pages: "Visualizzazione %{item_name} <b>%{from}-%{to}</b> di <b>%{count}</b> in totale"
19
-
20
20
  combo_nav_js: "<label>Pagina %{page_input} di %{pages}</label>"
21
-
22
21
  items_selector_js: "<label>Mostra %{items_input} %{item_name} per pagina</label>"
data/lib/locales/ja.yml CHANGED
@@ -1,20 +1,19 @@
1
- # :other pluralization (see https://github.com/ddnexus/pagy/blob/master/lib/locales/utils/p11n.rb)
2
-
1
+ # :other pluralization (see https://github.com/ddnexus/pagy/blob/master/lib/pagy/i18n.rb)
3
2
  ja:
4
3
  pagy:
5
-
4
+ aria_label:
5
+ # please add a comment in the https://github.com/ddnexus/pagy/issues/590
6
+ # posting the translation of the following "Page"/"Pages" with the plurals for this locale
7
+ nav: "Pages"
8
+ prev: "前へ"
9
+ next: "次へ"
10
+ prev: "&lt;"
11
+ next: "&gt;"
12
+ gap: "&hellip;"
6
13
  item_name: "結果"
7
-
8
- nav:
9
- prev: "&lsaquo;&nbsp;前へ"
10
- next: "次へ&nbsp;&rsaquo;"
11
- gap: "&hellip;"
12
-
13
14
  info:
14
15
  no_items: "見つかりませんでした"
15
16
  single_page: "<b>%{count}</b> 件の%{item_name}"
16
17
  multiple_pages: "<b>%{count}</b> 件中 <b>%{from}-%{to}</b> 件目の%{item_name}を表示中"
17
-
18
18
  combo_nav_js: "<label>%{page_input} / %{pages} ページ</label>"
19
-
20
19
  items_selector_js: "<label>%{items_input} 件ずつ表示</label>"
data/lib/locales/km.yml CHANGED
@@ -1,19 +1,19 @@
1
- # :other pluralization (see https://github.com/ddnexus/pagy/blob/master/lib/locales/utils/p11n.rb)
2
-
1
+ # :other pluralization (see https://github.com/ddnexus/pagy/blob/master/lib/pagy/i18n.rb)
3
2
  km:
4
3
  pagy:
4
+ aria_label:
5
+ # please add a comment in the https://github.com/ddnexus/pagy/issues/591
6
+ # posting the translation of the following "Page"/"Pages" with the plurals for this locale
7
+ nav: "Pages"
8
+ prev: "មុន"
9
+ next: "បន្ទាប់"
10
+ prev: "&lt;"
11
+ next: "&gt;"
12
+ gap: "&hellip;"
5
13
  item_name: "ធាតុ"
6
-
7
- nav:
8
- prev: "&lsaquo;&nbsp;មុន"
9
- next: "បន្ទាប់&nbsp;&rsaquo;"
10
- gap: "&hellip;"
11
-
12
14
  info:
13
15
  no_items: "មិនមាន %{item_name} ទេ"
14
16
  single_page: "បង្ហាញ <b>%{count}</b> %{item_name}"
15
17
  multiple_pages: "បង្ហាញ %{item_name} <b>%{from}-%{to}</b> នៃ <b>%{count}</b> ជាចំនួនសរុប"
16
-
17
18
  combo_nav_js: "<label>ទំព័រ %{page_input} នៃ %{pages}</label>"
18
-
19
19
  items_selector_js: "<label>បង្ហាញ %{items_input} %{item_name} ក្នុង ១ ទំព័រ</label>"
data/lib/locales/ko.yml CHANGED
@@ -1,20 +1,19 @@
1
- # :other pluralization (see https://github.com/ddnexus/pagy/blob/master/lib/locales/utils/p11n.rb)
2
-
1
+ # :other pluralization (see https://github.com/ddnexus/pagy/blob/master/lib/pagy/i18n.rb)
3
2
  ko:
4
3
  pagy:
5
-
4
+ aria_label:
5
+ # please add a comment in the https://github.com/ddnexus/pagy/issues/592
6
+ # posting the translation of the following "Page"/"Pages" with the plurals for this locale
7
+ nav: "Pages"
8
+ prev: "이전"
9
+ next: "다음"
10
+ prev: "&lt;"
11
+ next: "&gt;"
12
+ gap: "&hellip;"
6
13
  item_name: "항목"
7
-
8
- nav:
9
- prev: "&lsaquo;&nbsp;이전"
10
- next: "다음&nbsp;&rsaquo;"
11
- gap: "&hellip;"
12
-
13
14
  info:
14
15
  no_items: "%{item_name} 없음"
15
16
  single_page: "<b>%{count}</b>개의 %{item_name} 표시됨"
16
17
  multiple_pages: "총 <b>%{count}</b>개의 %{item_name} 중 <b>%{from}-%{to}</b>"
17
-
18
18
  combo_nav_js: "<label>총 %{pages} 중 %{page_input} 페이지</label>"
19
-
20
19
  items_selector_js: "<label>페이지 당 %{items_input}개 표시%</label>"
data/lib/locales/nb.yml CHANGED
@@ -1,22 +1,21 @@
1
- # :one_other pluralization (see https://github.com/ddnexus/pagy/blob/master/lib/locales/utils/p11n.rb)
2
-
1
+ # :one_other pluralization (see https://github.com/ddnexus/pagy/blob/master/lib/pagy/i18n.rb)
3
2
  nb:
4
3
  pagy:
5
-
4
+ aria_label:
5
+ nav:
6
+ one: "Side"
7
+ other: "Sider"
8
+ prev: "Forrige"
9
+ next: "Neste"
10
+ prev: "&lt;"
11
+ next: "&gt;"
12
+ gap: "&hellip;"
6
13
  item_name:
7
14
  one: "resultat"
8
15
  other: "resultater"
9
-
10
- nav:
11
- prev: "&lsaquo;&nbsp;Forrige"
12
- next: "Neste&nbsp;&rsaquo;"
13
- gap: "&hellip;"
14
-
15
16
  info:
16
17
  no_items: "Ingen %{item_name} funnet"
17
18
  single_page: "Viser <b>%{count}</b> %{item_name}"
18
19
  multiple_pages: "Viser %{item_name} <b>%{from}-%{to}</b> av totalt <b>%{count}</b>"
19
-
20
20
  combo_nav_js: "<label>Side %{page_input} av %{pages}</label>"
21
-
22
21
  items_selector_js: "<label>Vis %{items_input} %{item_name} per side</label>"
data/lib/locales/nl.yml CHANGED
@@ -1,22 +1,21 @@
1
- # :one_other pluralization (see https://github.com/ddnexus/pagy/blob/master/lib/locales/utils/p11n.rb)
2
-
1
+ # :one_other pluralization (see https://github.com/ddnexus/pagy/blob/master/lib/pagy/i18n.rb)
3
2
  nl:
4
3
  pagy:
5
-
4
+ aria_label:
5
+ nav:
6
+ one: "Pagina"
7
+ other: "Pagina's"
8
+ prev: "Vorige"
9
+ next: "Volgende"
10
+ prev: "&lt;"
11
+ next: "&gt;"
12
+ gap: "&hellip;"
6
13
  item_name:
7
14
  one: "stuk"
8
15
  other: "stuks"
9
-
10
- nav:
11
- prev: "&lsaquo;&nbsp;Vorige"
12
- next: "Volgende&nbsp;&rsaquo;"
13
- gap: "&hellip;"
14
-
15
16
  info:
16
17
  no_items: "Geen %{item_name} gevonden"
17
18
  single_page: "Toont <b>%{count}</b> %{item_name}"
18
19
  multiple_pages: "Toont <b>%{from}-%{to}</b> %{item_name} van <b>%{count}</b> in totaal"
19
-
20
20
  combo_nav_js: "<label>Pagina %{page_input} van %{pages}</label>"
21
-
22
21
  items_selector_js: "<label>Toont %{items_input} %{item_name} per pagina</label>"
data/lib/locales/nn.yml CHANGED
@@ -1,22 +1,21 @@
1
- # :one_other pluralization (see https://github.com/ddnexus/pagy/blob/master/lib/locales/utils/p11n.rb)
2
-
1
+ # :one_other pluralization (see https://github.com/ddnexus/pagy/blob/master/lib/pagy/i18n.rb)
3
2
  nn:
4
3
  pagy:
5
-
4
+ aria_label:
5
+ nav:
6
+ one: "Side"
7
+ other: "Sider"
8
+ prev: "Førre"
9
+ next: "Neste"
10
+ prev: "&lt;"
11
+ next: "&gt;"
12
+ gap: "&hellip;"
6
13
  item_name:
7
14
  one: "resultat"
8
15
  other: "resultat"
9
-
10
- nav:
11
- prev: "&lsaquo;&nbsp;Førre"
12
- next: "Neste&nbsp;&rsaquo;"
13
- gap: "&hellip;"
14
-
15
16
  info:
16
17
  no_items: "Ingen %{item_name} funne"
17
18
  single_page: "Viser <b>%{count}</b> %{item_name}"
18
19
  multiple_pages: "Viser %{item_name} <b>%{from}-%{to}</b> av totalt <b>%{count}</b>"
19
-
20
20
  combo_nav_js: "<label>Side %{page_input} av %{pages}</label>"
21
-
22
21
  items_selector_js: "<label>Vis %{items_input} %{item_name} per side</label>"
data/lib/locales/pl.yml CHANGED
@@ -1,24 +1,25 @@
1
- # :polish pluralization (see https://github.com/ddnexus/pagy/blob/master/lib/locales/utils/p11n.rb)
2
-
1
+ # :polish pluralization (see https://github.com/ddnexus/pagy/blob/master/lib/pagy/i18n.rb)
3
2
  pl:
4
3
  pagy:
5
-
4
+ aria_label:
5
+ nav:
6
+ one: "Strona"
7
+ few: "Strony"
8
+ many: "Stron"
9
+ other: "Strony"
10
+ prev: "Poprzednia"
11
+ next: "Następna"
12
+ prev: "&lt;"
13
+ next: "&gt;"
14
+ gap: "&hellip;"
6
15
  item_name:
7
16
  one: "element"
8
17
  few: "elementy"
9
18
  many: "elementów"
10
19
  other: "elementów"
11
-
12
- nav:
13
- prev: "&lsaquo;&nbsp;Poprzednia"
14
- next: "Następna&nbsp;&rsaquo;"
15
- gap: "&hellip;"
16
-
17
20
  info:
18
21
  no_items: "Nie znaleziono %{item_name}"
19
22
  single_page: "Wyświetlono <b>%{count}</b> %{item_name}"
20
23
  multiple_pages: "Wyświetlono %{item_name} <b>%{from}-%{to}</b> z wszystkich <b>%{count}</b>"
21
-
22
24
  combo_nav_js: "<label>Strona %{page_input} z %{pages}</label>"
23
-
24
25
  items_selector_js: "<label>Pokaż %{items_input} %{item_name} na stronie</label>"
@@ -1,22 +1,21 @@
1
- # :one_other pluralization (see https://github.com/ddnexus/pagy/blob/master/lib/locales/utils/p11n.rb)
2
-
1
+ # :one_other pluralization (see https://github.com/ddnexus/pagy/blob/master/lib/pagy/i18n.rb)
3
2
  pt-BR:
4
3
  pagy:
5
-
4
+ aria_label:
5
+ nav:
6
+ one: "Página"
7
+ other: "Páginas"
8
+ prev: "Anterior"
9
+ next: "Próximo"
10
+ prev: "&lt;"
11
+ next: "&gt;"
12
+ gap: "&hellip;"
6
13
  item_name:
7
14
  one: "item"
8
15
  other: "itens"
9
-
10
- nav:
11
- prev: "&lsaquo;&nbsp;Anterior"
12
- next: "Próximo&nbsp;&rsaquo;"
13
- gap: "&hellip;"
14
-
15
16
  info:
16
17
  no_items: "Sem resultados"
17
18
  single_page: "Mostrando %{count} %{item_name}"
18
19
  multiple_pages: "Mostrando %{item_name} %{from}-%{to} do total de %{count}"
19
-
20
20
  combo_nav_js: "<label>Página %{page_input} de %{pages}</label>"
21
-
22
21
  items_selector_js: "<label>Mostrar %{items_input} %{item_name} por página</label>"
data/lib/locales/pt.yml CHANGED
@@ -1,22 +1,21 @@
1
- # :one_other pluralization (see https://github.com/ddnexus/pagy/blob/master/lib/locales/utils/p11n.rb)
2
-
1
+ # :one_other pluralization (see https://github.com/ddnexus/pagy/blob/master/lib/pagy/i18n.rb)
3
2
  pt:
4
3
  pagy:
5
-
4
+ aria_label:
5
+ nav:
6
+ one: "Página"
7
+ other: "Páginas"
8
+ prev: "Anterior"
9
+ next: "Próximo"
10
+ prev: "&lt;"
11
+ next: "&gt;"
12
+ gap: "&hellip;"
6
13
  item_name:
7
14
  one: "item"
8
15
  other: "itens"
9
-
10
- nav:
11
- prev: "&lsaquo;&nbsp;Anterior"
12
- next: "Próximo&nbsp;&rsaquo;"
13
- gap: "&hellip;"
14
-
15
16
  info:
16
17
  no_items: "Sem resultados"
17
18
  single_page: "Mostrando %{count} %{item_name}"
18
19
  multiple_pages: "Mostrando %{item_name} %{from}-%{to} de um total de %{count}"
19
-
20
20
  combo_nav_js: "<label>Página %{page_input} de %{pages}</label>"
21
-
22
21
  items_selector_js: "<label>Mostrar %{items_input} %{item_name} por página</label>"
data/lib/locales/ru.yml CHANGED
@@ -1,24 +1,27 @@
1
- # :east_slavic pluralization (see https://github.com/ddnexus/pagy/blob/master/lib/locales/utils/p11n.rb)
2
-
1
+ # :east_slavic pluralization (see https://github.com/ddnexus/pagy/blob/master/lib/pagy/i18n.rb)
3
2
  ru:
4
3
  pagy:
5
-
4
+ aria_label:
5
+ # please add a comment in the https://github.com/ddnexus/pagy/issues/599
6
+ # posting the translation of the following "Page"/"Pages" with the plurals for this locale
7
+ nav: "Pages"
8
+ # one: ""
9
+ # few: ""
10
+ # many: ""
11
+ # other: ""
12
+ prev: "Назад"
13
+ next: "Вперёд"
14
+ prev: "&lt;"
15
+ next: "&gt;"
16
+ gap: "&hellip;"
6
17
  item_name:
7
18
  one: "запись"
8
19
  few: "записи"
9
20
  many: "записей"
10
21
  other: "записей"
11
-
12
- nav:
13
- prev: "&lsaquo;&nbsp;Назад"
14
- next: "Вперёд&nbsp;&rsaquo;"
15
- gap: "&hellip;"
16
-
17
22
  info:
18
23
  no_items: "Пока %{item_name} нет"
19
24
  single_page: "<b>%{count}</b> %{item_name}"
20
25
  multiple_pages: "Всего <b>%{count}</b> %{item_name}, показаны с <b>%{from}</b> по <b>%{to}</b>"
21
-
22
26
  combo_nav_js: "<label>Страница %{page_input} из %{pages}</label>"
23
-
24
27
  items_selector_js: "<label>Показать %{items_input} %{item_name} на странице</label>"
data/lib/locales/sr.yml CHANGED
@@ -1,23 +1,25 @@
1
- # :east_slavic pluralization (see https://github.com/ddnexus/pagy/blob/master/lib/locales/utils/p11n.rb)
2
-
1
+ # :east_slavic pluralization (see https://github.com/ddnexus/pagy/blob/master/lib/pagy/i18n.rb)
3
2
  sr:
4
3
  pagy:
4
+ aria_label:
5
+ nav:
6
+ one: "Страница"
7
+ few: "Странице"
8
+ many: "Страница"
9
+ other: "Странице"
10
+ prev: "Претходна"
11
+ next: "Следећa "
12
+ prev: "&lt;"
13
+ next: "&gt;"
14
+ gap: "&hellip;"
5
15
  item_name:
6
16
  one: "ставка"
7
17
  few: "ставкe"
8
18
  many: "ставки"
9
19
  other: "ставки"
10
-
11
- nav:
12
- prev: "&lsaquo;&nbsp;Претходна"
13
- next: "Следећa &nbsp;&rsaquo;"
14
- gap: "&hellip;"
15
-
16
20
  info:
17
21
  no_items: "Нema пронађених %{item_name}"
18
22
  single_page: "Приказује се <b>%{count}</b> %{item_name}"
19
23
  multiple_pages: "Приказ %{item_name} <b>%{from}-%{to}</b> од <b>%{count}</b> укупно"
20
-
21
24
  combo_nav_js: "<label>Страниca %{page_input} од %{pages}</label>"
22
-
23
25
  items_selector_js: "<label>Прикажи %{items_input} %{item_name} по страниcи</label>"
@@ -1,23 +1,21 @@
1
- # :one_two_other pluralization (see https://github.com/ddnexus/pagy/blob/master/lib/locales/utils/p11n.rb)
2
-
1
+ # :one_other pluralization (see https://github.com/ddnexus/pagy/blob/master/lib/pagy/i18n.rb)
3
2
  sv-SE:
4
3
  pagy:
5
-
4
+ aria_label:
5
+ nav:
6
+ one: "Sida"
7
+ other: "Sidor"
8
+ prev: "Föregående"
9
+ next: "Nästa"
10
+ prev: "&lt;"
11
+ next: "&gt;"
12
+ gap: "&hellip;"
6
13
  item_name:
7
14
  one: "resultat"
8
- two: "resultat"
9
15
  other: "resultat"
10
-
11
- nav:
12
- prev: "&lsaquo;&nbsp;Föregående"
13
- next: "Nästa&nbsp;&rsaquo;"
14
- gap: "&hellip;"
15
-
16
16
  info:
17
17
  no_items: "Inga %{item_name} hittade"
18
18
  single_page: "Visar <b>%{count}</b> %{item_name}"
19
19
  multiple_pages: "Visar %{item_name} <b>%{from}-%{to}</b> av <b>%{count}</b> totalt"
20
-
21
20
  combo_nav_js: "<label>Sida %{page_input} av %{pages}</label>"
22
-
23
21
  items_selector_js: "<label>Visa %{items_input} %{item_name} per sida</label>"