diff --git a/lib/dpul_collections_web/live/search_live.ex b/lib/dpul_collections_web/live/search_live.ex index c6ef11b7..bfee927a 100644 --- a/lib/dpul_collections_web/live/search_live.ex +++ b/lib/dpul_collections_web/live/search_live.ex @@ -68,7 +68,7 @@ defmodule DpulCollectionsWeb.SearchLive do {:noreply, socket} end - defp item_counter(_, 0), do: "No items found" + defp item_counter(_, 0), do: gettext("No items found") defp item_counter(%{page: page, per_page: per_page}, total_items) do first_item = max(page - 1, 0) * per_page + 1 @@ -80,7 +80,7 @@ defmodule DpulCollectionsWeb.SearchLive do true -> first_item + per_page - 1 end - "#{first_item} - #{last_item} of #{total_items}" + "#{first_item} - #{last_item} #{gettext("of")} #{total_items}" end def render(assigns) do @@ -130,7 +130,11 @@ defmodule DpulCollectionsWeb.SearchLive do diff --git a/priv/gettext/default.pot b/priv/gettext/default.pot index 0ddc80b4..22643d60 100644 --- a/priv/gettext/default.pot +++ b/priv/gettext/default.pot @@ -67,18 +67,18 @@ msgstr "" msgid "Language" msgstr "" -#: lib/dpul_collections_web/live/search_live.ex:248 +#: lib/dpul_collections_web/live/search_live.ex:252 #, elixir-autogen, elixir-format msgid "Next" msgstr "" #: lib/dpul_collections_web/live/item_live.ex:61 -#: lib/dpul_collections_web/live/search_live.ex:170 +#: lib/dpul_collections_web/live/search_live.ex:174 #, elixir-autogen, elixir-format msgid "Pages" msgstr "" -#: lib/dpul_collections_web/live/search_live.ex:205 +#: lib/dpul_collections_web/live/search_live.ex:209 #, elixir-autogen, elixir-format msgid "Previous" msgstr "" @@ -147,3 +147,28 @@ msgstr "" #, elixir-autogen, elixir-format msgid "Page not found" msgstr "" + +#: lib/dpul_collections_web/live/search_live.ex:71 +#, elixir-autogen, elixir-format +msgid "No items found" +msgstr "" + +#: lib/dpul_collections_web/live/search_live.ex:83 +#, elixir-autogen, elixir-format +msgid "of" +msgstr "" + +#: lib/dpul_collections_web/live/search_live.ex:134 +#, elixir-autogen, elixir-format +msgid "Relevance" +msgstr "" + +#: lib/dpul_collections_web/live/search_live.ex:135 +#, elixir-autogen, elixir-format +msgid "Year (newest first)" +msgstr "" + +#: lib/dpul_collections_web/live/search_live.ex:136 +#, elixir-autogen, elixir-format +msgid "Year (oldest first)" +msgstr "" diff --git a/priv/gettext/en/LC_MESSAGES/default.po b/priv/gettext/en/LC_MESSAGES/default.po index c2420727..71f60e02 100644 --- a/priv/gettext/en/LC_MESSAGES/default.po +++ b/priv/gettext/en/LC_MESSAGES/default.po @@ -67,18 +67,18 @@ msgstr "" msgid "Language" msgstr "" -#: lib/dpul_collections_web/live/search_live.ex:248 +#: lib/dpul_collections_web/live/search_live.ex:252 #, elixir-autogen, elixir-format msgid "Next" msgstr "" #: lib/dpul_collections_web/live/item_live.ex:61 -#: lib/dpul_collections_web/live/search_live.ex:170 +#: lib/dpul_collections_web/live/search_live.ex:174 #, elixir-autogen, elixir-format msgid "Pages" msgstr "" -#: lib/dpul_collections_web/live/search_live.ex:205 +#: lib/dpul_collections_web/live/search_live.ex:209 #, elixir-autogen, elixir-format msgid "Previous" msgstr "" @@ -147,3 +147,28 @@ msgstr "" #, elixir-autogen, elixir-format, fuzzy msgid "Page not found" msgstr "" + +#: lib/dpul_collections_web/live/search_live.ex:71 +#, elixir-autogen, elixir-format +msgid "No items found" +msgstr "" + +#: lib/dpul_collections_web/live/search_live.ex:83 +#, elixir-autogen, elixir-format +msgid "of" +msgstr "" + +#: lib/dpul_collections_web/live/search_live.ex:134 +#, elixir-autogen, elixir-format, fuzzy +msgid "Relevance" +msgstr "" + +#: lib/dpul_collections_web/live/search_live.ex:135 +#, elixir-autogen, elixir-format +msgid "Year (newest first)" +msgstr "" + +#: lib/dpul_collections_web/live/search_live.ex:136 +#, elixir-autogen, elixir-format +msgid "Year (oldest first)" +msgstr "" diff --git a/priv/gettext/es/LC_MESSAGES/default.po b/priv/gettext/es/LC_MESSAGES/default.po index 1636b59d..ce0ec90d 100644 --- a/priv/gettext/es/LC_MESSAGES/default.po +++ b/priv/gettext/es/LC_MESSAGES/default.po @@ -67,18 +67,18 @@ msgstr "Aplicar" msgid "Language" msgstr "Idioma" -#: lib/dpul_collections_web/live/search_live.ex:248 +#: lib/dpul_collections_web/live/search_live.ex:252 #, elixir-autogen, elixir-format msgid "Next" msgstr "Proxima" #: lib/dpul_collections_web/live/item_live.ex:61 -#: lib/dpul_collections_web/live/search_live.ex:170 +#: lib/dpul_collections_web/live/search_live.ex:174 #, elixir-autogen, elixir-format msgid "Pages" msgstr "Páginas" -#: lib/dpul_collections_web/live/search_live.ex:205 +#: lib/dpul_collections_web/live/search_live.ex:209 #, elixir-autogen, elixir-format msgid "Previous" msgstr "Anterior" @@ -147,3 +147,28 @@ msgstr "Descargar PDF" #, elixir-autogen, elixir-format, fuzzy msgid "Page not found" msgstr "Página no encontrada" + +#: lib/dpul_collections_web/live/search_live.ex:71 +#, elixir-autogen, elixir-format +msgid "No items found" +msgstr "No artículos encontrada" + +#: lib/dpul_collections_web/live/search_live.ex:83 +#, elixir-autogen, elixir-format +msgid "of" +msgstr "de" + +#: lib/dpul_collections_web/live/search_live.ex:134 +#, elixir-autogen, elixir-format, fuzzy +msgid "Relevance" +msgstr "Relevancia" + +#: lib/dpul_collections_web/live/search_live.ex:135 +#, elixir-autogen, elixir-format +msgid "Year (newest first)" +msgstr "Año (más reciente primero)" + +#: lib/dpul_collections_web/live/search_live.ex:136 +#, elixir-autogen, elixir-format +msgid "Year (oldest first)" +msgstr "Año (más antigua primero)"