1
0
mirror of https://github.com/flarum/core.git synced 2025-07-20 16:21:18 +02:00

Fix translation keys

This commit is contained in:
Toby Zerner
2015-10-21 10:27:09 +10:30
parent b148c9d7da
commit c2f802878a
2 changed files with 3 additions and 3 deletions

View File

@@ -201,7 +201,7 @@ export default class IndexPage extends Page {
const sortOptions = {}; const sortOptions = {};
for (const i in app.cache.discussionList.sortMap()) { 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', items.add('sort',

View File

@@ -131,10 +131,10 @@ export default class LogInModal extends Modal {
onerror(error) { onerror(error) {
if (error.status === 401) { if (error.status === 401) {
if (error.response.emailConfirmationRequired) { 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; delete error.alert.props.type;
} else { } 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');
} }
} }