From 835e8d2ce0728e46477b78f2bd11e8bc93d275bc Mon Sep 17 00:00:00 2001 From: Rafael Baldasso Audibert <32079912+rafaeelaudibert@users.noreply.github.com> Date: Wed, 6 Mar 2019 07:15:15 -0300 Subject: [PATCH] Fix for missing require in config/pagy.rb and fix for pt-br translation typos (#134) --- lib/config/pagy.rb | 1 + lib/locales/pt-br.yml | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/config/pagy.rb b/lib/config/pagy.rb index d7df0d83b..7e99a0d18 100644 --- a/lib/config/pagy.rb +++ b/lib/config/pagy.rb @@ -76,6 +76,7 @@ # Overflow extra: Allow for easy handling of overflowing pages # See https://ddnexus.github.io/pagy/extras/overflow +# require 'pagy/extras/overflow' # Pagy::VARS[:overflow] = :last_page # default (other options: :empty_page and :exception) # Trim extra: Remove the page=1 param from links diff --git a/lib/locales/pt-br.yml b/lib/locales/pt-br.yml index eaa9607f6..bb5753229 100644 --- a/lib/locales/pt-br.yml +++ b/lib/locales/pt-br.yml @@ -9,12 +9,12 @@ pt-br: zero: "Sem resultados" one: "Mostrando 1 %{item_name}" other: "Mostrando %{count} %{item_name}" - multiple_pages: "Mostrando %{item_name} %{from}-%{to} no total de %{count}" + multiple_pages: "Mostrando %{item_name} %{from}-%{to} do total de %{count}" item_name: zero: "itens" one: "item" other: "itens" compact: "Página %{page_input} de %{pages}" items: - one: "Mostrar %{items_input} iten por página" + one: "Mostrar %{items_input} item por página" other: "Mostrar %{items_input} itens por página"