diff --git a/app/views/dashboards/_actions.html.erb b/app/views/dashboards/_actions.html.erb index 7812f6207..bb6b1f844 100644 --- a/app/views/dashboards/_actions.html.erb +++ b/app/views/dashboards/_actions.html.erb @@ -2,92 +2,91 @@ diff --git a/app/views/dashboards/_actions_mobile.html.erb b/app/views/dashboards/_actions_mobile.html.erb index c00793ace..3176ed1b7 100644 --- a/app/views/dashboards/_actions_mobile.html.erb +++ b/app/views/dashboards/_actions_mobile.html.erb @@ -1,24 +1,24 @@
diff --git a/app/views/dashboards/_analytics.html.erb b/app/views/dashboards/_analytics.html.erb index 24a773c0f..4684c1053 100644 --- a/app/views/dashboards/_analytics.html.erb +++ b/app/views/dashboards/_analytics.html.erb @@ -3,21 +3,21 @@
<%= number_with_delimiter(@reactions_count, delimeter: ",") %> - Total post reactions + <%= t("views.dashboard.summary.reactions") %>
- <%= num_views > 500 ? number_with_delimiter(num_views, delimeter: ",") : "< 500" %> - Total post views + <%= num_views > 500 ? number_with_delimiter(num_views, delimeter: ",") : t("views.dashboard.summary.lt_500") %> + <%= t("views.dashboard.summary.views") %>
<%= @user.listings.size %> - Listings created + <%= t("views.dashboard.summary.listings") %>
<%= @user.unspent_credits_count %> - Credits available + <%= t("views.dashboard.summary.credits") %>
diff --git a/app/views/dashboards/_dashboard_article.html.erb b/app/views/dashboards/_dashboard_article.html.erb index 4ec557df1..24c331aba 100644 --- a/app/views/dashboards/_dashboard_article.html.erb +++ b/app/views/dashboards/_dashboard_article.html.erb @@ -4,13 +4,13 @@ <%= article.organization&.name %> <% end %> <% if article.collection_id %> - Series: <%= article.series %> + <%= t("views.dashboard.article.series_html", series: article.series) %> <% end %>
@@ -18,22 +18,26 @@ <%= f.hidden_field :archived, value: !article.archived %> <% end %>
-

<%= "[Archived] " if article.archived %><%= article.title %>

+

+ <%= t("views.dashboard.article.heading.text_html", + archived: article.archived ? t("views.dashboard.article.heading.archived") : "", + title: article.title) %> +

<% if article.published %> - Published: + <%= t("views.dashboard.article.published_html", date: tag.time(article.readable_publish_date, datetime: article.published_timestamp)) %> <% if article.edited? %> - · Edited: + · <%= t("views.dashboard.article.edited_html", date: tag.time(article.readable_edit_date, datetime: article.edited_at.utc.iso8601)) %> <% end %> @@ -44,60 +48,50 @@
<% if !article.published %> - Draft + <%= t("views.dashboard.article.draft") %> <% end %> - Edit + <%= t("views.dashboard.article.edit.text") %> <% if manage_view %> - Delete + <%= t("views.dashboard.article.delete") %> <% if article.profile_pins.any? %> <%= form_for(article.profile_pins.first) do |f| %> - + <% end %> <% else %> <%= form_for(ProfilePin.new) do |f| %> <%= f.hidden_field :pinnable_id, value: article.id %> - + <% end %> <% end %> <% elsif article.published %> - Manage + <%= t("views.dashboard.article.manage.text") %> <% elsif @user == article.user %> - Delete + <%= t("views.dashboard.article.delete") %> <% end %> - Stats + <%= t("views.dashboard.article.stats") %> <% if discussion_lock %> - Unlock discussion + <%= t("views.dashboard.article.unlock") %> <% else %> - Lock discussion + <%= t("views.dashboard.article.lock") %> <% end %> <% if article.published %> - - <% if article.page_views_count > 25 %> - <%= article.page_views_count %> - <% else %> - under 25 - <% end %> - - views + <% pvs = article.page_views_count %> + <%= t("views.dashboard.article.views.text_html", count: pvs, scale: tag.span(pvs > 25 ? tag.span(pvs, class: %w[value]) : t("views.dashboard.article.views.u_25"), class: %w[value])) %> // - - <%= article.public_reactions_count %> - - <%= "reaction".pluralize(count: article.public_reactions_count) %> + <% prs = article.public_reactions_count %> + <%= t("views.dashboard.article.reactions.text_html", count: prs, num: tag.span(prs, class: %w[value])) %> // - - <%= article.comments_count %> - - <%= "comment".pluralize(count: article.comments_count) %> + <% pcs = article.comments_count %> + <%= t("views.dashboard.article.comments.text_html", count: pcs, num: tag.span(pcs, class: %w[value])) %> <% end %> @@ -105,8 +99,8 @@ <% if organization && org_admin %> <%= form_for(article) do |f| %> - AUTHOR: <%= f.select(:user_id, options_for_select(organization.users.pluck(:name, :id), article.user_id)) %> - <%= f.submit "Submit author change", class: "crayons-btn crayons-btn--secondary" %> + <%= t("views.dashboard.article.author_is") %><%= f.select(:user_id, options_for_select(organization.users.pluck(:name, :id), article.user_id)) %> + <%= f.submit t("views.dashboard.article.submit"), class: "crayons-btn crayons-btn--secondary" %> <% end %> <% end %>
diff --git a/app/views/dashboards/_dashboard_article_row.html.erb b/app/views/dashboards/_dashboard_article_row.html.erb index 6b3672d20..8216a6e1f 100644 --- a/app/views/dashboards/_dashboard_article_row.html.erb +++ b/app/views/dashboards/_dashboard_article_row.html.erb @@ -2,7 +2,7 @@

<% if article.archived %> - Archived + <%= t("views.dashboard.article.archived") %> <% end %> <% if article.organization_id %> @@ -15,14 +15,14 @@

<% if article.published %>

- Published: + <%= t("views.dashboard.article.published") %> <%= local_date(article.published_timestamp, show_year: article.displayable_published_at.year != Time.current.year) %> <% if article.edited? %> - Edited: + <%= t("views.dashboard.article.edited") %> <%= local_date(article.edited_at, show_year: article.edited_at.year != Time.current.year) %> <% end %> <% if article.collection_id %> - Series: <%= article.series %> + <%= t("views.dashboard.article.series") %> <%= article.series %> <% end %>

<% end %> @@ -30,11 +30,11 @@
<% if !article.published? %> - Draft + <%= t("views.dashboard.article.draft") %> <% else %>
- - <%= inline_svg_tag("small-heart.svg", aria: true, class: "crayons-icon mr-1", title: "Reactions") %> + "> + <%= inline_svg_tag("small-heart.svg", aria: true, class: "crayons-icon mr-1", title: t("views.dashboard.article.reactions.icon")) %> <% if article.published %> <%= article.public_reactions_count %> <% else %> @@ -42,20 +42,20 @@ <% end %> - - <%= inline_svg_tag("small-comment.svg", aria: true, class: "crayons-icon mr-1", title: "Comments") %> + "> + <%= inline_svg_tag("small-comment.svg", aria: true, class: "crayons-icon mr-1", title: t("views.dashboard.article.comments.icon")) %> <%= article.comments_count %> - - <%= inline_svg_tag("small-eye.svg", aria: true, class: "crayons-icon mr-1", title: "Views") %> + "> + <%= inline_svg_tag("small-eye.svg", aria: true, class: "crayons-icon mr-1", title: t("views.dashboard.article.views.icon")) %> <% if article.published %> <% if article.page_views_count > 25 %> <%= article.page_views_count %> <% else %> - < 25 + <%= t("views.dashboard.article.views.lt_25") %> <% end %> <% else %> 0 @@ -63,8 +63,8 @@ <% if article.user_subscriptions_count > 0 %> - " class="flex items-center crayons-btn crayons-btn--ghost-dimmed crayons-btn--s" title="Subscriptions"> - <%= inline_svg_tag("small-data.svg", aria: true, class: "crayons-icon mr-1", title: "Data") %> + " class="flex items-center crayons-btn crayons-btn--ghost-dimmed crayons-btn--s" title="<%= t("views.dashboard.article.subscriptions.title") %>"> + <%= inline_svg_tag("small-data.svg", aria: true, class: "crayons-icon mr-1", title: t("views.dashboard.article.subscriptions.icon")) %> <%= article.user_subscriptions_count %> <% end %> @@ -74,40 +74,40 @@
<% if manage_view %> - Delete + <%= t("views.dashboard.article.delete") %> <% if article.profile_pins.any? %> <%= form_for(article.profile_pins.first) do |f| %> - + <% end %> <% else %> <%= form_for(ProfilePin.new) do |f| %> <%= f.hidden_field :pinnable_id, value: article.id %> - + <% end %> <% end %> <% elsif article.published %> - Manage + "><%= t("views.dashboard.article.manage.text") %> <% elsif @user == article.user %> - Delete + <%= t("views.dashboard.article.delete") %> <% end %> - Edit + "><%= t("views.dashboard.article.edit.text") %>
<% if article.user_subscriptions_count > 0 %> - " class="crayons-link crayons-link--block w-100"><%= "Subscriptions (#{article.user_subscriptions_count})" %> + " class="crayons-link crayons-link--block w-100"><%= t("views.dashboard.article.subscriptions.number", num: article.user_subscriptions_count) %> <% end %> - Stats + <%= t("views.dashboard.article.stats") %> <%= form_for(article, method: :patch, remote: true, authenticity_token: true, html: { "data-type": "json", class: "js-archive-toggle" }) do |f| %> <%= f.hidden_field :archived, value: !article.archived, id: "article_archived_#{article.id}" %> <% end %> @@ -115,11 +115,11 @@ <%= form_for(article, html: { class: "mt-4 pt-4 border-0 border-t-1 border-color-base-10 border-solid" }) do |f| %>
- + <%= f.select :user_id, options_for_select(organization.users.pluck(:name, :id), article.user_id), {}, { class: "crayons-select" } %>
- + <% end %> <% end %>
diff --git a/app/views/dashboards/_sublist.html.erb b/app/views/dashboards/_sublist.html.erb index b31ec9b46..60d7cbf2a 100644 --- a/app/views/dashboards/_sublist.html.erb +++ b/app/views/dashboards/_sublist.html.erb @@ -1,4 +1,4 @@
- <%= t("dashboard.loading") %> + <%= t("core.loading") %>
diff --git a/app/views/dashboards/analytics.erb b/app/views/dashboards/analytics.erb index 98ed11bfa..d42145eda 100644 --- a/app/views/dashboards/analytics.erb +++ b/app/views/dashboards/analytics.erb @@ -1,17 +1,17 @@ -<% title "Analytics" %> +<% title t("views.dashboard.analytics.meta.title") %>
diff --git a/app/views/dashboards/following_tags.html.erb b/app/views/dashboards/following_tags.html.erb index bfe9e2b9a..61bf0a86e 100644 --- a/app/views/dashboards/following_tags.html.erb +++ b/app/views/dashboards/following_tags.html.erb @@ -1,11 +1,11 @@ -<% title("Dashboard - #{community_name}") %> +<% title t("views.dashboard.meta.title", site: community_name) %>
-

Dashboard » Following tags

+

<%= t("views.dashboard.following_tags.heading") %>

<%= render "actions_mobile" %>
@@ -16,8 +16,8 @@ <%= javascript_packs_with_chunks_tag "dashboardTagsDisableUnchangedButtons", defer: true %>
- Adjust tag weight to modify your home feed. Higher values mean more appearances for that tag. - Default 1.0 + <%= t("views.dashboard.following_tags.adjust") %> + <%= t("views.dashboard.following_tags.default") %>
<% negative_follow_shown_once = false %> @@ -28,7 +28,7 @@

<%= render_tag_link(tag.name) %> <% if follow.explicit_points < 0 %> - Anti-follow + "><%= t("views.dashboard.following_tags.anti.text") %> <% end %>

@@ -38,7 +38,8 @@ <%= fields(follow) do |f| %> <%= f.hidden_field(:id, name: "follows[][id]", form: "follows_update_form", id: "follow_id_#{follow.followable}") %> - <%= f.number_field(:explicit_points, step: :any, required: true, class: "crayons-textfield flex-1 fs-s", name: "follows[][explicit_points]", form: "follows_update_form", "aria-label": "#{follow.followable} tag weight", id: "explicit_points_#{follow.followable}") %> + <%= f.number_field(:explicit_points, step: :any, required: true, class: "crayons-textfield flex-1 fs-s", name: "follows[][explicit_points]", form: "follows_update_form", "aria-label": t("views.dashboard.following_tags.number.aria_label", name: follow.followable), + id: "explicit_points_#{follow.followable}") %> <% end %>
<% end %> @@ -46,10 +47,10 @@
<%= form_with url: bulk_update_follows_path, method: :patch, local: true, class: "sticky bg-base-10 pt-3 pb-1 z-elevate", html: { style: "bottom: 0;margin-left:-1px" }, id: "follows_update_form" do |f| %> - + <% end %> <% else %> -
You don't follow any tags yet...
+
<%= t("views.dashboard.following_tags.empty") %>
<% end %> <%= render "sublist" %>
diff --git a/app/views/dashboards/following_users.html.erb b/app/views/dashboards/following_users.html.erb index bf440ddba..5f0d1148a 100644 --- a/app/views/dashboards/following_users.html.erb +++ b/app/views/dashboards/following_users.html.erb @@ -1,11 +1,11 @@ -<% title("Dashboard - #{community_name}") %> +<% title t("views.dashboard.meta.title", site: community_name) %>
-

<%= t("dashboard.page_title") %> » <%= t("dashboard.following_users") %>

+

<%= t("views.dashboard.following_users.heading") %>

<%= render "actions_mobile" %>
@@ -42,7 +42,7 @@
<% else %>
- <%= t("dashboard.not_following_any_users") %> + <%= t("views.dashboard.following_users.empty") %>
<% end %> <%= render "sublist" %> diff --git a/app/views/dashboards/show.html.erb b/app/views/dashboards/show.html.erb index 8ec20613d..efbf525ec 100644 --- a/app/views/dashboards/show.html.erb +++ b/app/views/dashboards/show.html.erb @@ -1,7 +1,7 @@ -<% title "Dashboard" %> +<% title t("views.dashboard.heading") %>
-

<%= t("core.dashboard") %>

+

<%= t("views.dashboard.heading") %>

<%= render "actions_mobile" %> <%= render "analytics" %>
@@ -12,23 +12,23 @@
- +
<% if params[:which] != "organization" %> <% if @articles.any?(&:archived) %> - <%= link_to "Show archived", "javascript:;", id: "toggleArchivedLink", class: "crayons-btn crayons-btn--outlined whitespace-nowrap" %> + <%= link_to t("views.dashboard.posts.archived"), "javascript:;", id: "toggleArchivedLink", class: "crayons-btn crayons-btn--outlined whitespace-nowrap" %> <% end %> <% if @articles.any? %> - <%= select_tag "dashboard_sort", options_for_select(sort_options, params[:sort]), "aria-label": "Sort By", class: "crayons-select w-auto" %> + <%= select_tag "dashboard_sort", options_for_select(sort_options, params[:sort]), "aria-label": t("views.dashboard.posts.option.aria_label"), class: "crayons-select w-auto" %> <% end %> <% end %> <% if @organizations && @organizations.size > 0 && (params[:which].blank? || params[:which] == "organization") %> <% end %> @@ -58,8 +58,8 @@ <% image_url = Images::Optimizer.call(Settings::General.mascot_image_url, width: 300, crop: "imagga_scale") %> <%= image_tag(image_url, class: "sloan mb-7", alt: "Mascot image") %> <% end %> -

<%= t("dashboard.empty_post") %>

-

<%= t("dashboard.write_new_post") %>

+

<%= t("views.dashboard.posts.empty.desc") %>

+

<%= t("views.dashboard.posts.empty.new") %>

<% end %> diff --git a/app/views/dashboards/subscriptions.html.erb b/app/views/dashboards/subscriptions.html.erb index 2bc2cda9b..7b4004cb0 100644 --- a/app/views/dashboards/subscriptions.html.erb +++ b/app/views/dashboards/subscriptions.html.erb @@ -1,14 +1,13 @@ -<% title "Subscriptions #{@source.title}" %> +<% title t("views.dashboard.subscriptions.meta.title", title: @source.title) %>
-

Subscriptions

+

<% t("views.dashboard.subscriptions.heading") %>

- for - ><%= @source.title %> + <%= t "views.dashboard.subscriptions.subhead.text_html", for: tag.em(t("views.dashboard.subscriptions.subhead.for"), class: %w[fs-italic fw-normal color-base-60]), source: link_to(@source.title, @source.path) %>

<%#TODO: [@forem/delightful]: uncomment this when ready to implement CSV exports%> @@ -23,7 +22,7 @@ <%= "#{subscriber.name} DEV profile" %>><%= subscriber.name %> "><%= subscription.subscriber_email %> - <%= "#{time_ago_in_words(subscription.created_at)} ago" %> + <%= time_ago_in_words subscription.created_at, scope: :"datetime.distance_in_words_ago" %> <% end %> @@ -33,7 +32,7 @@
<% else %>
- You don't have any subscribers for this <%= @source.class.name.downcase %> yet... + <%= t("views.dashboard.subscriptions.empty", kind: @source.class.name.downcase) %>
<% end %>
diff --git a/app/views/listings/dashboard.html.erb b/app/views/listings/dashboard.html.erb index ac0f6b122..4b543750f 100644 --- a/app/views/listings/dashboard.html.erb +++ b/app/views/listings/dashboard.html.erb @@ -1,4 +1,4 @@ -<% title "Listings Dashboard" %> +<% title t("views.dashboard.listings.meta.title") %>
Contact us if there is anything we can help with. core: add_comment: Add comment - analytics: Analytics comment: Comment comments: Comments community_name_is_great: "%{community_name} is great!" @@ -17,7 +16,6 @@ en: follow: Follow follow_back: Follow back follower: Follower - followers: Followers following: Following joined: Joined joined_on: Joined on @@ -29,7 +27,6 @@ en: more_from: More from pinned: Pinned post: Post - posts: Posts reaction: Reaction reaction_pluralized: one: reaction @@ -41,18 +38,8 @@ en: reply: Reply report_abuse: Report abuse search: Search - series: Series settings: Settings trending_on: Trending on - dashboard: - empty_follower: You don't have any followers yet... - empty_post: This is where you can manage your posts, but you haven't written anything yet. - following_users: Following users - loading: loading... - not_following_any_users: You don't follow any users... - page_title: Dashboard - upload_a_video: Upload a video - write_new_post: Write your first post now datetime: distance_in_words_ago: # https://github.com/openstreetmap/openstreetmap-website/issues/2255 about_x_hours: diff --git a/config/locales/fr.yml b/config/locales/fr.yml index ccc79b081..b4a54adae 100644 --- a/config/locales/fr.yml +++ b/config/locales/fr.yml @@ -6,7 +6,6 @@ fr: if_we_can_help_html: Contactez-nous si nous pouvons vous aider. core: add_comment: Ajouter un commentaire - analytics: Analytique comment: Commentaire comments: Commentaires community_name_is_great: "%{community_name} est super" @@ -17,7 +16,6 @@ fr: follow: Suivre follow_back: Suivre aussi follower: Suiveur - followers: Suiveurs following: Abonné joined: Rejoint joined_on: Rejoint le @@ -29,7 +27,6 @@ fr: more_from: Plus de la part de pinned: Épinglé post: Publication - posts: Publications reaction: Réaction reaction_pluralized: one: réaction @@ -41,18 +38,8 @@ fr: reply: Répondre report_abuse: Signaler un abus search: Recherche - series: Séries settings: Paramètres trending_on: Populaire sur - dashboard: - empty_follower: Vous n'avez pas encore d'abonnés... - empty_post: C'est ici que vous pouvez gérer vos messages, mais vous n'avez encore rien écrit - following_users: Utilisateurs suivis - loading: Chargement en cours... - not_following_any_users: Vous ne suivez aucun utilisateur... - page_title: Tableau de bord - upload_a_video: Charger une vidéo - write_new_post: Écrivez votre premier message maintenant date: abbr_month_names: - diff --git a/config/locales/views/dashboard/en.yml b/config/locales/views/dashboard/en.yml new file mode 100644 index 000000000..e053a2242 --- /dev/null +++ b/config/locales/views/dashboard/en.yml @@ -0,0 +1,149 @@ +--- +en: + views: + dashboard: + meta: + title: Dashboard - %{site} + heading: Dashboard + actions: + mobile: + posts: Posts (%{num}) + followers: Followers (%{num}) + following_tags: Following tags (%{num}) + following_users: Following users (%{num}) + following_orgs: Following organizations (%{num}) + following_pods: Following podcasts (%{num}) + posts: Posts + series: Series + followers: Followers + following_tags: Following tags + following_users: Following users + following_orgs: Following organizations + following_pods: Following podcasts + listings: Listings + analytics: Analytics + for_org: Analytics for %{org} + upload: Upload a video + analytics: + meta: + title: Analytics + heading: Analytics Dashboard for %{name} + desc_1: Welcome to the Analytics Dashboard, the home of in-depth user metrics so that authors can make data-driven decisions about the %{members} ecosystem. + desc_2: This dashboard highlights deep insights especially relevant to %{members} relations, authors, and serious bloggers. + back: "👈 Back to Main Dashboard" + your: Your Dashboard + org: "%{org} Analytics Dashboard" + article: + heading: + text_html: "%{archived}%{title}" + archived: "[Archived] " + archived: Archived + published: 'Published:' + published_html: 'Published: %{date}' + edited: 'Edited:' + edited_html: 'Edited: %{date}' + series: 'Series:' + series_html: "Series: %{series}" + draft: Draft + reactions: + title: Reactions + icon: Reactions + text_html: + one: "%{num} reaction" + other: "%{num} reactions" + comments: + title: Comments + icon: Comments + text_html: + one: "%{num} comment" + other: "%{num} comments" + views: + title: Views + icon: Views + lt_25: "< 25" + text_html: + other: "%{scale} views" + u_25: under 25 + subscriptions: + title: Subscriptions + icon: Data + number: Subscriptions (%{num}) + delete: Delete + unpin: Unpin + pin: + title: Pin to profile + button: Pin to profile + text: Pin + manage: + aria_label: 'Manage post: %{title}' + text: Manage + lock: Lock discussion + unlock: Unlock discussion + edit: + aria_label: 'Edit post: %{title}' + text: Edit + more: + title: 'More options for post: %{title}' + icon: More... + stats: Stats + archive: Archive post + unarchive: Unarchive post + author: Author + author_is: 'AUTHOR: ' + save: Save + submit: Submit author change + followers: + heading: Dashboard » Followers + empty: You don't have any followers yet... + following_orgs: + heading: Dashboard » Following organizations + empty: You don't follow any organizations yet... + following_pods: + heading: Dashboard » Following podcasts + empty: You don't follow any podcasts yet... + following_tags: + heading: Dashboard » Following tags + adjust: Adjust tag weight to modify your home feed. Higher values mean more appearances for that tag. + anti: + title: This tag has negative follow weight + text: Anti-follow + default: Default 1.0 + empty: You don't follow any tags yet... + number: + aria_label: "%{name} tag weight" + update: Update Weights + following_users: + heading: Dashboard » Following users + empty: You don't follow any users... + listings: + meta: + title: Listings Dashboard + posts: + heading: Posts + archived: Show archived + option: + creation-desc: Recently Created + published-desc: Recently Published + views-desc: Most Views + reactions-desc: Most Reactions + comments-desc: Most Comments + aria_label: Sort By + org: "%{name} (%{num})" + personal: Personal + empty: + desc: This is where you can manage your posts, but you haven't written anything yet. + new: Write your first post now + subscriptions: + meta: + title: Subscriptions %{title} + heading: Subscriptions + subhead: + text_html: "%{for} %{source}" + for: for + empty: You don't have any subscribers for this %{kind} yet... + summary: + reactions: Total post reactions + views: Total post views + listings: Listings created + credits: Credits available + lt_500: "< 500" diff --git a/config/locales/views/dashboard/fr.yml b/config/locales/views/dashboard/fr.yml new file mode 100644 index 000000000..52a5dcb75 --- /dev/null +++ b/config/locales/views/dashboard/fr.yml @@ -0,0 +1,149 @@ +--- +fr: + views: + dashboard: + meta: + title: Dashboard - %{site} + heading: Tableau de bord + actions: + mobile: + posts: Publications (%{num}) + followers: Suiveurs (%{num}) + following_tags: Following tags (%{num}) + following_users: Following users (%{num}) + following_orgs: Following organizations (%{num}) + following_pods: Following podcasts (%{num}) + posts: Publications + series: Séries + followers: Suiveurs + following_tags: Following tags + following_users: Following users + following_orgs: Following organizations + following_pods: Following podcasts + listings: Annonces + analytics: Analytique + for_org: Analytics for %{org} + upload: Charger une vidéo + analytics: + meta: + title: Analytics + heading: Analytics Dashboard for %{name} + desc_1: Welcome to the Analytics Dashboard, the home of in-depth user metrics so that authors can make data-driven decisions about the %{members} ecosystem. + desc_2: This dashboard highlights deep insights especially relevant to %{members} relations, authors, and serious bloggers. + back: "👈 Back to Main Dashboard" + your: Your Dashboard + org: "%{org} Analytics Dashboard" + article: + heading: + text_html: "%{archived}%{title}" + archived: "[Archived] " + archived: Archived + published: 'Published:' + published_html: 'Published: %{date}' + edited: 'Edited:' + edited_html: 'Edited: %{date}' + series: 'Series:' + series_html: "Series: %{series}" + draft: Draft + reactions: + title: Reactions + icon: Reactions + text_html: + one: "%{num} reaction" + other: "%{num} reactions" + comments: + title: Comments + icon: Comments + text_html: + one: "%{num} comment" + other: "%{num} comments" + views: + title: Views + icon: Views + lt_25: "< 25" + text_html: + other: "%{scale} views" + u_25: under 25 + subscriptions: + title: Subscriptions + icon: Data + number: Subscriptions (%{num}) + delete: Delete + unpin: Unpin + pin: + title: Pin to profile + button: Pin to profile + text: Pin + manage: + aria_label: 'Manage post: %{title}' + text: Manage + lock: Lock discussion + unlock: Unlock discussion + edit: + aria_label: 'Edit post: %{title}' + text: Edit + more: + title: 'More options for post: %{title}' + icon: More... + stats: Stats + archive: Archive post + unarchive: Unarchive post + author: Author + author_is: 'AUTHOR: ' + save: Save + submit: Submit author change + followers: + heading: Tableau de bord » Suiveurs + empty: Vous n'avez pas encore d'abonnés... + following_orgs: + heading: Dashboard » Following organizations + empty: You don't follow any organizations yet... + following_pods: + heading: Dashboard » Following podcasts + empty: You don't follow any podcasts yet... + following_tags: + heading: Dashboard » Following tags + adjust: Adjust tag weight to modify your home feed. Higher values mean more appearances for that tag. + anti: + title: This tag has negative follow weight + text: Anti-follow + default: Default 1.0 + empty: You don't follow any tags yet... + number: + aria_label: "%{name} tag weight" + update: Update Weights + following_users: + heading: Tableau de bord » Utilisateurs suivis + empty: Vous ne suivez aucun utilisateur... + listings: + meta: + title: Listings Dashboard + posts: + heading: Publications + archived: Show archived + option: + creation-desc: Recently Created + published-desc: Recently Published + views-desc: Most Views + reactions-desc: Most Reactions + comments-desc: Most Comments + aria_label: Sort By + org: "%{name} (%{num})" + personal: Personal + empty: + desc: C'est ici que vous pouvez gérer vos messages, mais vous n'avez encore rien écrit. + new: Écrivez votre premier message maintenant + subscriptions: + meta: + title: Subscriptions %{title} + heading: Subscriptions + subhead: + text_html: "%{for} %{source}" + for: for + empty: You don't have any subscribers for this %{kind} yet... + summary: + reactions: Total post reactions + views: Total post views + listings: Listings created + credits: Credits available + lt_500: "< 500" diff --git a/spec/requests/dashboard_spec.rb b/spec/requests/dashboard_spec.rb index 95880103c..a771db6dd 100644 --- a/spec/requests/dashboard_spec.rb +++ b/spec/requests/dashboard_spec.rb @@ -330,7 +330,7 @@ RSpec.describe "Dashboards", type: :request do it "displays a message if no subscriptions are found" do get "/dashboard/subscriptions", params: params - expect(response.body).to include("You don't have any subscribers for this") + expect(response.body).to include(CGI.escapeHTML("You don't have any subscribers for this")) end it "raises unauthorized when trying to access a source the user doesn't own" do