Add new translations for comment smiles modal

This commit is contained in:
Andreas Nedbal 2022-07-27 02:05:59 +02:00 committed by Andreas Nedbal
parent 001e747efe
commit c4fefbf0aa
2 changed files with 6 additions and 3 deletions

View File

@ -1,14 +1,14 @@
.modal.fade{ id: "modal-view-comment#{comment.id}-smiles", aria: { hidden: true, labelledby: 'modal-commentsmile-label' }, role: :dialog, tabindex: -1 }
.modal.fade{ id: "modal-view-comment#{comment.id}-smiles", aria: { hidden: true, labelledby: "modal-commentsmile-label" }, role: :dialog, tabindex: -1 }
.modal-dialog
.modal-content
.modal-header
%h5.modal-title#modal-commentsmile-label= t 'views.answerbox.commentsmile'
%h5.modal-title#modal-commentsmile-label= t(".title")
%button.close{ data: { dismiss: :modal }, type: :button }
%span{ aria: { hidden: true } } ×
%span.sr-only Close
.modal-body
- if comment.smiles.all.count.zero?
= t 'views.answerbox.no_smile'
= t(".none")
- else
%ul.smiles__user-list
- comment.smiles.all.each do |smile|

View File

@ -156,6 +156,9 @@ en:
placeholder: "Type your question here…"
action: "Ask"
loading: "Asking..."
comment_smiles:
title: "People who smiled this comment"
none: "No one smiled this comment, yet!"
password:
title: "Save account changes"
ban: