From f94ef0a2caed1b8234725161d2c2f1eb953dd4a2 Mon Sep 17 00:00:00 2001 From: shibao Date: Mon, 5 Jun 2023 23:36:25 -0400 Subject: [PATCH] fix range page title --- CHANGELOG.md | 1 + lib/cannery_web/live/range_live/index.ex | 6 +++--- priv/gettext/de/LC_MESSAGES/default.po | 14 +++----------- priv/gettext/default.pot | 14 +++----------- priv/gettext/en/LC_MESSAGES/default.po | 14 +++----------- priv/gettext/es/LC_MESSAGES/default.po | 14 +++----------- priv/gettext/fr/LC_MESSAGES/default.po | 14 +++----------- priv/gettext/ga/LC_MESSAGES/default.po | 14 +++----------- 8 files changed, 22 insertions(+), 69 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 583d91de..8ca21405 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,7 @@ - Code quality fixes - Fix error/404 pages not rendering properly - Update dependencies +- Fix Range page title # v0.9.3 - Update dependencies diff --git a/lib/cannery_web/live/range_live/index.ex b/lib/cannery_web/live/range_live/index.ex index a2d2661e..c0a8db7c 100644 --- a/lib/cannery_web/live/range_live/index.ex +++ b/lib/cannery_web/live/range_live/index.ex @@ -44,7 +44,7 @@ defmodule CanneryWeb.RangeLive.Index do defp apply_action(socket, :new, _params) do socket |> assign( - page_title: gettext("New Shot Records"), + page_title: gettext("Record Shots"), shot_record: %ShotRecord{} ) end @@ -52,7 +52,7 @@ defmodule CanneryWeb.RangeLive.Index do defp apply_action(socket, :index, _params) do socket |> assign( - page_title: gettext("Shot Records"), + page_title: gettext("Range"), search: nil, shot_record: nil ) @@ -62,7 +62,7 @@ defmodule CanneryWeb.RangeLive.Index do defp apply_action(socket, :search, %{"search" => search}) do socket |> assign( - page_title: gettext("Shot Records"), + page_title: gettext("Range"), search: search, shot_record: nil ) diff --git a/priv/gettext/de/LC_MESSAGES/default.po b/priv/gettext/de/LC_MESSAGES/default.po index 96bc805c..86bc8006 100644 --- a/priv/gettext/de/LC_MESSAGES/default.po +++ b/priv/gettext/de/LC_MESSAGES/default.po @@ -426,6 +426,8 @@ msgstr "Keine Tags für diesen Behälter" #: lib/cannery_web/components/core_components/topbar.html.heex:48 #: lib/cannery_web/components/pack_table_component.ex:80 +#: lib/cannery_web/live/range_live/index.ex:55 +#: lib/cannery_web/live/range_live/index.ex:65 #, elixir-autogen, elixir-format msgid "Range" msgstr "Schießplatz" @@ -459,11 +461,6 @@ msgstr "Keine Munition selektiert" msgid "Record shots" msgstr "Schüsse dokumentieren" -#: lib/cannery_web/live/range_live/index.ex:47 -#, elixir-autogen, elixir-format -msgid "New Shot Records" -msgstr "Neue Schießkladde" - #: lib/cannery_web/live/range_live/index.html.heex:52 #: lib/cannery_web/live/range_live/index.html.heex:119 #, elixir-autogen, elixir-format @@ -477,12 +474,6 @@ msgstr "Keine Schüsse dokumentiert" msgid "Rounds shot" msgstr "Patronen abgefeuert" -#: lib/cannery_web/live/range_live/index.ex:55 -#: lib/cannery_web/live/range_live/index.ex:65 -#, elixir-autogen, elixir-format -msgid "Shot Records" -msgstr "Schießkladde" - #: lib/cannery_web/live/pack_live/index.ex:43 #, elixir-autogen, elixir-format msgid "Move ammo" @@ -657,6 +648,7 @@ msgstr "Passwort zurücksetzen" #: lib/cannery_web/live/pack_live/show.ex:40 #: lib/cannery_web/live/range_live/index.ex:31 +#: lib/cannery_web/live/range_live/index.ex:47 #, elixir-autogen, elixir-format msgid "Record Shots" msgstr "Schüsse dokumentieren" diff --git a/priv/gettext/default.pot b/priv/gettext/default.pot index ef62487b..a977620e 100644 --- a/priv/gettext/default.pot +++ b/priv/gettext/default.pot @@ -420,6 +420,8 @@ msgstr "" #: lib/cannery_web/components/core_components/topbar.html.heex:48 #: lib/cannery_web/components/pack_table_component.ex:80 +#: lib/cannery_web/live/range_live/index.ex:55 +#: lib/cannery_web/live/range_live/index.ex:65 #, elixir-autogen, elixir-format msgid "Range" msgstr "" @@ -453,11 +455,6 @@ msgstr "" msgid "Record shots" msgstr "" -#: lib/cannery_web/live/range_live/index.ex:47 -#, elixir-autogen, elixir-format -msgid "New Shot Records" -msgstr "" - #: lib/cannery_web/live/range_live/index.html.heex:52 #: lib/cannery_web/live/range_live/index.html.heex:119 #, elixir-autogen, elixir-format @@ -471,12 +468,6 @@ msgstr "" msgid "Rounds shot" msgstr "" -#: lib/cannery_web/live/range_live/index.ex:55 -#: lib/cannery_web/live/range_live/index.ex:65 -#, elixir-autogen, elixir-format -msgid "Shot Records" -msgstr "" - #: lib/cannery_web/live/pack_live/index.ex:43 #, elixir-autogen, elixir-format msgid "Move ammo" @@ -651,6 +642,7 @@ msgstr "" #: lib/cannery_web/live/pack_live/show.ex:40 #: lib/cannery_web/live/range_live/index.ex:31 +#: lib/cannery_web/live/range_live/index.ex:47 #, elixir-autogen, elixir-format msgid "Record Shots" msgstr "" diff --git a/priv/gettext/en/LC_MESSAGES/default.po b/priv/gettext/en/LC_MESSAGES/default.po index 913e5d82..8673521f 100644 --- a/priv/gettext/en/LC_MESSAGES/default.po +++ b/priv/gettext/en/LC_MESSAGES/default.po @@ -420,6 +420,8 @@ msgstr "" #: lib/cannery_web/components/core_components/topbar.html.heex:48 #: lib/cannery_web/components/pack_table_component.ex:80 +#: lib/cannery_web/live/range_live/index.ex:55 +#: lib/cannery_web/live/range_live/index.ex:65 #, elixir-autogen, elixir-format msgid "Range" msgstr "" @@ -453,11 +455,6 @@ msgstr "" msgid "Record shots" msgstr "" -#: lib/cannery_web/live/range_live/index.ex:47 -#, elixir-autogen, elixir-format -msgid "New Shot Records" -msgstr "" - #: lib/cannery_web/live/range_live/index.html.heex:52 #: lib/cannery_web/live/range_live/index.html.heex:119 #, elixir-autogen, elixir-format @@ -471,12 +468,6 @@ msgstr "" msgid "Rounds shot" msgstr "" -#: lib/cannery_web/live/range_live/index.ex:55 -#: lib/cannery_web/live/range_live/index.ex:65 -#, elixir-autogen, elixir-format -msgid "Shot Records" -msgstr "" - #: lib/cannery_web/live/pack_live/index.ex:43 #, elixir-autogen, elixir-format msgid "Move ammo" @@ -651,6 +642,7 @@ msgstr "" #: lib/cannery_web/live/pack_live/show.ex:40 #: lib/cannery_web/live/range_live/index.ex:31 +#: lib/cannery_web/live/range_live/index.ex:47 #, elixir-autogen, elixir-format, fuzzy msgid "Record Shots" msgstr "" diff --git a/priv/gettext/es/LC_MESSAGES/default.po b/priv/gettext/es/LC_MESSAGES/default.po index b6c9ee30..c9d52681 100644 --- a/priv/gettext/es/LC_MESSAGES/default.po +++ b/priv/gettext/es/LC_MESSAGES/default.po @@ -427,6 +427,8 @@ msgstr "Contenedor sin etiquetas" #: lib/cannery_web/components/core_components/topbar.html.heex:48 #: lib/cannery_web/components/pack_table_component.ex:80 +#: lib/cannery_web/live/range_live/index.ex:55 +#: lib/cannery_web/live/range_live/index.ex:65 #, elixir-autogen, elixir-format msgid "Range" msgstr "Campo de tiro" @@ -460,11 +462,6 @@ msgstr "No hay munición preparada" msgid "Record shots" msgstr "Tiros récord" -#: lib/cannery_web/live/range_live/index.ex:47 -#, elixir-autogen, elixir-format -msgid "New Shot Records" -msgstr "Nuevos Tiros Récord" - #: lib/cannery_web/live/range_live/index.html.heex:52 #: lib/cannery_web/live/range_live/index.html.heex:119 #, elixir-autogen, elixir-format @@ -478,12 +475,6 @@ msgstr "No se han grabado tiros" msgid "Rounds shot" msgstr "Balas disparadas" -#: lib/cannery_web/live/range_live/index.ex:55 -#: lib/cannery_web/live/range_live/index.ex:65 -#, elixir-autogen, elixir-format -msgid "Shot Records" -msgstr "Récords de Tiro" - #: lib/cannery_web/live/pack_live/index.ex:43 #, elixir-autogen, elixir-format msgid "Move ammo" @@ -658,6 +649,7 @@ msgstr "Reestablecer contraseña" #: lib/cannery_web/live/pack_live/show.ex:40 #: lib/cannery_web/live/range_live/index.ex:31 +#: lib/cannery_web/live/range_live/index.ex:47 #, elixir-autogen, elixir-format msgid "Record Shots" msgstr "Tiros Récord" diff --git a/priv/gettext/fr/LC_MESSAGES/default.po b/priv/gettext/fr/LC_MESSAGES/default.po index 5186816e..021f3739 100644 --- a/priv/gettext/fr/LC_MESSAGES/default.po +++ b/priv/gettext/fr/LC_MESSAGES/default.po @@ -428,6 +428,8 @@ msgstr "Aucun tag pour ce conteneur" #: lib/cannery_web/components/core_components/topbar.html.heex:48 #: lib/cannery_web/components/pack_table_component.ex:80 +#: lib/cannery_web/live/range_live/index.ex:55 +#: lib/cannery_web/live/range_live/index.ex:65 #, elixir-autogen, elixir-format msgid "Range" msgstr "Portée" @@ -461,11 +463,6 @@ msgstr "Aucune munition sélectionnée" msgid "Record shots" msgstr "Tirs enregistrés" -#: lib/cannery_web/live/range_live/index.ex:47 -#, elixir-autogen, elixir-format -msgid "New Shot Records" -msgstr "Nouveaux enregistrements de tir" - #: lib/cannery_web/live/range_live/index.html.heex:52 #: lib/cannery_web/live/range_live/index.html.heex:119 #, elixir-autogen, elixir-format @@ -479,12 +476,6 @@ msgstr "Aucun tir enregistré" msgid "Rounds shot" msgstr "Cartouches tirées" -#: lib/cannery_web/live/range_live/index.ex:55 -#: lib/cannery_web/live/range_live/index.ex:65 -#, elixir-autogen, elixir-format -msgid "Shot Records" -msgstr "Enregistrements de tir" - #: lib/cannery_web/live/pack_live/index.ex:43 #, elixir-autogen, elixir-format msgid "Move ammo" @@ -659,6 +650,7 @@ msgstr "Réinitialiser votre mot de passe" #: lib/cannery_web/live/pack_live/show.ex:40 #: lib/cannery_web/live/range_live/index.ex:31 +#: lib/cannery_web/live/range_live/index.ex:47 #, elixir-autogen, elixir-format msgid "Record Shots" msgstr "Enregistrer des tirs" diff --git a/priv/gettext/ga/LC_MESSAGES/default.po b/priv/gettext/ga/LC_MESSAGES/default.po index 6bdf03af..ab07e183 100644 --- a/priv/gettext/ga/LC_MESSAGES/default.po +++ b/priv/gettext/ga/LC_MESSAGES/default.po @@ -422,6 +422,8 @@ msgstr "" #: lib/cannery_web/components/core_components/topbar.html.heex:48 #: lib/cannery_web/components/pack_table_component.ex:80 +#: lib/cannery_web/live/range_live/index.ex:55 +#: lib/cannery_web/live/range_live/index.ex:65 #, elixir-autogen, elixir-format msgid "Range" msgstr "" @@ -455,11 +457,6 @@ msgstr "" msgid "Record shots" msgstr "" -#: lib/cannery_web/live/range_live/index.ex:47 -#, elixir-autogen, elixir-format -msgid "New Shot Records" -msgstr "" - #: lib/cannery_web/live/range_live/index.html.heex:52 #: lib/cannery_web/live/range_live/index.html.heex:119 #, elixir-autogen, elixir-format @@ -473,12 +470,6 @@ msgstr "" msgid "Rounds shot" msgstr "" -#: lib/cannery_web/live/range_live/index.ex:55 -#: lib/cannery_web/live/range_live/index.ex:65 -#, elixir-autogen, elixir-format -msgid "Shot Records" -msgstr "" - #: lib/cannery_web/live/pack_live/index.ex:43 #, elixir-autogen, elixir-format msgid "Move ammo" @@ -653,6 +644,7 @@ msgstr "" #: lib/cannery_web/live/pack_live/show.ex:40 #: lib/cannery_web/live/range_live/index.ex:31 +#: lib/cannery_web/live/range_live/index.ex:47 #, elixir-autogen, elixir-format msgid "Record Shots" msgstr ""