You've already forked Atomcms-edit
Add Dutch translations for all missing translation keys and fix hardcoded English labels
This commit is contained in:
@@ -26,19 +26,22 @@ class CatalogEditorResource extends Resource
|
||||
protected static string|\UnitEnum|null $navigationGroup = 'Hotel';
|
||||
|
||||
#[\Override]
|
||||
protected static ?string $navigationLabel = 'Catalog Editor';
|
||||
public static function getNavigationLabel(): string
|
||||
{
|
||||
return __('Catalog Editor');
|
||||
}
|
||||
|
||||
#[\Override]
|
||||
public static function table(Table $table): Table
|
||||
{
|
||||
return $table
|
||||
->columns([
|
||||
TextColumn::make('id')->label('ID')->sortable(),
|
||||
TextColumn::make('caption')->label('Page Name')->searchable(),
|
||||
TextColumn::make('parent_id')->label('Parent ID'),
|
||||
TextColumn::make('order_num')->label('Order'),
|
||||
IconColumn::make('visible')->boolean()->label('Visible'),
|
||||
IconColumn::make('enabled')->boolean()->label('Enabled'),
|
||||
TextColumn::make('id')->label(__('ID'))->sortable(),
|
||||
TextColumn::make('caption')->label(__('Page Name'))->searchable(),
|
||||
TextColumn::make('parent_id')->label(__('Parent ID')),
|
||||
TextColumn::make('order_num')->label(__('Order')),
|
||||
IconColumn::make('visible')->boolean()->label(__('Visible')),
|
||||
IconColumn::make('enabled')->boolean()->label(__('Enabled')),
|
||||
])
|
||||
->recordActions([])
|
||||
->toolbarActions([]);
|
||||
@@ -50,53 +53,53 @@ class CatalogEditorResource extends Resource
|
||||
return $schema
|
||||
->components([
|
||||
TextInput::make('caption')
|
||||
->label('Page Name')
|
||||
->label(__('Page Name'))
|
||||
->required()
|
||||
->maxLength(128),
|
||||
|
||||
TextInput::make('caption_save')
|
||||
->label('Name TAG')
|
||||
->label(__('Name TAG'))
|
||||
->maxLength(25)
|
||||
->helperText('Lowercase letters only (a-z), no spaces.'),
|
||||
->helperText(__('Lowercase letters only (a-z), no spaces.')),
|
||||
|
||||
Select::make('parent_id')
|
||||
->label('Parent Page')
|
||||
->label(__('Parent Page'))
|
||||
->options(fn () => CatalogPage::pluck('caption', 'id')->toArray())
|
||||
->default(-1),
|
||||
|
||||
TextInput::make('order_num')
|
||||
->label('Order')
|
||||
->label(__('Order'))
|
||||
->numeric()
|
||||
->default(1),
|
||||
|
||||
TextInput::make('icon_image')
|
||||
->label('Icon Number')
|
||||
->label(__('Icon Number'))
|
||||
->numeric()
|
||||
->default(1),
|
||||
|
||||
TextInput::make('page_layout')
|
||||
->label('Page Layout')
|
||||
->label(__('Page Layout'))
|
||||
->default('default_3x3'),
|
||||
|
||||
TextInput::make('min_rank')
|
||||
->label('Min Rank')
|
||||
->label(__('Min Rank'))
|
||||
->numeric()
|
||||
->default(1),
|
||||
|
||||
Toggle::make('visible')
|
||||
->label('Visible')
|
||||
->label(__('Visible'))
|
||||
->default(true),
|
||||
|
||||
Toggle::make('enabled')
|
||||
->label('Enabled')
|
||||
->label(__('Enabled'))
|
||||
->default(true),
|
||||
|
||||
Toggle::make('club_only')
|
||||
->label('Club Only (HC)')
|
||||
->label(__('Club Only (HC)'))
|
||||
->default(false),
|
||||
|
||||
Toggle::make('vip_only')
|
||||
->label('VIP Only')
|
||||
->label(__('VIP Only'))
|
||||
->default(false),
|
||||
]);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user