Skip to content

Commit 82695a6

Browse files
committed
Fix search translations
1 parent c968a93 commit 82695a6

File tree

3 files changed

+12
-5
lines changed

3 files changed

+12
-5
lines changed

resources/lang/en/filament-flexible-content-block-pages.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,10 @@
2323
'page_referenced_by_menu_item' => '":page" (referenced by :menu in :menu_item)',
2424
'bulk_delete_successful' => ':count items deleted.',
2525
],
26-
26+
'search' => [
27+
'intro_lbl' => 'Intro',
28+
'is_published_lbl' => 'Is published?',
29+
],
2730
],
2831
'redirects' => [
2932
'redirects_lbl' => 'redirect',

resources/lang/nl/filament-flexible-content-block-pages.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@
2323
'page_referenced_by_menu_item' => '":page" (gerefereerd door :menu in :menu_item)',
2424
'bulk_delete_successful' => ':count items verwijderd.',
2525
],
26+
'search' => [
27+
'intro_lbl' => 'Introductie',
28+
'is_published_lbl' => 'Is gepubliceerd?',
29+
],
2630
],
2731
'redirects' => [
2832
'redirects_lbl' => 'redirect',

src/Resources/PageResource.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -263,14 +263,14 @@ public static function getGlobalSearchResultTitle(Model $record): string
263263
public static function getGlobalSearchResultDetails(Model $record): array
264264
{
265265
/** @var Page $record */
266-
$published = flexiblePagesTrans('columns.is_published_state_unpublished');
266+
$published = trans('filament-flexible-content-blocks::filament-flexible-content-blocks.is_published_state_unpublished');
267267
if ($record->isPublished()) {
268-
$published = flexiblePagesTrans('columns.is_published_state_published');
268+
$published = trans('filament-flexible-content-blocks::filament-flexible-content-blocks.columns.is_published_state_published');
269269
}
270270

271271
return [
272-
flexiblePagesTrans('form_component.intro_lbl') => Str::limit(strip_tags($record->intro)),
273-
flexiblePagesTrans('columns.is_published') => $published,
272+
flexiblePagesTrans('pages.search.intro_lbl') => Str::limit(strip_tags($record->intro)),
273+
flexiblePagesTrans('pages.search.is_published') => $published,
274274
];
275275
}
276276
}

0 commit comments

Comments
 (0)