fix: hardcoded language strings in StatusWidget (#3754)

This commit is contained in:
Robert Korulczyk 2023-03-12 10:37:57 +01:00 committed by GitHub
parent cce6b74fce
commit e7c55532a0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 16 additions and 4 deletions

View File

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

View File

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