Move anon icon tooltip text into translatable string

This commit is contained in:
Karina Kwiatek 2022-06-22 12:51:34 +02:00 committed by Karina Kwiatek
parent a2937a60e9
commit cd581fd2b1
3 changed files with 6 additions and 2 deletions

View File

@ -24,7 +24,7 @@
View in Kontrollzentrum
%h6.text-muted.media-heading.answerbox__question-user
- if a.question.author_is_anonymous
%i.fa.fa-user-secret{ title: 'This question was asked anonymously' }
%i.fa.fa-user-secret{ title: t('.anon_hint') }
= raw t('views.answerbox.asked', user: user_screen_name(a.question.user, context_user: a.user, anonymous: a.question.author_is_anonymous), time: time_tooltip(a.question))
- if !a.question.author_is_anonymous && !a.question.direct
·

View File

@ -7,7 +7,7 @@
.media-body
%h6.text-muted.media-heading.answerbox__question-user
- if i.question.author_is_anonymous
%i.fa.fa-user-secret{ title: 'This question was asked anonymously' }
%i.fa.fa-user-secret{ title: t('.anon_hint') }
= t(".asked_html", user: user_screen_name(i.question.user, context_user: i.user, anonymous: i.question.author_is_anonymous), time: time_tooltip(i.question))
- if !i.question.author_is_anonymous && i.question.answer_count.positive?
·

View File

@ -12,6 +12,9 @@ en:
title: "Create Announcement"
edit:
title: "Edit Announcement"
answerbox:
header:
anon_hint: :inbox.entry.anon_hint
application:
questionbox:
title: "Ask something!"
@ -48,6 +51,7 @@ en:
inbox:
entry:
asked_html: "%{user} asked %{time} ago"
anon_hint: "This question was asked anonymously."
answers:
one: "1 answer"
other: "%{count} answers"