From 001e747efe38e5f633b30178915b946ac55f0a28 Mon Sep 17 00:00:00 2001 From: Andreas Nedbal Date: Wed, 27 Jul 2022 02:05:29 +0200 Subject: [PATCH] Add new translations for ask modal --- app/views/modal/_ask.haml | 12 ++++++------ config/locales/views.en.yml | 5 +++++ 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/app/views/modal/_ask.haml b/app/views/modal/_ask.haml index 59adb393..36ed3544 100644 --- a/app/views/modal/_ask.haml +++ b/app/views/modal/_ask.haml @@ -1,13 +1,13 @@ -.modal.fade#modal-ask-followers{ aria: { hidden: true, labelledby: 'modal-ask-followers-label' }, role: :dialog, tabindex: -1 } +.modal.fade#modal-ask-followers{ aria: { hidden: true, labelledby: "modal-ask-followers-label" }, role: :dialog, tabindex: -1 } .modal-dialog .modal-content .modal-header - %h5.modal-title#modal-ask-followers-label= t 'views.modal.ask.title' + %h5.modal-title#modal-ask-followers-label= t(".title") %button.close{ data: { dismiss: :modal }, type: :button } %span{ aria: { hidden: true } } × - %span.sr-only= t 'views.actions.close' + %span.sr-only= t("voc.close") .modal-body - %textarea.form-control{ name: 'qb-all-question', placeholder: t('views.placeholder.question') } + %textarea.form-control{ name: "qb-all-question", placeholder: t(".placeholder") } .modal-footer - %button.btn.btn-default{ type: :button, data: { dismiss: :modal } }= t 'views.actions.cancel' - %button.btn.btn-primary{ name: 'qb-all-ask', type: :button, data: { loading_text: t('views.modal.ask.loading') } }= t 'views.actions.ask' + %button.btn.btn-default{ type: :button, data: { dismiss: :modal } }= t("voc.cancel") + %button.btn.btn-primary{ name: "qb-all-ask", type: :button, data: { loading_text: t(".loading") } }= t(".action") diff --git a/config/locales/views.en.yml b/config/locales/views.en.yml index 9f5d46ed..50bed600 100644 --- a/config/locales/views.en.yml +++ b/config/locales/views.en.yml @@ -151,6 +151,11 @@ en: url: "URL:" confirm: "I understand the risk, proceed!" modal: + ask: + title: "Ask your followers" + placeholder: "Type your question here…" + action: "Ask" + loading: "Asking..." password: title: "Save account changes" ban: