Move anon icon tooltip text into translatable string
This commit is contained in:
parent
a2937a60e9
commit
cd581fd2b1
|
@ -24,7 +24,7 @@
|
||||||
View in Kontrollzentrum
|
View in Kontrollzentrum
|
||||||
%h6.text-muted.media-heading.answerbox__question-user
|
%h6.text-muted.media-heading.answerbox__question-user
|
||||||
- if a.question.author_is_anonymous
|
- 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))
|
= 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
|
- if !a.question.author_is_anonymous && !a.question.direct
|
||||||
·
|
·
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
.media-body
|
.media-body
|
||||||
%h6.text-muted.media-heading.answerbox__question-user
|
%h6.text-muted.media-heading.answerbox__question-user
|
||||||
- if i.question.author_is_anonymous
|
- 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))
|
= 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?
|
- if !i.question.author_is_anonymous && i.question.answer_count.positive?
|
||||||
·
|
·
|
||||||
|
|
|
@ -12,6 +12,9 @@ en:
|
||||||
title: "Create Announcement"
|
title: "Create Announcement"
|
||||||
edit:
|
edit:
|
||||||
title: "Edit Announcement"
|
title: "Edit Announcement"
|
||||||
|
answerbox:
|
||||||
|
header:
|
||||||
|
anon_hint: :inbox.entry.anon_hint
|
||||||
application:
|
application:
|
||||||
questionbox:
|
questionbox:
|
||||||
title: "Ask something!"
|
title: "Ask something!"
|
||||||
|
@ -48,6 +51,7 @@ en:
|
||||||
inbox:
|
inbox:
|
||||||
entry:
|
entry:
|
||||||
asked_html: "%{user} asked %{time} ago"
|
asked_html: "%{user} asked %{time} ago"
|
||||||
|
anon_hint: "This question was asked anonymously."
|
||||||
answers:
|
answers:
|
||||||
one: "1 answer"
|
one: "1 answer"
|
||||||
other: "%{count} answers"
|
other: "%{count} answers"
|
||||||
|
|
Loading…
Reference in New Issue