diff --git a/app/views/articles/_v2_form.html.erb b/app/views/articles/_v2_form.html.erb index 6c4df7069..85a30cfd3 100644 --- a/app/views/articles/_v2_form.html.erb +++ b/app/views/articles/_v2_form.html.erb @@ -49,7 +49,7 @@
- + <% if organizations && organizations.size > 0 %>
- +
<% end %> diff --git a/app/views/articles/edit.html.erb b/app/views/articles/edit.html.erb index 75b4c751b..9141bb7b8 100644 --- a/app/views/articles/edit.html.erb +++ b/app/views/articles/edit.html.erb @@ -1,17 +1,16 @@ -<% title "Edit Post" %> +<% title t("views.editor.meta.title") %> <% if @article.video.present? %>
<% if @article.video_state == "PROGRESSING" %> -

⏳ Video Transcoding In Progress ⏳

+

<%= t("views.editor.video.progress.heading") %>

Bored kid incessantly tapping his fingers

- You'll get an email when this process finishes. + <%= t("views.editor.video.progress.notice_1") %>

- This is an ordinary unpublished post. Add title/tags/body/etc, and then mark as published after the video - is done processing. + <%= t("views.editor.video.progress.notice_2") %>

<% elsif @article.video_state == "COMPLETED" %> @@ -19,8 +18,8 @@ <%= render "articles/video_player", meta_tags: false, article: @article %>
<%= form_for(@article) do |f| %> - Preview Image URL: <%= f.text_field :video_thumbnail_url, placeholder: "New Thumbnail URL" %> - <%= f.submit "Submit Change", class: "crayons-btn" %> + <%= t("views.editor.video.submit_image.text") %><%= f.text_field :video_thumbnail_url, placeholder: t("views.editor.video.submit_image.placeholder") %> + <%= f.submit t("views.editor.video.submit_image.button"), class: "crayons-btn" %> <% end %>
<% end %> diff --git a/app/views/articles/manage.html.erb b/app/views/articles/manage.html.erb index 200cf2a79..21e1c0d2e 100644 --- a/app/views/articles/manage.html.erb +++ b/app/views/articles/manage.html.erb @@ -1,13 +1,13 @@ -<% title "Manage #{@article.title}" %> +<% title t("views.manager.meta.title", title: @article.title) %>
- Dashboard 👉 Manage Your Post + <%= t("views.manager.nav.dashboard") %><%= t("views.manager.nav.text") %>
<% if flash[:error] %>
-

Uh Oh! <%= flash[:error] %> 😬

+

<%= t("views.manager.error.pins", error: flash[:pins_error]) %>

<% end %> <% if flash[:success] %> @@ -15,18 +15,18 @@

<%= flash[:success] %>

<% end %> -

Tools:

-

Experience Level of Post: Is your post written more for a beginner or an advanced audience? Adjust this level as a gentle indicator which will help show the post to the people who will benefit the most. -

Tips:

+

<%= t("views.manager.tools.heading") %>

+

<%= t("views.manager.tools.subtitle") %><%= t("views.manager.tools.text_html") %> +

<%= t("views.manager.tips.heading") %>

  1. - Write your own tweet about the post, describing personally why you wrote it or why people might find it useful. We may retweet you. + <%= t("views.manager.tips.text_1") %>
  2. - Share to link aggregators such as Reddit. Try to choose the most topic-specific subreddits, such as /r/javascript or /r/python, etc. Warning: jerks and trolls may be lurking. + <%= t("views.manager.tips.text_2_html") %>
  3. - Share with your co-workers or local communities. Ask people to leave questions for you in the comments. It's a great way to spark additional discussion. + <%= t("views.manager.tips.text_3") %>
@@ -36,7 +36,7 @@ <%= render "dashboards/dashboard_article", article: @article, discussion_lock: @discussion_lock, organization: @article.organization, org_admin: @user.org_admin?(@article.organization), manage_view: true %>
<%= form_for(RatingVote.new) do |f| %> -

Experience Level of Post

+

<%= t("views.manager.rating.heading") %>

<%= f.hidden_field :article_id, value: @article.id %> <%= f.hidden_field :group, value: "experience_level" %> @@ -55,8 +55,8 @@ -

Who is this post most relevant for?

-

👈 BeginnerExpert 👉

+

<%= t("views.manager.rating.text") %>

+

<%= t("views.manager.rating.lower") %><%= t("views.manager.rating.higher") %>

<% end %>
diff --git a/app/views/articles/new.html.erb b/app/views/articles/new.html.erb index 6c1cc38f2..60c0113f7 100644 --- a/app/views/articles/new.html.erb +++ b/app/views/articles/new.html.erb @@ -1,4 +1,4 @@ -<% title "New Post" %> +<% title t("views.editor.heading.new") %> <%= content_for :page_meta do %> " /> <% end %> diff --git a/app/views/articles/show.html.erb b/app/views/articles/show.html.erb index 9bd05e4da..472aa459c 100644 --- a/app/views/articles/show.html.erb +++ b/app/views/articles/show.html.erb @@ -75,7 +75,7 @@ <% end %> <% if @article.video_state == "PROGRESSING" %> -
⏳ Video Transcoding In Progress ⏳
+
<%= t("views.editor.video.progress.heading") %>
<% end %>
gentle indicator which will help show the post to the people who will benefit the most." + nav: + dashboard: Dashboard + text: " 👉 Manage Your Post" + rating: + heading: Experience Level of Post + text: Who is this post most relevant for? + lower: "👈 Beginner" + higher: "Expert 👉" + tips: + heading: 'Tips:' + text_1: Write your own tweet about the post, describing personally why you wrote it or why people might find it useful. We may retweet you. + text_2_html: 'Share to link aggregators such as Reddit. Try to choose the most topic-specific subreddits, such as /r/javascript or /r/python, etc. Warning: jerks and trolls may be lurking.' + text_3: Share with your co-workers or local communities. Ask people to leave questions for you in the comments. It's a great way to spark additional discussion. diff --git a/config/locales/views/manager/fr.yml b/config/locales/views/manager/fr.yml new file mode 100644 index 000000000..09b13efcc --- /dev/null +++ b/config/locales/views/manager/fr.yml @@ -0,0 +1,25 @@ +--- +fr: + views: + manager: + meta: + title: Manage %{title} + error: + pins: "Uh Oh! %{error} 😬" + tools: + heading: 'Tools:' + subtitle: 'Experience Level of Post:' + text_html: " Is your post written more for a beginner or an advanced audience? Adjust this level as a gentle indicator which will help show the post to the people who will benefit the most." + nav: + dashboard: Dashboard + text: " 👉 Manage Your Post" + rating: + heading: Experience Level of Post + text: Who is this post most relevant for? + lower: "👈 Beginner" + higher: "Expert 👉" + tips: + heading: 'Tips:' + text_1: Write your own tweet about the post, describing personally why you wrote it or why people might find it useful. We may retweet you. + text_2_html: 'Share to link aggregators such as Reddit. Try to choose the most topic-specific subreddits, such as /r/javascript or /r/python, etc. Warning: jerks and trolls may be lurking.' + text_3: Share with your co-workers or local communities. Ask people to leave questions for you in the comments. It's a great way to spark additional discussion.