Extract stats translations

This commit is contained in:
Claudio Ortolina
2024-10-21 11:37:13 +01:00
parent 481c9673d0
commit 685be03ccf
3 changed files with 14 additions and 3 deletions
@@ -16,7 +16,7 @@ defmodule MusicLibraryWeb.StatsController do
latest_record = Records.get_latest_record!() latest_record = Records.get_latest_record!()
conn conn
|> assign(:page_title, "Stats") |> assign(:page_title, gettext("Stats"))
|> render(:index, |> render(:index,
records_count_by_format: records_count_by_format, records_count_by_format: records_count_by_format,
records_count_by_type: records_count_by_type, records_count_by_type: records_count_by_type,
@@ -11,7 +11,7 @@
alt={@latest_record.title} alt={@latest_record.title}
/> />
<p class="ml-24 truncate text-xs sm:text-sm font-medium text-gray-500"> <p class="ml-24 truncate text-xs sm:text-sm font-medium text-gray-500">
Latest record <%= gettext("Latest record") %>
</p> </p>
</dt> </dt>
<dd class="ml-24 flex items-baseline pb-6 sm:pb-7"> <dd class="ml-24 flex items-baseline pb-6 sm:pb-7">
@@ -31,7 +31,7 @@
</div> </div>
<div class="overflow-hidden rounded-lg bg-white px-4 pb-3 pt-5 shadow sm:px-6 sm:pt-6"> <div class="overflow-hidden rounded-lg bg-white px-4 pb-3 pt-5 shadow sm:px-6 sm:pt-6">
<dt> <dt>
<p class="truncate text-sm font-medium text-gray-500">Total Records</p> <p class="truncate text-sm font-medium text-gray-500"><%= gettext("Total Records") %></p>
</dt> </dt>
<dd class="flex items-baseline pb-6 sm:pb-7"> <dd class="flex items-baseline pb-6 sm:pb-7">
<a href={~p"/records"} class="text-2xl font-semibold text-gray-900 hover:text-gray-500"> <a href={~p"/records"} class="text-2xl font-semibold text-gray-900 hover:text-gray-500">
+11
View File
@@ -88,6 +88,7 @@ msgid "Logout"
msgstr "" msgstr ""
#: lib/music_library_web/components/layouts/app.html.heex:7 #: lib/music_library_web/components/layouts/app.html.heex:7
#: lib/music_library_web/controllers/stats_controller.ex:19
#, elixir-autogen, elixir-format #, elixir-autogen, elixir-format
msgid "Stats" msgid "Stats"
msgstr "" msgstr ""
@@ -103,3 +104,13 @@ msgstr ""
#, elixir-autogen, elixir-format #, elixir-autogen, elixir-format
msgid "Previous" msgid "Previous"
msgstr "" 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 ""