Сleared up the message when a comment is hidden (#18199)

* Fix message understanding when a comment is hidden and add i18n

* Fix naming
This commit is contained in:
Dmitrii Faiazov 2022-08-15 19:53:20 +03:00 committed by GitHub
parent ad270fc842
commit c642cadfc9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 8 additions and 2 deletions

View file

@ -7,7 +7,9 @@
<div class="comment__content crayons-card">
<% if comment.deleted %>
<div class="p-6 align-center opacity-50 fs-s">
<span class="js-comment-username">Comment deleted</span>
<span class="js-comment-username">
<%= t("views.comments.delete.comment_deleted") %>
</span>
</div>
<% else %>
<%= render partial: "comments/comment_quality_marker", locals: {
@ -35,7 +37,7 @@
<% if should_be_hidden?(comment, @root_comment) %>
<div class="p-6 align-center opacity-50 fs-s hidden comment-hidden-by-author-text">
Comment hidden by author
<%= t("views.comments.hidden.comment_hidden") %>
</div>
<% end %>
<% end %>

View file

@ -28,6 +28,7 @@ en:
submit: Delete
edit: Edit
cancel: Dismiss
comment_deleted: Comment deleted
collapse: Collapse
edit: Editing comment
edited:
@ -37,6 +38,7 @@ en:
hidden:
text_html: Some comments have been hidden by the post's author - %{info}
info: find out more
comment_hidden: Comment hidden by post author
hider:
description_html: Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's %{permalink}.
hide_child: Hide child comments as well

View file

@ -28,6 +28,7 @@ fr:
submit: Delete
edit: Edit
cancel: Dismiss
comment_deleted: Comment deleted
collapse: Collapse
edit: Editing comment
edited:
@ -37,6 +38,7 @@ fr:
hidden:
text_html: Some comments have been hidden by the post's author - %{info}
info: find out more
comment_hidden: Comment hidden by post author
hider:
description_html: Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's %{permalink}.
hide_child: Hide child comments as well