diff --git a/lib/music_library_web/controllers/stats_controller.ex b/lib/music_library_web/controllers/stats_controller.ex index 7ba18286..1c9bbc90 100644 --- a/lib/music_library_web/controllers/stats_controller.ex +++ b/lib/music_library_web/controllers/stats_controller.ex @@ -16,7 +16,7 @@ defmodule MusicLibraryWeb.StatsController do latest_record = Records.get_latest_record!() conn - |> assign(:page_title, "Stats") + |> assign(:page_title, gettext("Stats")) |> render(:index, records_count_by_format: records_count_by_format, records_count_by_type: records_count_by_type, diff --git a/lib/music_library_web/controllers/stats_html/index.html.heex b/lib/music_library_web/controllers/stats_html/index.html.heex index 3f46ea52..abf0254c 100644 --- a/lib/music_library_web/controllers/stats_html/index.html.heex +++ b/lib/music_library_web/controllers/stats_html/index.html.heex @@ -11,7 +11,7 @@ alt={@latest_record.title} />

- Latest record + <%= gettext("Latest record") %>

@@ -31,7 +31,7 @@
-

Total Records

+

<%= gettext("Total Records") %>

diff --git a/priv/gettext/default.pot b/priv/gettext/default.pot index 0201647d..00741449 100644 --- a/priv/gettext/default.pot +++ b/priv/gettext/default.pot @@ -88,6 +88,7 @@ msgid "Logout" msgstr "" #: lib/music_library_web/components/layouts/app.html.heex:7 +#: lib/music_library_web/controllers/stats_controller.ex:19 #, elixir-autogen, elixir-format msgid "Stats" msgstr "" @@ -103,3 +104,13 @@ msgstr "" #, elixir-autogen, elixir-format msgid "Previous" msgstr "" + +#: lib/music_library_web/controllers/stats_html/index.html.heex:14 +#, elixir-autogen, elixir-format +msgid "Latest record" +msgstr "" + +#: lib/music_library_web/controllers/stats_html/index.html.heex:34 +#, elixir-autogen, elixir-format +msgid "Total Records" +msgstr ""