Skip to content

Commit

Permalink
Use I18n::translate instead t() helper
Browse files Browse the repository at this point in the history
  • Loading branch information
distantnative committed Nov 23, 2024
1 parent c2831cd commit 59e3045
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/Retour/Panel/View.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

use Kirby\Retour\Retour;
use Kirby\Retour\Timespan;
use Kirby\Toolkit\I18n;

/**
* Handles (Fiber) Panel view requests
Expand Down Expand Up @@ -37,7 +38,7 @@ public static function props(string $tab): array
'tabs' => [
[
'name' => 'redirects',
'label' => t('retour.redirects'),
'label' => I18n::translate('retour.redirects'),
'badge' => count($redirects),
'link' => 'retour/redirects'
]
Expand All @@ -56,13 +57,13 @@ public static function props(string $tab): array
// add additional tabs
$props['tabs'][] = [
'name' => 'failures',
'label' => t('retour.failures'),
'label' => I18n::translate('retour.failures'),
'badge' => count($failures),
'link' => 'retour/failures'
];
$props['tabs'][] = [
'name' => 'system',
'label' => t('retour.system'),
'label' => I18n::translate('retour.system'),
'badge' => false,
'link' => 'retour/system'
];
Expand Down Expand Up @@ -100,10 +101,10 @@ public static function tab(string $tab): array
{
return [
'component' => 'k-retour-' . $tab . '-view',
'title' => t('view.retour'),
'title' => I18n::translate('view.retour'),
'breadcrumb' => [
[
'label' => t('retour.' . $tab),
'label' => I18n::translate('retour.' . $tab),
'link' => 'retour/' . $tab,
]
],
Expand Down

0 comments on commit 59e3045

Please sign in to comment.