Skip to content

Commit

Permalink
Merge branch 'feature/ULM-401-add-translations' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
sander-beenen committed Dec 13, 2024
2 parents 2a03ad5 + 092409b commit 96c6d9e
Show file tree
Hide file tree
Showing 6 changed files with 35 additions and 6 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
.idea
/vendor/
4 changes: 2 additions & 2 deletions Plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ final class Plugin extends PluginBase
public function pluginDetails(): array
{
return [
'name' => 'Event Logs Extension',
'description' => 'Improves the Event Logs view.',
'name' => 'vdlp.eventlogsextension::lang.plugin.name',
'description' => 'vdlp.eventlogsextension::lang.plugin.description',
'author' => 'Van der Let & Partners',
'icon' => 'icon-leaf',
];
Expand Down
6 changes: 3 additions & 3 deletions classes/eventlisteners/backend/ListExtendColumns.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,15 @@ public function handle(Lists $widget): void
if ($widget->model instanceof EventLog) {
$widget->addColumns([
'created_at' => [
'label' => 'system::lang.event_log.created_at',
'label' => 'vdlp.eventlogsextension::lang.page.created_at',
'searchable' => true,
'width' => '180px',
'type' => 'datetime',
'format' => 'Y-m-d H:i:s'
'format' => 'Y-m-d H:i:s',
],
'level' => [
'label' => 'Level',
]
],
]);
}
}
Expand Down
2 changes: 1 addition & 1 deletion controllers/eventlogs/config_list.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# List Behavior Config
# ===================================

title: system::lang.event_log.menu_label
title: vdlp.eventlogsextension::lang.page.title
list: ~/modules/system/models/eventlog/columns.yaml
modelClass: System\Models\EventLog
recordUrl: system/eventlogs/preview/:id
Expand Down
14 changes: 14 additions & 0 deletions lang/en/lang.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?php

declare(strict_types=1);

return [
'plugin' => [
'name' => 'Event Log Extension',
'description' => 'Improves the Event Log view.',
],
'page' => [
'title' => 'Event Log',
'created_at' => 'Created At',
],
];
14 changes: 14 additions & 0 deletions lang/nl/lang.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?php

declare(strict_types=1);

return [
'plugin' => [
'name' => 'Gebeurtenislogboek Extensie',
'description' => 'Verbeterd het scherm van de gebeurtenislogboeken.',
],
'page' => [
'title' => 'Gebeurtenissenlogboek',
'created_at' => 'Aangemaakt op',
],
];

0 comments on commit 96c6d9e

Please sign in to comment.