- 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") %>
- 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