Extract stats translations
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
alt={@latest_record.title}
|
||||
/>
|
||||
<p class="ml-24 truncate text-xs sm:text-sm font-medium text-gray-500">
|
||||
Latest record
|
||||
<%= gettext("Latest record") %>
|
||||
</p>
|
||||
</dt>
|
||||
<dd class="ml-24 flex items-baseline pb-6 sm:pb-7">
|
||||
@@ -31,7 +31,7 @@
|
||||
</div>
|
||||
<div class="overflow-hidden rounded-lg bg-white px-4 pb-3 pt-5 shadow sm:px-6 sm:pt-6">
|
||||
<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>
|
||||
<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">
|
||||
|
||||
@@ -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 ""
|
||||
|
||||
Reference in New Issue
Block a user