Skip to content

Commit

Permalink
Add Serbian locale (#283)
Browse files Browse the repository at this point in the history
  • Loading branch information
sabljak authored Mar 12, 2021
1 parent dcfc659 commit 8da0e06
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
23 changes: 23 additions & 0 deletions lib/locales/sr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# :east_slavic pluralization (see https://github.com/ddnexus/pagy/blob/master/lib/locales/utils/p11n.rb)

sr:
pagy:
item_name:
one: "ставка"
few: "ставкe"
many: "ставки"
other: "ставки"

nav:
prev: "‹ Претходна"
next: "Следећa  ›"
gap: "…"

info:
no_items: "Нema пронађених %{item_name}"
single_page: "Приказује се <b>%{count}</b> %{item_name}"
multiple_pages: "Приказ %{item_name} <b>%{from}-%{to}</b> од <b>%{count}</b> укупно"

combo_nav_js: "Страниca %{page_input} од %{pages}"

items_selector_js: "Прикажи %{items_input} %{item_name} по страниcи"
1 change: 1 addition & 0 deletions lib/locales/utils/p11n.rb
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@
hash['ko'] = p11n[:other]
hash['pl'] = p11n[:polish]
hash['ru'] = p11n[:east_slavic]
hash['sr'] = p11n[:east_slavic]
hash['sv'] = p11n[:one_two_other]
hash['sv-SE'] = p11n[:one_two_other]
hash['tr'] = p11n[:other]
Expand Down

0 comments on commit 8da0e06

Please sign in to comment.