From 39a62c4b3d730fa515d6ce6b4f51e99de367381b Mon Sep 17 00:00:00 2001 From: VictorPS Date: Tue, 12 Oct 2021 06:09:55 +0100 Subject: [PATCH] Internationalize hardcoded text for videos pages (#14960) * Translation for "on Video" * Moving dashboard.loading to core.loading to keep code DRY * Translations for views/videos/new.html.erb * Reverting the changes on app/views/dashboards/_sublist.html.erb * Adding the dashboard.loading translations back * Fixing some merge conflicts + sorting the dashboard translations * Fixing the contact text on views/videos/new * Using the full path instead of the lazy load --- app/views/admin/articles/_individual_article.html.erb | 2 +- app/views/videos/index.html.erb | 4 ++-- app/views/videos/new.html.erb | 6 ++---- config/locales/en.yml | 6 ++++++ config/locales/fr.yml | 6 ++++++ cypress/support/commands.js | 1 - 6 files changed, 17 insertions(+), 8 deletions(-) diff --git a/app/views/admin/articles/_individual_article.html.erb b/app/views/admin/articles/_individual_article.html.erb index 2ac2b2d86..908df647d 100644 --- a/app/views/admin/articles/_individual_article.html.erb +++ b/app/views/admin/articles/_individual_article.html.erb @@ -25,7 +25,7 @@ Edit Manage User - + <% if decorated_article.pinned? %> <%= link_to( "Unpin Post", diff --git a/app/views/videos/index.html.erb b/app/views/videos/index.html.erb index 0ea3c5b6c..54664fb21 100644 --- a/app/views/videos/index.html.erb +++ b/app/views/videos/index.html.erb @@ -23,7 +23,7 @@
-

<%= community_name %> on Video

+

<%= t("core.on_video", name: community_name) %>

<% @video_articles.each do |video_article| %> @@ -38,7 +38,7 @@
- loading... + <%= t("core.loading") %>
diff --git a/app/views/videos/new.html.erb b/app/views/videos/new.html.erb index 166fb981e..f13a2a2f4 100644 --- a/app/views/videos/new.html.erb +++ b/app/views/videos/new.html.erb @@ -11,7 +11,7 @@
<%= stylesheet_link_tag "s3_direct_upload", media: "all" %> -

đŸŽ„ Upload Video File 🙌

+

<%= t("videos.new.title") %>

<%= s3_uploader_form callback_url: "/videos", callback_method: "POST", callback_param: "article[video]", @@ -32,9 +32,7 @@ <% end %>
-

- Video is beta: <%= t("contact_prompts.if_any_questions_html") %> -

+

<%= t("videos.new.beta_info_html") %> <%= t("contact_prompts.if_any_questions_html") %>