From 5dadb073ab6c34bf65baa75accadadbd2b057ba3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Szab=C3=B3=20Gerg=C5=91?= Date: Thu, 7 Sep 2023 15:01:12 +0200 Subject: [PATCH 1/2] Create Hungarian language --- resources/lang/hu/filament-firewall.php | 27 +++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 resources/lang/hu/filament-firewall.php diff --git a/resources/lang/hu/filament-firewall.php b/resources/lang/hu/filament-firewall.php new file mode 100644 index 0000000..7a981ba --- /dev/null +++ b/resources/lang/hu/filament-firewall.php @@ -0,0 +1,27 @@ + 'IP tűzfal', + 'filament.resource.ip.getNavigationGroup' => 'Rendszer', + 'filament.resource.ip.label' => 'IP cím', + 'filament.resource.ip.modalLabel' => 'IP cím', + 'filament.resource.ip.pluralLabel' => 'IP cím', + 'filament.resource.ip.pluralModelLabel' => 'IP tűzfal', + + 'table.column.ip' => 'IP cím', + 'table.column.prefix_size' => 'Előtag', + 'table.column.blocked' => 'Blokkolva?', + 'table.column.is_allow' => 'Művelet', + + 'form.field.ip' => 'IP cím', + 'form.field.prefix_size' => 'Előtag', + 'form.field.blocked' => 'Blokkolva?', + 'form.field.is_allow' => 'Művelet', + + 'action.addMyIp' => 'IP címem hozzáadása', + 'action.addMyIp.alreadyAdded' => 'Sikeresen hozzáadva.', + 'action.fillMyIp' => 'IP címem kitöltése', + + 'labels.allow' => 'Engedélyezés', + 'labels.deny' => 'Tiltás', +]; From 3e0919ee246a0ac1fe0199839c036a8bdd89dfc5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Szab=C3=B3=20Gerg=C5=91?= Date: Thu, 7 Sep 2023 15:12:02 +0200 Subject: [PATCH 2/2] Translate the date columns --- resources/lang/en/filament-firewall.php | 2 ++ resources/lang/hu/filament-firewall.php | 2 ++ src/Filament/Resources/FirewallIpResource.php | 2 ++ 3 files changed, 6 insertions(+) diff --git a/resources/lang/en/filament-firewall.php b/resources/lang/en/filament-firewall.php index cab17d2..d64e4ec 100644 --- a/resources/lang/en/filament-firewall.php +++ b/resources/lang/en/filament-firewall.php @@ -13,6 +13,8 @@ 'table.column.prefix_size' => 'Prefix', 'table.column.blocked' => 'Blocked?', 'table.column.is_allow' => 'Allow / Deny', + 'table.column.created_at' => 'Created at', + 'table.column.updated_at' => 'Updated at', 'form.field.ip' => 'IP', 'form.field.prefix_size' => 'Prefix', diff --git a/resources/lang/hu/filament-firewall.php b/resources/lang/hu/filament-firewall.php index 7a981ba..bdcdff1 100644 --- a/resources/lang/hu/filament-firewall.php +++ b/resources/lang/hu/filament-firewall.php @@ -12,6 +12,8 @@ 'table.column.prefix_size' => 'Előtag', 'table.column.blocked' => 'Blokkolva?', 'table.column.is_allow' => 'Művelet', + 'table.column.created_at' => 'Létrehozva', + 'table.column.updated_at' => 'Módosítva', 'form.field.ip' => 'IP cím', 'form.field.prefix_size' => 'Előtag', diff --git a/src/Filament/Resources/FirewallIpResource.php b/src/Filament/Resources/FirewallIpResource.php index fd91b19..b186c8d 100644 --- a/src/Filament/Resources/FirewallIpResource.php +++ b/src/Filament/Resources/FirewallIpResource.php @@ -71,8 +71,10 @@ public static function table(Table $table): Table ->trueIcon('heroicon-o-x-circle') ->trueColor('danger'), Tables\Columns\TextColumn::make('created_at') + ->label(__('filament-firewall::filament-firewall.table.column.created_at')) ->sortable(), Tables\Columns\TextColumn::make('updated_at') + ->label(__('filament-firewall::filament-firewall.table.column.updated_at')) ->sortable(), ]) ->filters([