From a6f08ae215ab7b0817b5f5cba74d2202205eef25 Mon Sep 17 00:00:00 2001 From: yheuhtozr <84892012+yheuhtozr@users.noreply.github.com> Date: Wed, 10 Nov 2021 22:38:43 +0900 Subject: [PATCH] views/stories, views/layouts and other homepage i18n (#15083) * views/stories and home related i18n * PR key names fixes * remove ja.yml * Update en.yml * Update fr.yml * Update articles_search_spec.rb * Update _meta.html.erb * Update index.html.erb * Update _meta.html.erb * Update articles_search_spec.rb text in HTML should not contain raw brackets * Update articles_search_spec.rb * Update _signup_modal.html.erb * Add back missing Search text Co-authored-by: Fernando Valverde --- app/views/articles/index.html.erb | 26 ++++--- app/views/layouts/_footer.html.erb | 14 +++- app/views/layouts/_logo.html.erb | 2 +- app/views/layouts/_main_nav.html.erb | 6 +- app/views/layouts/_nav_menu.html.erb | 16 ++-- app/views/layouts/_sidebar_nav_link.html.erb | 2 +- app/views/layouts/_sidebar_tags.html.erb | 8 +- app/views/layouts/_signup_modal.html.erb | 8 +- app/views/layouts/_top_bar.html.erb | 40 +++++----- app/views/shared/_hamburger.html.erb | 2 +- app/views/sidebars/_homepage_content.html.erb | 10 +-- .../stories/articles_search/_meta.html.erb | 8 +- .../articles_search/_nav_menu.html.erb | 10 +-- .../stories/articles_search/index.html.erb | 16 ++-- .../stories/tagged_articles/_meta.html.erb | 8 +- .../_sidebar_additional.html.erb | 6 +- .../stories/tagged_articles/index.html.erb | 44 +++++------ app/views/users/_meta.html.erb | 2 +- config/locales/en.yml | 14 ---- config/locales/fr.yml | 14 ---- config/locales/views/main/en.yml | 77 +++++++++++++++++++ config/locales/views/main/fr.yml | 77 +++++++++++++++++++ config/locales/views/misc/en.yml | 29 +++++++ config/locales/views/misc/fr.yml | 29 +++++++ config/locales/views/stories/en.yml | 25 ++++++ config/locales/views/stories/fr.yml | 25 ++++++ spec/requests/stories/articles_search_spec.rb | 4 +- 27 files changed, 382 insertions(+), 140 deletions(-) create mode 100644 config/locales/views/main/en.yml create mode 100644 config/locales/views/main/fr.yml create mode 100644 config/locales/views/stories/en.yml create mode 100644 config/locales/views/stories/fr.yml diff --git a/app/views/articles/index.html.erb b/app/views/articles/index.html.erb index 31beb2081..51e0af5b1 100644 --- a/app/views/articles/index.html.erb +++ b/app/views/articles/index.html.erb @@ -21,7 +21,7 @@ - <%= auto_discovery_link_tag(:rss, app_url("feed"), title: "#{community_name} RSS Feed") %> + <%= auto_discovery_link_tag(:rss, app_url("feed"), title: t("views.stories.meta.rss", name: community_name)) %> <% end %> <%= javascript_packs_with_chunks_tag "homePage", defer: true %> @@ -39,37 +39,39 @@ <%= render(partial: "onboardings/task_card") if user_signed_in? %>
-

Posts

-