From 7504a243fdce609a7b73ff9d3340681ebbe36fcf Mon Sep 17 00:00:00 2001
From: yheuhtozr <84892012+yheuhtozr@users.noreply.github.com>
Date: Wed, 20 Oct 2021 23:13:51 +0900
Subject: [PATCH] views/tags etc i18n (#15039)
* views/tags etc i18n
* remove ja.yml
* YAML reformatting
---
.../tag_moderators_field/_form.html.erb | 7 ++-
.../stories/tagged_articles/_sidebar.html.erb | 20 +++----
app/views/tags/edit.html.erb | 23 ++++----
app/views/tags/index.html.erb | 22 +++----
config/locales/en.yml | 4 --
config/locales/fr.yml | 4 --
config/locales/views/tags/en.yml | 58 +++++++++++++++++++
config/locales/views/tags/fr.yml | 58 +++++++++++++++++++
8 files changed, 152 insertions(+), 44 deletions(-)
create mode 100644 config/locales/views/tags/en.yml
create mode 100644 config/locales/views/tags/fr.yml
diff --git a/app/views/fields/tag_moderators_field/_form.html.erb b/app/views/fields/tag_moderators_field/_form.html.erb
index 3aee083b1..8dc3aa3a8 100644
--- a/app/views/fields/tag_moderators_field/_form.html.erb
+++ b/app/views/fields/tag_moderators_field/_form.html.erb
@@ -2,7 +2,8 @@
<%= f.label field.attribute %>
- <%= f.text_field field.attribute, value: field.to_s, placeholder: "comma separated, space is optional. Example: 1,2,3" %>
- comma separated, space is optional. Example:
- 1,2,3
+ <%= f.text_field field.attribute, value: field.to_s, placeholder: t("views.tags.moderator.placeholder") %>
+
+ <%= t("views.tags.moderator.text_html", code: tag.code(t("views.tags.moderator.code"), style: "background: #D2D2D2; padding: 4px; border-radius: 5px; font-weight: bold;")) %>
+
diff --git a/app/views/stories/tagged_articles/_sidebar.html.erb b/app/views/stories/tagged_articles/_sidebar.html.erb
index ea7277c6b..fde4b89ea 100644
--- a/app/views/stories/tagged_articles/_sidebar.html.erb
+++ b/app/views/stories/tagged_articles/_sidebar.html.erb
@@ -5,12 +5,12 @@
<% if @tag_model && @tag_model.rules_html.present? %>
@@ -18,7 +18,7 @@
<% if @tag_model && @tag_model.wiki_body_html.present? %>