Remove unnecessary duplicate locales
This commit is contained in:
parent
a8362702e3
commit
b3f15fe409
|
@ -5,17 +5,17 @@
|
||||||
.notification__heading
|
.notification__heading
|
||||||
%img.avatar-xs{ src: notification.target.user.profile_picture.url(:small) }
|
%img.avatar-xs{ src: notification.target.user.profile_picture.url(:small) }
|
||||||
- if notification.target.answer.user == current_user
|
- if notification.target.answer.user == current_user
|
||||||
= t(".active.heading_html",
|
= t(".heading_html",
|
||||||
user: user_screen_name(notification.target.user),
|
user: user_screen_name(notification.target.user),
|
||||||
answer: link_to(t(".active.link_text"), show_user_answer_path(username: notification.target.user.screen_name, id: notification.target.answer.id)),
|
answer: link_to(t(".active.link_text"), show_user_answer_path(username: notification.target.user.screen_name, id: notification.target.answer.id)),
|
||||||
time: time_tooltip(notification.target))
|
time: time_tooltip(notification.target))
|
||||||
- elsif notification.target.user == notification.target.answer.user
|
- elsif notification.target.user == notification.target.answer.user
|
||||||
= t(".passive.heading_html",
|
= t(".heading_html",
|
||||||
user: user_screen_name(notification.target.user),
|
user: user_screen_name(notification.target.user),
|
||||||
answer: link_to(t(".passive.link_text"), show_user_answer_path(username: notification.target.user.screen_name, id: notification.target.answer.id)),
|
answer: link_to(t(".passive.link_text"), show_user_answer_path(username: notification.target.user.screen_name, id: notification.target.answer.id)),
|
||||||
time: time_tooltip(notification.target))
|
time: time_tooltip(notification.target))
|
||||||
- else
|
- else
|
||||||
= t(".other.heading_html",
|
= t(".heading_html",
|
||||||
user: user_screen_name(notification.target.user),
|
user: user_screen_name(notification.target.user),
|
||||||
answer: link_to(t(".other.link_text", user: user_screen_name(notification.target.answer.user)), show_user_answer_path(username: notification.target.user.screen_name, id: notification.target.answer.id)),
|
answer: link_to(t(".other.link_text", user: user_screen_name(notification.target.answer.user)), show_user_answer_path(username: notification.target.user.screen_name, id: notification.target.answer.id)),
|
||||||
time: time_tooltip(notification.target))
|
time: time_tooltip(notification.target))
|
||||||
|
|
|
@ -5,12 +5,12 @@
|
||||||
.notification__heading
|
.notification__heading
|
||||||
%img.avatar-xs{ src: notification.target.user.profile_picture.url(:small) }
|
%img.avatar-xs{ src: notification.target.user.profile_picture.url(:small) }
|
||||||
- if notification.target.parent_type == 'Answer'
|
- if notification.target.parent_type == 'Answer'
|
||||||
= t(".#{notification.target.parent_type.downcase}.heading_html",
|
= t(".heading_html",
|
||||||
user: user_screen_name(notification.target.user),
|
user: user_screen_name(notification.target.user),
|
||||||
type: link_to(t(".#{notification.target.parent_type.downcase}.link_text"), show_user_answer_path(username: notification.target.user.screen_name, id: notification.target.parent.id)),
|
type: link_to(t(".#{notification.target.parent_type.downcase}.link_text"), show_user_answer_path(username: notification.target.user.screen_name, id: notification.target.parent.id)),
|
||||||
time: time_tooltip(notification.target))
|
time: time_tooltip(notification.target))
|
||||||
- elsif notification.target.parent_type == 'Comment'
|
- elsif notification.target.parent_type == 'Comment'
|
||||||
= t(".#{notification.target.parent_type.downcase}.heading_html",
|
= t(".heading_html",
|
||||||
user: user_screen_name(notification.target.user),
|
user: user_screen_name(notification.target.user),
|
||||||
type: link_to(t(".#{notification.target.parent_type.downcase}.link_text"), show_user_answer_path(username: notification.target.user.screen_name, id: notification.target.parent.answer.id)),
|
type: link_to(t(".#{notification.target.parent_type.downcase}.link_text"), show_user_answer_path(username: notification.target.user.screen_name, id: notification.target.parent.answer.id)),
|
||||||
time: time_tooltip(notification.target))
|
time: time_tooltip(notification.target))
|
||||||
|
|
|
@ -118,23 +118,18 @@ en:
|
||||||
heading_html: "%{user} answered %{question} %{time} ago"
|
heading_html: "%{user} answered %{question} %{time} ago"
|
||||||
link_text: "your question"
|
link_text: "your question"
|
||||||
comment:
|
comment:
|
||||||
heading: "%{user} commented on %{answer} %{time} ago"
|
heading_html: "%{user} commented on %{answer} %{time} ago"
|
||||||
active:
|
active:
|
||||||
heading_html: :notifications.type.comment.heading
|
|
||||||
link_text: "your answer"
|
link_text: "your answer"
|
||||||
passive:
|
passive:
|
||||||
heading_html: :notifications.type.comment.heading
|
|
||||||
link_text: "their answer"
|
link_text: "their answer"
|
||||||
other:
|
other:
|
||||||
heading_html: :notifications.type.comment.heading
|
|
||||||
link_text: "%{user}'s answer"
|
link_text: "%{user}'s answer"
|
||||||
reaction:
|
reaction:
|
||||||
heading: "%{user} smiled %{type} %{time} ago"
|
heading_html: "%{user} smiled %{type} %{time} ago"
|
||||||
answer:
|
answer:
|
||||||
heading_html: :notifications.type.reaction.heading
|
|
||||||
link_text: "your answer"
|
link_text: "your answer"
|
||||||
comment:
|
comment:
|
||||||
heading_html: :notifications.type.reaction.heading
|
|
||||||
link_text: "your comment"
|
link_text: "your comment"
|
||||||
follow:
|
follow:
|
||||||
heading_html: "followed you %{time} ago"
|
heading_html: "followed you %{time} ago"
|
||||||
|
|
Loading…
Reference in New Issue