From c2f802878a660d9e7d06fb956c9fc04ffe4858f7 Mon Sep 17 00:00:00 2001 From: Toby Zerner Date: Wed, 21 Oct 2015 10:27:09 +1030 Subject: [PATCH] Fix translation keys --- js/forum/src/components/IndexPage.js | 2 +- js/forum/src/components/LogInModal.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/js/forum/src/components/IndexPage.js b/js/forum/src/components/IndexPage.js index ddbe6260a..b66942040 100644 --- a/js/forum/src/components/IndexPage.js +++ b/js/forum/src/components/IndexPage.js @@ -201,7 +201,7 @@ export default class IndexPage extends Page { const sortOptions = {}; for (const i in app.cache.discussionList.sortMap()) { - sortOptions[i] = app.translator.trans('core.forum.index.sort_' + i + '_button'); + sortOptions[i] = app.translator.trans('core.forum.index_sort.' + i + '_button'); } items.add('sort', diff --git a/js/forum/src/components/LogInModal.js b/js/forum/src/components/LogInModal.js index 33c9f36ab..f3734bbe6 100644 --- a/js/forum/src/components/LogInModal.js +++ b/js/forum/src/components/LogInModal.js @@ -131,10 +131,10 @@ export default class LogInModal extends Modal { onerror(error) { if (error.status === 401) { if (error.response.emailConfirmationRequired) { - error.alert.props.children = app.translator.trans('core.forum.log_in_confirmation_required_message', {email: error.response.emailConfirmationRequired}); + error.alert.props.children = app.translator.trans('core.forum.log_in.confirmation_required_message', {email: error.response.emailConfirmationRequired}); delete error.alert.props.type; } else { - error.alert.props.children = app.translator.trans('core.forum.log_in_invalid_login_message'); + error.alert.props.children = app.translator.trans('core.forum.log_in.invalid_login_message'); } }