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
|
def cooked
|
||||||
if cooked_hidden
|
if cooked_hidden
|
||||||
if scope.current_user && object.user_id == scope.current_user.id
|
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
|
else
|
||||||
I18n.t('flagging.user_must_edit')
|
I18n.t('flagging.user_must_edit')
|
||||||
end
|
end
|
||||||
|
|
|
@ -742,7 +742,7 @@ en:
|
||||||
email_body: "%{link}\n\n%{message}"
|
email_body: "%{link}\n\n%{message}"
|
||||||
|
|
||||||
flagging:
|
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>'
|
user_must_edit: '<p>This post was flagged by the community and is temporarily hidden.</p>'
|
||||||
|
|
||||||
archetypes:
|
archetypes:
|
||||||
|
|
Loading…
Reference in New Issue