FIX: Don't hardcode the path into translations.
This commit is contained in:
parent
7ca08216bd
commit
ddd07773da
|
@ -31,7 +31,7 @@ class BasicPostSerializer < ApplicationSerializer
|
|||
def cooked
|
||||
if cooked_hidden
|
||||
if scope.current_user && object.user_id == scope.current_user.id
|
||||
I18n.t('flagging.you_must_edit')
|
||||
I18n.t('flagging.you_must_edit', path: "/my/messages")
|
||||
else
|
||||
I18n.t('flagging.user_must_edit')
|
||||
end
|
||||
|
|
|
@ -742,7 +742,7 @@ en:
|
|||
email_body: "%{link}\n\n%{message}"
|
||||
|
||||
flagging:
|
||||
you_must_edit: '<p>Your post was flagged by the community. Please <a href="/my/messages">see your messages</a>.</p>'
|
||||
you_must_edit: '<p>Your post was flagged by the community. Please <a href="%{path}">see your messages</a>.</p>'
|
||||
user_must_edit: '<p>This post was flagged by the community and is temporarily hidden.</p>'
|
||||
|
||||
archetypes:
|
||||
|
|
Loading…
Reference in New Issue