Skip to content

Commit a8d4a69

Browse files
committed
moved warning that unrelated pings users are not notified to a locale string
1 parent 409b762 commit a8d4a69

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

app/helpers/comments_helper.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ def render_pings(content, pingable: nil)
5858
was_pung = pingable.present? && pingable.include?(user.id)
5959
classes = "ping #{'me' if user.same_as?(current_user)} #{'unpingable' unless was_pung}"
6060
user_link user, class: classes, dir: 'ltr',
61-
title: was_pung ? '' : 'This user was not notified because they have not participated in this thread.'
61+
title: was_pung ? '' : I18n.t('comments.warnings.unrelated_user_not_pinged')
6262
end
6363
end.html_safe
6464
end

config/locales/strings/en.comments.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,3 +34,6 @@ en:
3434
Start new comment thread
3535
reply_to_thread: >
3636
Reply to this thread
37+
warnings:
38+
unrelated_user_not_pinged: >
39+
This user was not notified because they have not participated in this thread.

0 commit comments

Comments
 (0)