diff --git a/app/views/collections/index.html.erb b/app/views/collections/index.html.erb index 87f1840a2..54694b241 100644 --- a/app/views/collections/index.html.erb +++ b/app/views/collections/index.html.erb @@ -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 @@ <% end %> <% else %> -

This user doesn't have any series

+

<%= t("views.series.empty") %>

<% end %> diff --git a/app/views/collections/show.html.erb b/app/views/collections/show.html.erb index 02ca401da..17b961b0c 100644 --- a/app/views/collections/show.html.erb +++ b/app/views/collections/show.html.erb @@ -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 @@

<%= title_string %>

- <%= 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) %>
@@ -19,7 +19,7 @@ <% end %> <%= javascript_packs_with_chunks_tag "followButtons", "feedPreviewCards", defer: true %> <% else %> -

This series doesn't have any articles

+

<%= t("views.series.list.empty") %>

<% end %>
diff --git a/config/locales/views/misc/en.yml b/config/locales/views/misc/en.yml index bbf911969..e4f18785c 100644 --- a/config/locales/views/misc/en.yml +++ b/config/locales/views/misc/en.yml @@ -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 diff --git a/config/locales/views/misc/fr.yml b/config/locales/views/misc/fr.yml index 8cf320861..bf332480c 100644 --- a/config/locales/views/misc/fr.yml +++ b/config/locales/views/misc/fr.yml @@ -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