From d0857eccc15bcbf1df1dc6cb3d59f9c8bf578c45 Mon Sep 17 00:00:00 2001 From: shibao Date: Thu, 24 Feb 2022 00:52:46 -0500 Subject: [PATCH] remove "listing" from titles --- lib/cannery_web/live/ammo_type_live/index.ex | 2 +- lib/cannery_web/live/container_live/index.ex | 2 +- lib/cannery_web/live/invite_live/index.ex | 2 +- lib/cannery_web/live/tag_live/index.ex | 2 +- priv/gettext/default.pot | 28 ++++++-------------- priv/gettext/en/LC_MESSAGES/default.po | 28 ++++++-------------- 6 files changed, 20 insertions(+), 44 deletions(-) diff --git a/lib/cannery_web/live/ammo_type_live/index.ex b/lib/cannery_web/live/ammo_type_live/index.ex index f932f823..8b1b3ca7 100644 --- a/lib/cannery_web/live/ammo_type_live/index.ex +++ b/lib/cannery_web/live/ammo_type_live/index.ex @@ -31,7 +31,7 @@ defmodule CanneryWeb.AmmoTypeLive.Index do end defp apply_action(socket, :index, _params) do - socket |> assign(:page_title, gettext("Listing Ammo types")) |> assign(:ammo_type, nil) + socket |> assign(:page_title, gettext("Ammo types")) |> assign(:ammo_type, nil) end @impl true diff --git a/lib/cannery_web/live/container_live/index.ex b/lib/cannery_web/live/container_live/index.ex index 7f71590a..eb505b79 100644 --- a/lib/cannery_web/live/container_live/index.ex +++ b/lib/cannery_web/live/container_live/index.ex @@ -35,7 +35,7 @@ defmodule CanneryWeb.ContainerLive.Index do defp apply_action(socket, :index, _params) do socket - |> assign(:page_title, gettext("Listing Containers")) + |> assign(:page_title, gettext("Containers")) |> assign(:container, nil) |> display_containers() end diff --git a/lib/cannery_web/live/invite_live/index.ex b/lib/cannery_web/live/invite_live/index.ex index 3f4e0add..ce0d29de 100644 --- a/lib/cannery_web/live/invite_live/index.ex +++ b/lib/cannery_web/live/invite_live/index.ex @@ -40,7 +40,7 @@ defmodule CanneryWeb.InviteLive.Index do end defp apply_action(socket, :index, _params) do - socket |> assign(page_title: gettext("Listing Invites"), invite: nil) + socket |> assign(page_title: gettext("Invites"), invite: nil) end @impl true diff --git a/lib/cannery_web/live/tag_live/index.ex b/lib/cannery_web/live/tag_live/index.ex index fdece489..15e9012f 100644 --- a/lib/cannery_web/live/tag_live/index.ex +++ b/lib/cannery_web/live/tag_live/index.ex @@ -31,7 +31,7 @@ defmodule CanneryWeb.TagLive.Index do end defp apply_action(socket, :index, _params) do - socket |> assign(:page_title, gettext("Listing Tags")) |> assign(:tag, nil) + socket |> assign(:page_title, gettext("Tags")) |> assign(:tag, nil) end @impl true diff --git a/priv/gettext/default.pot b/priv/gettext/default.pot index 0dab71e4..98e1b6bd 100644 --- a/priv/gettext/default.pot +++ b/priv/gettext/default.pot @@ -109,6 +109,7 @@ msgstr "" #, elixir-autogen, elixir-format #: lib/cannery_web/components/topbar.ex:46 +#: lib/cannery_web/live/container_live/index.ex:38 #: lib/cannery_web/live/container_live/index.html.heex:3 msgid "Containers" msgstr "" @@ -222,6 +223,7 @@ msgstr "" #, elixir-autogen, elixir-format #: lib/cannery_web/components/topbar.ex:71 +#: lib/cannery_web/live/invite_live/index.ex:43 #: lib/cannery_web/live/invite_live/index.html.heex:3 msgid "Invites" msgstr "" @@ -231,26 +233,6 @@ msgstr "" msgid "Keep me logged in for 60 days" msgstr "" -#, elixir-autogen, elixir-format -#: lib/cannery_web/live/ammo_type_live/index.ex:34 -msgid "Listing Ammo types" -msgstr "" - -#, elixir-autogen, elixir-format -#: lib/cannery_web/live/container_live/index.ex:38 -msgid "Listing Containers" -msgstr "" - -#, elixir-autogen, elixir-format -#: lib/cannery_web/live/invite_live/index.ex:43 -msgid "Listing Invites" -msgstr "" - -#, elixir-autogen, elixir-format -#: lib/cannery_web/live/tag_live/index.ex:34 -msgid "Listing Tags" -msgstr "" - #, elixir-autogen, elixir-format #: lib/cannery_web/components/move_ammo_group_component.html.heex:30 #: lib/cannery_web/live/container_live/form_component.html.heex:42 @@ -453,6 +435,7 @@ msgstr "" #, elixir-autogen, elixir-format #: lib/cannery_web/components/topbar.ex:40 +#: lib/cannery_web/live/tag_live/index.ex:34 #: lib/cannery_web/live/tag_live/index.html.heex:3 msgid "Tags" msgstr "" @@ -839,3 +822,8 @@ msgstr "" #: lib/cannery_web/live/ammo_group_live/form_component.html.heex:58 msgid "Copies" msgstr "" + +#, elixir-autogen, elixir-format +#: lib/cannery_web/live/ammo_type_live/index.ex:34 +msgid "Ammo types" +msgstr "" diff --git a/priv/gettext/en/LC_MESSAGES/default.po b/priv/gettext/en/LC_MESSAGES/default.po index e0518380..5d6d0c75 100644 --- a/priv/gettext/en/LC_MESSAGES/default.po +++ b/priv/gettext/en/LC_MESSAGES/default.po @@ -110,6 +110,7 @@ msgstr "" #, elixir-autogen, elixir-format #: lib/cannery_web/components/topbar.ex:46 +#: lib/cannery_web/live/container_live/index.ex:38 #: lib/cannery_web/live/container_live/index.html.heex:3 msgid "Containers" msgstr "" @@ -223,6 +224,7 @@ msgstr "" #, elixir-autogen, elixir-format #: lib/cannery_web/components/topbar.ex:71 +#: lib/cannery_web/live/invite_live/index.ex:43 #: lib/cannery_web/live/invite_live/index.html.heex:3 msgid "Invites" msgstr "" @@ -232,26 +234,6 @@ msgstr "" msgid "Keep me logged in for 60 days" msgstr "" -#, elixir-autogen, elixir-format -#: lib/cannery_web/live/ammo_type_live/index.ex:34 -msgid "Listing Ammo types" -msgstr "" - -#, elixir-autogen, elixir-format -#: lib/cannery_web/live/container_live/index.ex:38 -msgid "Listing Containers" -msgstr "" - -#, elixir-autogen, elixir-format -#: lib/cannery_web/live/invite_live/index.ex:43 -msgid "Listing Invites" -msgstr "" - -#, elixir-autogen, elixir-format -#: lib/cannery_web/live/tag_live/index.ex:34 -msgid "Listing Tags" -msgstr "" - #, elixir-autogen, elixir-format #: lib/cannery_web/components/move_ammo_group_component.html.heex:30 #: lib/cannery_web/live/container_live/form_component.html.heex:42 @@ -454,6 +436,7 @@ msgstr "" #, elixir-autogen, elixir-format #: lib/cannery_web/components/topbar.ex:40 +#: lib/cannery_web/live/tag_live/index.ex:34 #: lib/cannery_web/live/tag_live/index.html.heex:3 msgid "Tags" msgstr "" @@ -840,3 +823,8 @@ msgstr "" #: lib/cannery_web/live/ammo_group_live/form_component.html.heex:58 msgid "Copies" msgstr "" + +#, elixir-autogen, elixir-format, fuzzy +#: lib/cannery_web/live/ammo_type_live/index.ex:34 +msgid "Ammo types" +msgstr ""