mirror of
https://github.com/flarum/framework.git
synced 2025-01-19 18:12:59 +08:00
fix: hardcoded language strings in StatusWidget
(#3754)
This commit is contained in:
parent
cce6b74fce
commit
e7c55532a0
|
@ -39,7 +39,7 @@ export default class StatusWidget extends DashboardWidget {
|
|||
'schedule-status',
|
||||
[
|
||||
<span>
|
||||
<strong>Scheduler</strong>{' '}
|
||||
<strong>{app.translator.trans('core.admin.dashboard.status.headers.scheduler-status')}</strong>{' '}
|
||||
<LinkButton href="https://discuss.flarum.org/d/24118" external={true} target="_blank" icon="fas fa-info-circle" />
|
||||
</span>,
|
||||
<br />,
|
||||
|
@ -49,8 +49,16 @@ export default class StatusWidget extends DashboardWidget {
|
|||
);
|
||||
}
|
||||
|
||||
items.add('queue-driver', [<strong>Queue Driver</strong>, <br />, app.data.queueDriver], 60);
|
||||
items.add('session-driver', [<strong>Session Driver</strong>, <br />, app.data.sessionDriver], 50);
|
||||
items.add(
|
||||
'queue-driver',
|
||||
[<strong>{app.translator.trans('core.admin.dashboard.status.headers.queue-driver')}</strong>, <br />, app.data.queueDriver],
|
||||
60
|
||||
);
|
||||
items.add(
|
||||
'session-driver',
|
||||
[<strong>{app.translator.trans('core.admin.dashboard.status.headers.session-driver')}</strong>, <br />, app.data.sessionDriver],
|
||||
50
|
||||
);
|
||||
|
||||
return items;
|
||||
}
|
||||
|
|
|
@ -58,6 +58,10 @@ core:
|
|||
description: Your forum at a glance.
|
||||
io_error_message: "Could not write to filesystem. Check your filesystem permissions and try again. Or try running from the command line."
|
||||
status:
|
||||
headers:
|
||||
scheduler-status: Scheduler
|
||||
queue-driver: Queue Driver
|
||||
session-driver: Session Driver
|
||||
scheduler:
|
||||
active: Active
|
||||
inactive: Inactive
|
||||
|
@ -65,7 +69,7 @@ core:
|
|||
title: Dashboard
|
||||
tools_button: Tools
|
||||
|
||||
# These translations are usin in the debug warning widget.
|
||||
# These translations are used in the debug warning widget.
|
||||
debug-warning:
|
||||
detail: |
|
||||
When <code>debug</code> mode is active, Flarum will rebuild its <code>JavaScript</code> and <code>CSS</code> assets on every request, and could also potentially leak other information, such as database secrets, environment variables, etc.
|
||||
|
|
Loading…
Reference in New Issue
Block a user