FIX: Don't hardcode the path into translations.

This commit is contained in:
Guo Xiang Tan 2017-10-30 12:47:34 +08:00
parent 7ca08216bd
commit ddd07773da
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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: