include words to the translations

This commit is contained in:
Diego Najar 2021-09-24 19:54:36 +02:00
parent 9af6f81b2f
commit e584226387
3 changed files with 11 additions and 10 deletions

View file

@ -66,7 +66,7 @@
<div class="d-flex align-items-center mb-4">
<h2 class="m-0"><i class="bi bi-folder"></i><?php $L->p('Content') ?></h2>
<div class="ms-auto">
<a id="btnNew" class="btn btn-primary btn-sm" href="<?php echo HTML_PATH_ADMIN_ROOT . 'editor' ?>" role="button"><i class="bi bi-plus-circle"></i><?php $L->p('Add a new page') ?></a>
<a id="btnNew" class="btn btn-primary btn-sm" href="<?php echo HTML_PATH_ADMIN_ROOT . 'editor' ?>" role="button"><i class="bi bi-plus-circle"></i><?php $L->p('New content') ?></a>
</div>
</div>
@ -228,7 +228,7 @@ function table($type)
<!-- Tabs -->
<ul class="nav nav-tabs ps-3" role="tablist">
<li class="nav-item">
<a class="nav-link active" id="pages-tab" data-bs-toggle="tab" href="#pages" role="tab" aria-controls="pages" aria-selected="true"><?php $L->p('Pages') ?></a>
<a class="nav-link active" id="standard-tab" data-bs-toggle="tab" href="#standard" role="tab" aria-controls="standard" aria-selected="true"><?php $L->p('Standard') ?></a>
</li>
<li class="nav-item">
<a class="nav-link" id="static-tab" data-bs-toggle="tab" href="#static" role="tab" aria-controls="static" aria-selected="true"><?php $L->p('Static') ?></a>
@ -256,7 +256,7 @@ function table($type)
<div class="tab-content">
<!-- Tab pages -->
<div class="tab-pane show active" id="pages" role="tabpanel">
<div class="tab-pane show active" id="standard" role="tabpanel">
<?php table('published'); ?>
<!-- Paginator -->

View file

@ -393,5 +393,6 @@
"dashboard-plugins": "Dashboard plugins",
"powered-by-bludit": "Powered by <a href='https:\/\/www.bludit.com'>Bludit</a>",
"build-number": "Build Number",
"disk-usage": "Disk usage"
"disk-usage": "Disk usage",
"standard": "Standard"
}

View file

@ -45,10 +45,10 @@ class pluginVisitsStats extends Plugin {
$labels = "'" . implode("','", $days) . "'";
$seriesVisits = implode(',', $visits);
$seriesUnique = implode(',', $unique);
$seriesVisitors = implode(',', $unique);
$labelVisits = $L->g('Visits');
$labelUnique = $L->g('Unique');
$labelVisitors = $L->g('Visitors');
return <<<EOF
<div class="pluginVisitsStats mt-4 mb-4 pb-4 border-bottom">
@ -65,12 +65,12 @@ new Chart(ctx, {
datasets: [{
backgroundColor: 'rgb(13,110,253)',
borderColor: 'rgb(13,110,253)',
label: '$labelUnique',
data: [$seriesUnique]
label: '$labelVisitors',
data: [$seriesVisitors]
},
{
backgroundColor: 'rgb(61,139,253)',
borderColor: 'rgb(61,139,253)',
backgroundColor: 'rgb(255, 210, 7)',
borderColor: 'rgb(255, 210, 7)',
label: '$labelVisits',
data: [$seriesVisits]
}]