Use translations
This commit is contained in:
@@ -24,7 +24,7 @@ defmodule MusicLibraryWeb.ScrobbleLive.Index do
|
||||
|
||||
defp apply_action(socket, :index, _params) do
|
||||
socket
|
||||
|> assign(:page_title, "Scrobble")
|
||||
|> assign(:page_title, gettext("Scrobble"))
|
||||
end
|
||||
|
||||
@impl true
|
||||
@@ -74,7 +74,7 @@ defmodule MusicLibraryWeb.ScrobbleLive.Index do
|
||||
{:error, _reason} ->
|
||||
{:noreply,
|
||||
socket
|
||||
|> put_flash(:error, "Failed to search for release groups")
|
||||
|> put_flash(:error, gettext("Failed to search for release groups"))
|
||||
|> assign(loading: false)}
|
||||
end
|
||||
end
|
||||
@@ -91,7 +91,7 @@ defmodule MusicLibraryWeb.ScrobbleLive.Index do
|
||||
{:error, _reason} ->
|
||||
{:noreply,
|
||||
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)}
|
||||
end
|
||||
end
|
||||
|
||||
@@ -1401,6 +1401,7 @@ msgid "90d"
|
||||
msgstr ""
|
||||
|
||||
#: lib/music_library_web/components/layouts/app.html.heex
|
||||
#: lib/music_library_web/live/scrobble_live/index.ex
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Scrobble"
|
||||
msgstr ""
|
||||
@@ -1409,3 +1410,13 @@ msgstr ""
|
||||
#, elixir-autogen, elixir-format
|
||||
msgid "Scrobble to Last.fm"
|
||||
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 ""
|
||||
|
||||
@@ -1401,6 +1401,7 @@ msgid "90d"
|
||||
msgstr ""
|
||||
|
||||
#: lib/music_library_web/components/layouts/app.html.heex
|
||||
#: lib/music_library_web/live/scrobble_live/index.ex
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "Scrobble"
|
||||
msgstr ""
|
||||
@@ -1409,3 +1410,13 @@ msgstr ""
|
||||
#, elixir-autogen, elixir-format, fuzzy
|
||||
msgid "Scrobble to Last.fm"
|
||||
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 ""
|
||||
|
||||
Reference in New Issue
Block a user