From 437e72a322ebeb39d0d8633d2813b7c2ba0600c2 Mon Sep 17 00:00:00 2001 From: Andreas Nedbal Date: Sun, 31 Jul 2022 13:51:20 +0200 Subject: [PATCH] Translate share alt title in answerbox actions --- app/views/answerbox/_actions.haml | 2 +- config/locales/views.en.yml | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/app/views/answerbox/_actions.haml b/app/views/answerbox/_actions.haml index da29c3ac..b169aa3f 100644 --- a/app/views/answerbox/_actions.haml +++ b/app/views/answerbox/_actions.haml @@ -18,7 +18,7 @@ %span{ id: "ab-comment-count-#{a.id}" }= a.comment_count .btn-group %button.btn.btn-link.answerbox__action{ data: { toggle: :dropdown }, aria: { expanded: false } } - %i.fa.fa-fw.fa-share-alt{ title: "Share" } + %i.fa.fa-fw.fa-share-alt{ title: t(".share.title") } .dropdown-menu.dropdown-menu-right{ role: :menu } %a.dropdown-item{ href: twitter_share_url(a), target: "_blank" } %i.fa.fa-fw.fa-twitter diff --git a/config/locales/views.en.yml b/config/locales/views.en.yml index 39cfaa35..e0dfc0a9 100644 --- a/config/locales/views.en.yml +++ b/config/locales/views.en.yml @@ -87,6 +87,7 @@ en: asked: "%{user} asked %{time} ago" actions: share: + title: "Share" twitter: "Share on Twitter" tumblr: "Share on Tumblr" other: "Share on other apps..."