Use translations

This commit is contained in:
Claudio Ortolina
2025-09-24 10:16:07 +03:00
parent 9dd5020820
commit 6a0c4289f6
3 changed files with 25 additions and 3 deletions
@@ -24,7 +24,7 @@ defmodule MusicLibraryWeb.ScrobbleLive.Index do
defp apply_action(socket, :index, _params) do defp apply_action(socket, :index, _params) do
socket socket
|> assign(:page_title, "Scrobble") |> assign(:page_title, gettext("Scrobble"))
end end
@impl true @impl true
@@ -74,7 +74,7 @@ defmodule MusicLibraryWeb.ScrobbleLive.Index do
{:error, _reason} -> {:error, _reason} ->
{:noreply, {:noreply,
socket socket
|> put_flash(:error, "Failed to search for release groups") |> put_flash(:error, gettext("Failed to search for release groups"))
|> assign(loading: false)} |> assign(loading: false)}
end end
end end
@@ -91,7 +91,7 @@ defmodule MusicLibraryWeb.ScrobbleLive.Index do
{:error, _reason} -> {:error, _reason} ->
{:noreply, {:noreply,
socket socket
|> put_flash(:error, "Failed to fetch releases for this release group") |> put_flash(:error, gettext("Failed to fetch releases for this release group"))
|> assign(loading: false)} |> assign(loading: false)}
end end
end end
+11
View File
@@ -1401,6 +1401,7 @@ msgid "90d"
msgstr "" msgstr ""
#: lib/music_library_web/components/layouts/app.html.heex #: lib/music_library_web/components/layouts/app.html.heex
#: lib/music_library_web/live/scrobble_live/index.ex
#, elixir-autogen, elixir-format #, elixir-autogen, elixir-format
msgid "Scrobble" msgid "Scrobble"
msgstr "" msgstr ""
@@ -1409,3 +1410,13 @@ msgstr ""
#, elixir-autogen, elixir-format #, elixir-autogen, elixir-format
msgid "Scrobble to Last.fm" msgid "Scrobble to Last.fm"
msgstr "" msgstr ""
#: lib/music_library_web/live/scrobble_live/index.ex
#, elixir-autogen, elixir-format
msgid "Failed to fetch releases for this release group"
msgstr ""
#: lib/music_library_web/live/scrobble_live/index.ex
#, elixir-autogen, elixir-format
msgid "Failed to search for release groups"
msgstr ""
+11
View File
@@ -1401,6 +1401,7 @@ msgid "90d"
msgstr "" msgstr ""
#: lib/music_library_web/components/layouts/app.html.heex #: lib/music_library_web/components/layouts/app.html.heex
#: lib/music_library_web/live/scrobble_live/index.ex
#, elixir-autogen, elixir-format, fuzzy #, elixir-autogen, elixir-format, fuzzy
msgid "Scrobble" msgid "Scrobble"
msgstr "" msgstr ""
@@ -1409,3 +1410,13 @@ msgstr ""
#, elixir-autogen, elixir-format, fuzzy #, elixir-autogen, elixir-format, fuzzy
msgid "Scrobble to Last.fm" msgid "Scrobble to Last.fm"
msgstr "" msgstr ""
#: lib/music_library_web/live/scrobble_live/index.ex
#, elixir-autogen, elixir-format
msgid "Failed to fetch releases for this release group"
msgstr ""
#: lib/music_library_web/live/scrobble_live/index.ex
#, elixir-autogen, elixir-format, fuzzy
msgid "Failed to search for release groups"
msgstr ""