mirror of
https://github.com/flarum/framework.git
synced 2025-01-19 18:12:59 +08:00
Fix translation keys
This commit is contained in:
parent
c5f9124e6c
commit
3894e71f15
|
@ -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',
|
||||
|
|
|
@ -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');
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user