From 6a31db64e979e46c5245d9afd037bffc430dd19d Mon Sep 17 00:00:00 2001 From: David Wessman Date: Fri, 20 Mar 2020 06:35:17 +0100 Subject: [PATCH] Swedish locale: add sv-SE, rename se -> sv (#226) - The Swedish locale is referred to as sv in the I18n-gem: https://github.com/svenfuchs/rails-i18n/blob/master/rails/locale/sv.yml - It can also be referred to as sv-SE. --- lib/locales/sv-SE.yml | 23 +++++++++++++++++++++++ lib/locales/{se.yml => sv.yml} | 2 +- 2 files changed, 24 insertions(+), 1 deletion(-) create mode 100644 lib/locales/sv-SE.yml rename lib/locales/{se.yml => sv.yml} (99%) diff --git a/lib/locales/sv-SE.yml b/lib/locales/sv-SE.yml new file mode 100644 index 000000000..87d69ea93 --- /dev/null +++ b/lib/locales/sv-SE.yml @@ -0,0 +1,23 @@ +# :one_two_other pluralization (see https://github.com/ddnexus/pagy/blob/master/lib/locales/utils/p11n.rb) + +sv-SE: + pagy: + + item_name: + one: "resultat" + two: "resultat" + other: "resultat" + + nav: + prev: "‹ Föregående" + next: "Nästa ›" + gap: "…" + + info: + no_items: "Inga %{item_name} hittade" + single_page: "Visar %{count} %{item_name}" + multiple_pages: "Visar %{item_name} %{from}-%{to} av %{count} totalt" + + combo_nav_js: "Sida %{page_input} av %{pages}" + + items_selector_js: "Visa %{items_input} %{item_name} per sida" diff --git a/lib/locales/se.yml b/lib/locales/sv.yml similarity index 99% rename from lib/locales/se.yml rename to lib/locales/sv.yml index f6cc749c3..86da347e0 100644 --- a/lib/locales/se.yml +++ b/lib/locales/sv.yml @@ -1,6 +1,6 @@ # :one_two_other pluralization (see https://github.com/ddnexus/pagy/blob/master/lib/locales/utils/p11n.rb) -se: +sv: pagy: item_name: