diff --git a/lib/music_library_web/live/collection_live/show.ex b/lib/music_library_web/live/collection_live/show.ex index 507fb298..ee73971e 100644 --- a/lib/music_library_web/live/collection_live/show.ex +++ b/lib/music_library_web/live/collection_live/show.ex @@ -535,21 +535,6 @@ defmodule MusicLibraryWeb.CollectionLive.Show do |> assign_embedding_text()} end - defp page_title(:show, record) do - Enum.join( - [ - Records.Record.artist_names(record), - "-", - record.title, - "·", - gettext("Details"), - "·", - gettext("Collection") - ], - " " - ) - end - defp page_title(action, record) do Enum.join( [ @@ -565,7 +550,7 @@ defmodule MusicLibraryWeb.CollectionLive.Show do ) end - defp title_segment(:show), do: gettext("Show") + defp title_segment(:show), do: gettext("Details") defp title_segment(:edit), do: gettext("Edit") defp assign_similar_records(socket) do diff --git a/lib/music_library_web/live/wishlist_live/show.ex b/lib/music_library_web/live/wishlist_live/show.ex index 3e13ba9d..483db266 100644 --- a/lib/music_library_web/live/wishlist_live/show.ex +++ b/lib/music_library_web/live/wishlist_live/show.ex @@ -436,13 +436,13 @@ defmodule MusicLibraryWeb.WishlistLive.Show do ) end + defp title_segment(:show), do: gettext("Details") + defp title_segment(:edit), do: gettext("Edit") + defp assign_embedding_text(socket) do case Similarity.get_embedding_text(socket.assigns.record.id) do {:ok, text} -> assign(socket, :embedding_text, text) {:error, _reason} -> assign(socket, :embedding_text, gettext("Not available")) end end - - defp title_segment(:show), do: gettext("Show") - defp title_segment(:edit), do: gettext("Edit") end diff --git a/priv/gettext/default.pot b/priv/gettext/default.pot index 1c1c5ed9..3fda694e 100644 --- a/priv/gettext/default.pot +++ b/priv/gettext/default.pot @@ -187,12 +187,6 @@ msgstr "" msgid "Search" msgstr "" -#: lib/music_library_web/live/collection_live/show.ex -#: lib/music_library_web/live/wishlist_live/show.ex -#, elixir-autogen, elixir-format -msgid "Show" -msgstr "" - #: lib/music_library_web/components/layouts/app.html.heex #: lib/music_library_web/live/stats_live/index.ex #, elixir-autogen, elixir-format @@ -294,6 +288,7 @@ msgstr "" #: lib/music_library_web/live/artist_live/show.ex #: lib/music_library_web/live/collection_live/show.ex +#: lib/music_library_web/live/wishlist_live/show.ex #, elixir-autogen, elixir-format msgid "Details" msgstr "" diff --git a/priv/gettext/en/LC_MESSAGES/default.po b/priv/gettext/en/LC_MESSAGES/default.po index 94e233dd..884619cc 100644 --- a/priv/gettext/en/LC_MESSAGES/default.po +++ b/priv/gettext/en/LC_MESSAGES/default.po @@ -187,12 +187,6 @@ msgstr "" msgid "Search" msgstr "" -#: lib/music_library_web/live/collection_live/show.ex -#: lib/music_library_web/live/wishlist_live/show.ex -#, elixir-autogen, elixir-format -msgid "Show" -msgstr "" - #: lib/music_library_web/components/layouts/app.html.heex #: lib/music_library_web/live/stats_live/index.ex #, elixir-autogen, elixir-format @@ -294,6 +288,7 @@ msgstr "" #: lib/music_library_web/live/artist_live/show.ex #: lib/music_library_web/live/collection_live/show.ex +#: lib/music_library_web/live/wishlist_live/show.ex #, elixir-autogen, elixir-format msgid "Details" msgstr ""