From 2ccc577b79cd0b85371ba63ee89eda6ddf62fa0a Mon Sep 17 00:00:00 2001 From: yheuhtozr <84892012+yheuhtozr@users.noreply.github.com> Date: Wed, 19 Oct 2022 02:39:59 +0900 Subject: [PATCH] Fix recent missing or unsynchronized i18n (#18563) * add missing i18n * replace old keys * new badges UI update * comment sort options missing i18n * one fr key forgot to rename --- app/views/articles/_full_comment_area.html.erb | 14 +++++++------- app/views/badges/_badge_detail.html.erb | 2 +- .../modals/_unpublish_post_modal.html.erb | 7 +++---- config/locales/views/articles/en.yml | 10 ++++++++++ config/locales/views/articles/fr.yml | 10 ++++++++++ config/locales/views/main/en.yml | 2 +- config/locales/views/main/fr.yml | 2 +- config/locales/views/misc/en.yml | 3 +-- config/locales/views/misc/fr.yml | 3 +-- config/locales/views/moderations/en.yml | 3 +++ config/locales/views/moderations/fr.yml | 3 +++ config/locales/views/reactions/fr.yml | 2 +- config/locales/views/settings/fr.yml | 1 + 13 files changed, 43 insertions(+), 19 deletions(-) diff --git a/app/views/articles/_full_comment_area.html.erb b/app/views/articles/_full_comment_area.html.erb index 575cb215d..2283243cf 100644 --- a/app/views/articles/_full_comment_area.html.erb +++ b/app/views/articles/_full_comment_area.html.erb @@ -13,22 +13,22 @@ diff --git a/app/views/badges/_badge_detail.html.erb b/app/views/badges/_badge_detail.html.erb index 7e9714198..b32cc50c7 100644 --- a/app/views/badges/_badge_detail.html.erb +++ b/app/views/badges/_badge_detail.html.erb @@ -10,6 +10,6 @@
<%= badge.description %>
- + diff --git a/app/views/moderations/modals/_unpublish_post_modal.html.erb b/app/views/moderations/modals/_unpublish_post_modal.html.erb index 3e2f966c9..d0278c581 100644 --- a/app/views/moderations/modals/_unpublish_post_modal.html.erb +++ b/app/views/moderations/modals/_unpublish_post_modal.html.erb @@ -1,17 +1,16 @@ <% name = @article.cached_user_name %>- Once unpublished, this post will become invisible to the public - and only accessible to <%= name %>. + <%= t("views.moderations.actions.unpublish_post.modal_text1", username: name) %>
-They can still re-publish the post if they are not suspended.
+<%= t("views.moderations.actions.unpublish_post.modal_text2", username: name) %>