views/collections i18n (#15019)
* views/collections i18n * reformat for PR * remove ja.yml
This commit is contained in:
parent
09fa66a03f
commit
d80f451c95
4 changed files with 25 additions and 7 deletions
|
|
@ -1,5 +1,5 @@
|
|||
<% title_string = "#{@user.name}'s Series" %>
|
||||
<% description_string = "View #{title_string} on #{community_name}" %>
|
||||
<% title_string = t("views.series.heading", user: @user.name) %>
|
||||
<% description_string = t("views.series.meta.description", title: title_string, site: community_name) %>
|
||||
|
||||
<%= content_for :page_meta do %>
|
||||
<%= render "collections/meta", title_string: title_string, description_string: description_string, path: "#{@user.username}/series/" %>
|
||||
|
|
@ -20,7 +20,7 @@
|
|||
</div>
|
||||
<% end %>
|
||||
<% else %>
|
||||
<p>This user doesn't have any series</p>
|
||||
<p><%= t("views.series.empty") %></p>
|
||||
<% end %>
|
||||
</div>
|
||||
</main>
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
<% title_string = "#{@collection.slug} Series' Articles" %>
|
||||
<% description_string = "View #{title_string} on #{community_name}" %>
|
||||
<% title_string = t("views.series.list.heading", series: @collection.slug) %>
|
||||
<% description_string = t("views.series.meta.description", title: title_string, site: community_name) %>
|
||||
|
||||
<%= content_for :page_meta do %>
|
||||
<%= render "collections/meta", title_string: title_string, description_string: description_string, path: @collection.path %>
|
||||
|
|
@ -8,7 +8,7 @@
|
|||
<main id="main-content" class="crayons-layout crayons-layout--1-col">
|
||||
<header class="px-2 m:px-0">
|
||||
<h1><%= title_string %></h1>
|
||||
<%= link_to "Back to #{@user.name}'s Series", user_series_path(@user.username) %>
|
||||
<%= link_to t("views.series.list.back", user: @user.name), user_series_path(@user.username) %>
|
||||
</header>
|
||||
|
||||
<div class="articles-list" id="articles-list">
|
||||
|
|
@ -19,7 +19,7 @@
|
|||
<% end %>
|
||||
<%= javascript_packs_with_chunks_tag "followButtons", "feedPreviewCards", defer: true %>
|
||||
<% else %>
|
||||
<p>This series doesn't have any articles</p>
|
||||
<p><%= t("views.series.list.empty") %></p>
|
||||
<% end %>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -26,6 +26,15 @@ en:
|
|||
pinned: "📌 Pinned! (pinned posts display chronologically, 5 max)"
|
||||
removed: "🗑 Pin removed"
|
||||
error: You can only have five pins
|
||||
series:
|
||||
meta:
|
||||
description: View %{title} on %{site}
|
||||
heading: "%{user}'s Series"
|
||||
empty: This user doesn't have any series
|
||||
list:
|
||||
heading: "%{series} Series' Articles"
|
||||
back: Back to %{user}'s Series
|
||||
empty: This series doesn't have any articles
|
||||
sponsor:
|
||||
icon: Love
|
||||
seek: Become a sponsor
|
||||
|
|
|
|||
|
|
@ -26,6 +26,15 @@ fr:
|
|||
pinned: "📌 Pinned! (pinned posts display chronologically, 5 max)"
|
||||
removed: "🗑 Pin removed"
|
||||
error: You can only have five pins
|
||||
series:
|
||||
meta:
|
||||
description: View %{title} on %{site}
|
||||
heading: "%{user}'s Series"
|
||||
empty: This user doesn't have any series
|
||||
list:
|
||||
heading: "%{series} Series' Articles"
|
||||
back: Back to %{user}'s Series
|
||||
empty: This series doesn't have any articles
|
||||
sponsor:
|
||||
icon: Love
|
||||
seek: Become a sponsor
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue