Translate share alt title in answerbox actions

This commit is contained in:
Andreas Nedbal 2022-07-31 13:51:20 +02:00 committed by Andreas Nedbal
parent bb47e30ed1
commit 437e72a322
2 changed files with 2 additions and 1 deletions

View File

@ -18,7 +18,7 @@
%span{ id: "ab-comment-count-#{a.id}" }= a.comment_count %span{ id: "ab-comment-count-#{a.id}" }= a.comment_count
.btn-group .btn-group
%button.btn.btn-link.answerbox__action{ data: { toggle: :dropdown }, aria: { expanded: false } } %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 } .dropdown-menu.dropdown-menu-right{ role: :menu }
%a.dropdown-item{ href: twitter_share_url(a), target: "_blank" } %a.dropdown-item{ href: twitter_share_url(a), target: "_blank" }
%i.fa.fa-fw.fa-twitter %i.fa.fa-fw.fa-twitter

View File

@ -87,6 +87,7 @@ en:
asked: "%{user} asked %{time} ago" asked: "%{user} asked %{time} ago"
actions: actions:
share: share:
title: "Share"
twitter: "Share on Twitter" twitter: "Share on Twitter"
tumblr: "Share on Tumblr" tumblr: "Share on Tumblr"
other: "Share on other apps..." other: "Share on other apps..."