From c4fefbf0aa041a5473e26c90442628b98c5bbd1d Mon Sep 17 00:00:00 2001 From: Andreas Nedbal Date: Wed, 27 Jul 2022 02:05:59 +0200 Subject: [PATCH] Add new translations for comment smiles modal --- app/views/modal/_comment_smiles.haml | 6 +++--- config/locales/views.en.yml | 3 +++ 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/app/views/modal/_comment_smiles.haml b/app/views/modal/_comment_smiles.haml index 3d009a62..04a4772e 100644 --- a/app/views/modal/_comment_smiles.haml +++ b/app/views/modal/_comment_smiles.haml @@ -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| diff --git a/config/locales/views.en.yml b/config/locales/views.en.yml index 50bed600..5d78469f 100644 --- a/config/locales/views.en.yml +++ b/config/locales/views.en.yml @@ -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: