mirror of
https://github.com/wintercms/winter.git
synced 2024-06-28 05:33:29 +02:00
Added a couple of missing translation strings. Fixed a translation typo for the request log empty button - It should be request_log not event_log.
This commit is contained in:
parent
96926256c2
commit
2c46036d2c
@ -47,6 +47,7 @@ return [
|
|||||||
'menu_label' => 'Dashboard',
|
'menu_label' => 'Dashboard',
|
||||||
'widget_label' => 'Widget',
|
'widget_label' => 'Widget',
|
||||||
'widget_width' => 'Width',
|
'widget_width' => 'Width',
|
||||||
|
'full_width' => 'full width',
|
||||||
'add_widget' => 'Add widget',
|
'add_widget' => 'Add widget',
|
||||||
'widget_inspector_title' => 'Widget configuration',
|
'widget_inspector_title' => 'Widget configuration',
|
||||||
'widget_inspector_description' => 'Configure the report widget',
|
'widget_inspector_description' => 'Configure the report widget',
|
||||||
@ -163,6 +164,7 @@ return [
|
|||||||
'select' => 'Select',
|
'select' => 'Select',
|
||||||
'select_all' => 'all',
|
'select_all' => 'all',
|
||||||
'select_none' => 'none',
|
'select_none' => 'none',
|
||||||
|
'select_placeholder' => 'please select',
|
||||||
'insert_row' => 'Insert Row',
|
'insert_row' => 'Insert Row',
|
||||||
'delete_row' => 'Delete Row'
|
'delete_row' => 'Delete Row'
|
||||||
],
|
],
|
||||||
|
@ -117,7 +117,7 @@ class ReportContainer extends WidgetBase
|
|||||||
{
|
{
|
||||||
$sizes = [];
|
$sizes = [];
|
||||||
for ($i = 1; $i <= 10; $i++)
|
for ($i = 1; $i <= 10; $i++)
|
||||||
$sizes[$i] = $i < 10 ? $i : $i.' (full width)';
|
$sizes[$i] = $i < 10 ? $i : $i.' (' . Lang::get('backend::lang.dashboard.full_width') . ')';
|
||||||
|
|
||||||
$this->vars['sizes'] = $sizes;
|
$this->vars['sizes'] = $sizes;
|
||||||
$this->vars['widgets'] = WidgetManager::instance()->listReportWidgets();
|
$this->vars['widgets'] = WidgetManager::instance()->listReportWidgets();
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
<div class="modal-body">
|
<div class="modal-body">
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label><?= e(trans('backend::lang.dashboard.widget_label')) ?></label>
|
<label><?= e(trans('backend::lang.dashboard.widget_label')) ?></label>
|
||||||
<select class="form-control custom-select" name="className" data-placeholder="please select">
|
<select class="form-control custom-select" name="className" data-placeholder="<?= e(trans('backend::lang.form.select_placeholder')) ?>">
|
||||||
<option></option>
|
<option></option>
|
||||||
<?php foreach ($widgets as $className => $widgetInfo):?>
|
<?php foreach ($widgets as $className => $widgetInfo):?>
|
||||||
<option value="<?= e($className) ?>"><?= isset($widgetInfo['label']) ? e(trans($widgetInfo['label'])) : $className ?></option>
|
<option value="<?= e($className) ?>"><?= isset($widgetInfo['label']) ? e(trans($widgetInfo['label'])) : $className ?></option>
|
||||||
|
@ -45,7 +45,7 @@ class RequestLogs extends Controller
|
|||||||
public function onEmptyLog()
|
public function onEmptyLog()
|
||||||
{
|
{
|
||||||
RequestLog::truncate();
|
RequestLog::truncate();
|
||||||
Flash::success(Lang::get('system::lang.event_log.empty_success'));
|
Flash::success(Lang::get('system::lang.request_log.empty_success'));
|
||||||
return $this->listRefresh();
|
return $this->listRefresh();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user