Add Turkmen translations for edit and delete actions; update Pilgrim model with property annotations, and enhance PilgrimsRelationManager with localized table heading and model label.
This commit is contained in:
@@ -22,6 +22,16 @@ class PilgrimsRelationManager extends RelationManager
|
||||
{
|
||||
protected static string $relationship = 'pilgrims';
|
||||
|
||||
public function getTableHeading(): string
|
||||
{
|
||||
return 'Zyýaratçylar';
|
||||
}
|
||||
|
||||
public static function getModelLabel(): string
|
||||
{
|
||||
return 'Zyýaratçy';
|
||||
}
|
||||
|
||||
public function form(Schema $schema): Schema
|
||||
{
|
||||
return $schema
|
||||
|
||||
@@ -20,16 +20,12 @@ class PilgrimResource extends Resource
|
||||
{
|
||||
protected static ?string $model = Pilgrim::class;
|
||||
|
||||
protected static ?string $navigationLabel = 'Zyýaratçylar';
|
||||
|
||||
protected static ?string $pluralLabel = 'Zyýaratçylar';
|
||||
|
||||
protected static ?int $navigationSort = 2;
|
||||
|
||||
public static function getNavigationIcon(): string | BackedEnum | Htmlable | null
|
||||
{
|
||||
return 'icon-pilgrim-man';
|
||||
}
|
||||
protected static ?string $navigationLabel = 'Zyýaratçylar';
|
||||
protected static string | BackedEnum | null $navigationIcon = 'icon-pilgrim-man';
|
||||
|
||||
protected static ?string $modelLabel = 'Zyýaratçy';
|
||||
protected static ?string $pluralLabel = 'Zyýaratçylar';
|
||||
|
||||
public static function form(Schema $schema): Schema
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user