1
0
mirror of https://github.com/flarum/core.git synced 2025-08-02 14:37:49 +02:00

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
2 changed files with 16 additions and 4 deletions

View File

@@ -39,7 +39,7 @@ export default class StatusWidget extends DashboardWidget {
'schedule-status', 'schedule-status',
[ [
<span> <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" /> <LinkButton href="https://discuss.flarum.org/d/24118" external={true} target="_blank" icon="fas fa-info-circle" />
</span>, </span>,
<br />, <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(
items.add('session-driver', [<strong>Session Driver</strong>, <br />, app.data.sessionDriver], 50); '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; return items;
} }

View File

@@ -58,6 +58,10 @@ core:
description: Your forum at a glance. 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." io_error_message: "Could not write to filesystem. Check your filesystem permissions and try again. Or try running from the command line."
status: status:
headers:
scheduler-status: Scheduler
queue-driver: Queue Driver
session-driver: Session Driver
scheduler: scheduler:
active: Active active: Active
inactive: Inactive inactive: Inactive
@@ -65,7 +69,7 @@ core:
title: Dashboard title: Dashboard
tools_button: Tools tools_button: Tools
# These translations are usin in the debug warning widget. # These translations are used in the debug warning widget.
debug-warning: debug-warning:
detail: | 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. 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.