From 34e78c5e43810871a193431380758ed668fcad5d Mon Sep 17 00:00:00 2001 From: Nurmuhammet Allanov Date: Sun, 31 Aug 2025 14:18:33 +0500 Subject: [PATCH] Add Turkmen translations for edit and delete actions; update Pilgrim model with property annotations, and enhance PilgrimsRelationManager with localized table heading and model label. --- .../PilgrimsRelationManager.php | 10 +++ .../Resources/Pilgrims/PilgrimResource.php | 14 ++-- app/Models/Pilgrim.php | 12 +++ config/boost.php | 32 ++++++++ lang/tk.json | 4 +- lang/vendor/filament-actions/tk/associate.php | 45 +++++++++++ lang/vendor/filament-actions/tk/attach.php | 45 +++++++++++ lang/vendor/filament-actions/tk/create.php | 37 +++++++++ lang/vendor/filament-actions/tk/delete.php | 72 +++++++++++++++++ lang/vendor/filament-actions/tk/detach.php | 61 ++++++++++++++ .../vendor/filament-actions/tk/dissociate.php | 61 ++++++++++++++ lang/vendor/filament-actions/tk/edit.php | 33 ++++++++ lang/vendor/filament-actions/tk/export.php | 77 ++++++++++++++++++ .../filament-actions/tk/force-delete.php | 73 +++++++++++++++++ lang/vendor/filament-actions/tk/group.php | 9 +++ lang/vendor/filament-actions/tk/import.php | 81 +++++++++++++++++++ lang/vendor/filament-actions/tk/modal.php | 23 ++++++ .../filament-actions/tk/notifications.php | 10 +++ lang/vendor/filament-actions/tk/replicate.php | 33 ++++++++ lang/vendor/filament-actions/tk/restore.php | 73 +++++++++++++++++ lang/vendor/filament-actions/tk/view.php | 25 ++++++ 21 files changed, 820 insertions(+), 10 deletions(-) create mode 100644 config/boost.php create mode 100644 lang/vendor/filament-actions/tk/associate.php create mode 100644 lang/vendor/filament-actions/tk/attach.php create mode 100644 lang/vendor/filament-actions/tk/create.php create mode 100644 lang/vendor/filament-actions/tk/delete.php create mode 100644 lang/vendor/filament-actions/tk/detach.php create mode 100644 lang/vendor/filament-actions/tk/dissociate.php create mode 100644 lang/vendor/filament-actions/tk/edit.php create mode 100644 lang/vendor/filament-actions/tk/export.php create mode 100644 lang/vendor/filament-actions/tk/force-delete.php create mode 100644 lang/vendor/filament-actions/tk/group.php create mode 100644 lang/vendor/filament-actions/tk/import.php create mode 100644 lang/vendor/filament-actions/tk/modal.php create mode 100644 lang/vendor/filament-actions/tk/notifications.php create mode 100644 lang/vendor/filament-actions/tk/replicate.php create mode 100644 lang/vendor/filament-actions/tk/restore.php create mode 100644 lang/vendor/filament-actions/tk/view.php diff --git a/app/Filament/Resources/Groups/RelationManagers/PilgrimsRelationManager.php b/app/Filament/Resources/Groups/RelationManagers/PilgrimsRelationManager.php index 503d00e..5c40929 100644 --- a/app/Filament/Resources/Groups/RelationManagers/PilgrimsRelationManager.php +++ b/app/Filament/Resources/Groups/RelationManagers/PilgrimsRelationManager.php @@ -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 diff --git a/app/Filament/Resources/Pilgrims/PilgrimResource.php b/app/Filament/Resources/Pilgrims/PilgrimResource.php index 55524df..4d6483a 100644 --- a/app/Filament/Resources/Pilgrims/PilgrimResource.php +++ b/app/Filament/Resources/Pilgrims/PilgrimResource.php @@ -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 { diff --git a/app/Models/Pilgrim.php b/app/Models/Pilgrim.php index 15941ce..26f1cc1 100644 --- a/app/Models/Pilgrim.php +++ b/app/Models/Pilgrim.php @@ -7,6 +7,18 @@ use Illuminate\Database\Eloquent\Model; use Illuminate\Database\Eloquent\Relations\BelongsTo; use Illuminate\Database\Eloquent\Relations\HasMany; +/** + * @property int $id + * @property int $group_id + * @property string $first_name + * @property string $last_name + * @property date $birthdate + * @property string $image + * @property string $local_passport + * @property string $international_passport + * @property Carbon $created_at + * @property Carbon $updated_at + */ class Pilgrim extends Model { use HasFactory; diff --git a/config/boost.php b/config/boost.php new file mode 100644 index 0000000..d99e4c6 --- /dev/null +++ b/config/boost.php @@ -0,0 +1,32 @@ + env('BOOST_ENABLED', true), + + /* + |-------------------------------------------------------------------------- + | Boost Browser Logs Watcher + |-------------------------------------------------------------------------- + | + | The following option may be used to enable or disable the browser logs + | watcher feature within Laravel Boost. The log watcher will read any + | errors within the browser's console to give Boost better context. + */ + + 'browser_logs_watcher' => env('BOOST_BROWSER_LOGS_WATCHER', true), + +]; diff --git a/lang/tk.json b/lang/tk.json index 6de394e..2c0acf8 100644 --- a/lang/tk.json +++ b/lang/tk.json @@ -9,5 +9,7 @@ "Dashboard": "Dolandyryş paneli", "You are logged in!": "Siz içerde!", "Name": "Ady", - "Logout": "Çykyş" + "Logout": "Çykyş", + "Edit": "Üýtget", + "Delete": "Poz" } diff --git a/lang/vendor/filament-actions/tk/associate.php b/lang/vendor/filament-actions/tk/associate.php new file mode 100644 index 0000000..b234e8c --- /dev/null +++ b/lang/vendor/filament-actions/tk/associate.php @@ -0,0 +1,45 @@ + [ + + 'label' => 'Goş', + + 'modal' => [ + + 'heading' => ':label goş', + + 'fields' => [ + + 'record_id' => [ + 'label' => 'Kayıt', + ], + + ], + + 'actions' => [ + + 'associate' => [ + 'label' => 'Goş', + ], + + 'associate_another' => [ + 'label' => 'Goş we ýene goş', + ], + + ], + + ], + + 'notifications' => [ + + 'associated' => [ + 'title' => 'Goşyldy', + ], + + ], + + ], + +]; diff --git a/lang/vendor/filament-actions/tk/attach.php b/lang/vendor/filament-actions/tk/attach.php new file mode 100644 index 0000000..68d8f5e --- /dev/null +++ b/lang/vendor/filament-actions/tk/attach.php @@ -0,0 +1,45 @@ + [ + + 'label' => 'Goş', + + 'modal' => [ + + 'heading' => ':label goş', + + 'fields' => [ + + 'record_id' => [ + 'label' => 'Kayıt', + ], + + ], + + 'actions' => [ + + 'attach' => [ + 'label' => 'İliştir', + ], + + 'attach_another' => [ + 'label' => 'İliştir ve başka bir taneye başla', + ], + + ], + + ], + + 'notifications' => [ + + 'attached' => [ + 'title' => 'İliştirildi', + ], + + ], + + ], + +]; diff --git a/lang/vendor/filament-actions/tk/create.php b/lang/vendor/filament-actions/tk/create.php new file mode 100644 index 0000000..1fe0244 --- /dev/null +++ b/lang/vendor/filament-actions/tk/create.php @@ -0,0 +1,37 @@ + [ + + 'label' => ':label döret', + + 'modal' => [ + + 'heading' => ':label döret', + + 'actions' => [ + + 'create' => [ + 'label' => 'Döret', + ], + + 'create_another' => [ + 'label' => 'Döret we täzesini döret', + ], + + ], + + ], + + 'notifications' => [ + + 'created' => [ + 'title' => 'Döredildi', + ], + + ], + + ], + +]; diff --git a/lang/vendor/filament-actions/tk/delete.php b/lang/vendor/filament-actions/tk/delete.php new file mode 100644 index 0000000..95ce9e4 --- /dev/null +++ b/lang/vendor/filament-actions/tk/delete.php @@ -0,0 +1,72 @@ + [ + + 'label' => 'Poz', + + 'modal' => [ + + 'heading' => ':label Poz', + + 'actions' => [ + + 'delete' => [ + 'label' => 'Poz', + ], + + ], + + ], + + 'notifications' => [ + + 'deleted' => [ + 'title' => 'Pozyldy', + ], + + ], + + ], + + 'multiple' => [ + + 'label' => 'Saýlananlary poz', + + 'modal' => [ + + 'heading' => 'Saýlananlary poz', // When ':label' is used here, the meaning is distorted. + + 'actions' => [ + + 'delete' => [ + 'label' => 'Poz', + ], + + ], + + ], + + 'notifications' => [ + + 'deleted' => [ + 'title' => 'Pozyldy', + ], + + 'deleted_partial' => [ + 'title' => ':total kayıttan :count kayıt pozydy', + 'missing_authorization_failure_message' => ':count kayıt silmek için gereken izniniz yok.', + 'missing_processing_failure_message' => ':count kayıt silinemedi.', + ], + + 'deleted_none' => [ + 'title' => 'Kayıtlar pozynyldy', + 'missing_authorization_failure_message' => ':count kayıt silmek için gereken izniniz yok.', + 'missing_processing_failure_message' => ':count kayıt silinemedi.', + ], + ], + + ], + +]; diff --git a/lang/vendor/filament-actions/tk/detach.php b/lang/vendor/filament-actions/tk/detach.php new file mode 100644 index 0000000..bc4ccbe --- /dev/null +++ b/lang/vendor/filament-actions/tk/detach.php @@ -0,0 +1,61 @@ + [ + + 'label' => 'Ayır', + + 'modal' => [ + + 'heading' => ':label ayır', + + 'actions' => [ + + 'detach' => [ + 'label' => 'Ayır', + ], + + ], + + ], + + 'notifications' => [ + + 'detached' => [ + 'title' => 'Ayrıldı', + ], + + ], + + ], + + 'multiple' => [ + + 'label' => 'Seçiliyi ayır', + + 'modal' => [ + + 'heading' => ':label seçiliyi ayır ', + + 'actions' => [ + + 'detach' => [ + 'label' => 'Seçiliyi ayır', + ], + + ], + + ], + + 'notifications' => [ + + 'detached' => [ + 'title' => 'Ayrıldı', + ], + + ], + + ], + +]; diff --git a/lang/vendor/filament-actions/tk/dissociate.php b/lang/vendor/filament-actions/tk/dissociate.php new file mode 100644 index 0000000..15a848c --- /dev/null +++ b/lang/vendor/filament-actions/tk/dissociate.php @@ -0,0 +1,61 @@ + [ + + 'label' => 'Ayrıştır', + + 'modal' => [ + + 'heading' => ':label ayrıştır', + + 'actions' => [ + + 'dissociate' => [ + 'label' => 'Ayrıştır', + ], + + ], + + ], + + 'notifications' => [ + + 'dissociated' => [ + 'title' => 'Ayrıştırıldı', + ], + + ], + + ], + + 'multiple' => [ + + 'label' => 'Seçiliyi ayrıştır', + + 'modal' => [ + + 'heading' => ':label seçiliyi ayrıştır', + + 'actions' => [ + + 'dissociate' => [ + 'label' => 'Seçiliyi ayrıştır', + ], + + ], + + ], + + 'notifications' => [ + + 'dissociated' => [ + 'title' => 'Ayrıştırıldı', + ], + + ], + + ], + +]; diff --git a/lang/vendor/filament-actions/tk/edit.php b/lang/vendor/filament-actions/tk/edit.php new file mode 100644 index 0000000..d2132cb --- /dev/null +++ b/lang/vendor/filament-actions/tk/edit.php @@ -0,0 +1,33 @@ + [ + + 'label' => 'Üýtget', + + 'modal' => [ + + 'heading' => ':label üýtget', + + 'actions' => [ + + 'save' => [ + 'label' => 'Kaydet', + ], + + ], + + ], + + 'notifications' => [ + + 'saved' => [ + 'title' => 'Üýtgedildi', + ], + + ], + + ], + +]; diff --git a/lang/vendor/filament-actions/tk/export.php b/lang/vendor/filament-actions/tk/export.php new file mode 100644 index 0000000..9dbadbd --- /dev/null +++ b/lang/vendor/filament-actions/tk/export.php @@ -0,0 +1,77 @@ + 'Dışa Aktar :label', + + 'modal' => [ + + 'heading' => 'Dışa Aktar :label', + + 'form' => [ + + 'columns' => [ + + 'label' => 'Sütunlar', + + 'form' => [ + + 'is_enabled' => [ + 'label' => ':column etkin', + ], + + 'label' => [ + 'label' => ':column etiketi', + ], + + ], + + ], + + ], + + 'actions' => [ + + 'export' => [ + 'label' => 'Dışa Aktar', + ], + + ], + + ], + + 'notifications' => [ + + 'completed' => [ + + 'title' => 'Dışa Aktarım Tamamlandı', + + 'actions' => [ + + 'download_csv' => [ + 'label' => '.csv Olarak İndir', + ], + + 'download_xlsx' => [ + 'label' => '.xlsx Olarak İndir', + ], + + ], + + ], + + 'max_rows' => [ + 'title' => 'Maksimum Satır Sayısı Aşıldı', + 'body' => 'Birden fazla satırı dışa aktaramazsınız.|:count satırı dışa aktaramazsınız.', + ], + + 'started' => [ + 'title' => 'Dışa Aktarım Başladı', + 'body' => 'Dışa aktarım başladı ve 1 satır arka planda işlenecek.|Dışa aktarım başladı ve :count satır arka planda işlenecek.', + ], + + ], + + 'file_name' => 'export-:export_id-:model', + +]; diff --git a/lang/vendor/filament-actions/tk/force-delete.php b/lang/vendor/filament-actions/tk/force-delete.php new file mode 100644 index 0000000..df92215 --- /dev/null +++ b/lang/vendor/filament-actions/tk/force-delete.php @@ -0,0 +1,73 @@ + [ + + 'label' => 'Kalıcı olarak sil', + + 'modal' => [ + + 'heading' => ':label kalıcı olarak sil', + + 'actions' => [ + + 'delete' => [ + 'label' => 'Kalıcı olarak sil', + ], + + ], + + ], + + 'notifications' => [ + + 'deleted' => [ + 'title' => 'Kayıt kalıcı olarak silindi', + ], + + ], + + ], + + 'multiple' => [ + + 'label' => 'Seçiliyi kalıcı olarak sil', + + 'modal' => [ + + 'heading' => ':label seçiliyi kalıcı olarak sil', + + 'actions' => [ + + 'delete' => [ + 'label' => 'Kalıcı olarak sil', + ], + + ], + + ], + + 'notifications' => [ + + 'deleted' => [ + 'title' => 'Kayıtlar kalıcı olarak silindi', + ], + + 'deleted_partial' => [ + 'title' => ':total kayıttan :count kayıt kalıcı olarak silindi', + 'missing_authorization_failure_message' => ':count kayıtı kalıcı olarak silmek için gereken izniniz yok.', + 'missing_processing_failure_message' => ':count kayıt kalıcı olarak silinemedi.', + ], + + 'deleted_none' => [ + 'title' => 'Kayıtlar kalıcı olarak silinemedi', + 'missing_authorization_failure_message' => ':count kayıtı kalıcı olarak silmek için gereken izniniz yok.', + 'missing_processing_failure_message' => ':count kayıt kalıcı olarak silinemedi.', + ], + + ], + + ], + +]; diff --git a/lang/vendor/filament-actions/tk/group.php b/lang/vendor/filament-actions/tk/group.php new file mode 100644 index 0000000..5b2f30f --- /dev/null +++ b/lang/vendor/filament-actions/tk/group.php @@ -0,0 +1,9 @@ + [ + 'label' => 'Eylemler', + ], + +]; diff --git a/lang/vendor/filament-actions/tk/import.php b/lang/vendor/filament-actions/tk/import.php new file mode 100644 index 0000000..c0c45c5 --- /dev/null +++ b/lang/vendor/filament-actions/tk/import.php @@ -0,0 +1,81 @@ + 'İçe Aktar: :label', + + 'modal' => [ + + 'heading' => 'İçe Aktar: :label', + + 'form' => [ + + 'file' => [ + 'label' => 'Dosya', + 'placeholder' => 'Bir CSV dosyası seçin', + 'rules' => [ + 'duplicate_columns' => '{0} Dosya birden fazla boş sütun başlığı içeremez.|{1,*} Dosya tekrar eden sütun başlığı içeremez: :columns.', + ], + ], + + 'columns' => [ + 'label' => 'Sütunlar', + 'placeholder' => 'Sütunları eşleştirin', + ], + + ], + + 'actions' => [ + + 'download_example' => [ + 'label' => 'Örnek CSV Dosyasını İndir', + ], + + 'import' => [ + 'label' => 'İçe Aktar', + ], + + ], + + ], + + 'notifications' => [ + + 'completed' => [ + + 'title' => 'İçe Aktarım Tamamlandı', + + 'actions' => [ + + 'download_failed_rows_csv' => [ + 'label' => 'Başarısız satır hakkında bilgileri indir|Başarısız satırlar hakkında bilgileri indir', + ], + + ], + + ], + + 'max_rows' => [ + 'title' => 'Yüklenen Dosya Çok Büyük', + 'body' => 'Aynı anda 1\'den fazla satır içeren dosyaları içe aktaramazsınız.|Aynı anda :count\'den fazla satır içeren dosyaları içe aktaramazsınız.', + ], + + 'started' => [ + 'title' => 'İçe Aktarım Başladı', + 'body' => 'İçe aktarım başladı ve 1 satır arka planda işlenecek.|İçe aktarım başladı ve :count satır arka planda işlenecek.', + ], + + ], + + 'example_csv' => [ + 'file_name' => ':importer-example', + ], + + 'failure_csv' => [ + 'file_name' => 'import-:import_id-:csv_name-failed-rows', + 'error_header' => 'error', + 'system_error' => 'Sistem Hatası', + 'column_mapping_required_for_new_record' => ':attribute sütunu dosyadaki bir sütun ile eşleştirilmedi, fakat bu sütun yeni kayıt oluşturmak için gerekli bir sütun.', + ], + +]; diff --git a/lang/vendor/filament-actions/tk/modal.php b/lang/vendor/filament-actions/tk/modal.php new file mode 100644 index 0000000..6a87c47 --- /dev/null +++ b/lang/vendor/filament-actions/tk/modal.php @@ -0,0 +1,23 @@ + 'Bunu yapmak istediğinizden emin misiniz?', + + 'actions' => [ + + 'cancel' => [ + 'label' => 'İptal', + ], + + 'confirm' => [ + 'label' => 'Onayla', + ], + + 'submit' => [ + 'label' => 'Gönder', + ], + + ], + +]; diff --git a/lang/vendor/filament-actions/tk/notifications.php b/lang/vendor/filament-actions/tk/notifications.php new file mode 100644 index 0000000..1c27f99 --- /dev/null +++ b/lang/vendor/filament-actions/tk/notifications.php @@ -0,0 +1,10 @@ + [ + 'title' => 'Çok Fazla Deneme Yapıldı', + 'body' => 'Çok fazla deneme yapıldı, lütfen :seconds saniye sonra tekrar deneyin.', + ], + +]; diff --git a/lang/vendor/filament-actions/tk/replicate.php b/lang/vendor/filament-actions/tk/replicate.php new file mode 100644 index 0000000..f3f6985 --- /dev/null +++ b/lang/vendor/filament-actions/tk/replicate.php @@ -0,0 +1,33 @@ + [ + + 'label' => 'Çoğalt', + + 'modal' => [ + + 'heading' => ':label çoğalt', + + 'actions' => [ + + 'replicate' => [ + 'label' => 'Çoğalt', + ], + + ], + + ], + + 'notifications' => [ + + 'replicated' => [ + 'title' => 'Kayıt çoğaltıldı', + ], + + ], + + ], + +]; diff --git a/lang/vendor/filament-actions/tk/restore.php b/lang/vendor/filament-actions/tk/restore.php new file mode 100644 index 0000000..0ef1d3e --- /dev/null +++ b/lang/vendor/filament-actions/tk/restore.php @@ -0,0 +1,73 @@ + [ + + 'label' => 'Dikelt', + + 'modal' => [ + + 'heading' => ':label dikelt', + + 'actions' => [ + + 'restore' => [ + 'label' => 'Dikelt', + ], + + ], + + ], + + 'notifications' => [ + + 'restored' => [ + 'title' => 'Ýazgy dikeldildi', + ], + + ], + + ], + + 'multiple' => [ + + 'label' => 'Saýlananlary dikelt', + + 'modal' => [ + + 'heading' => 'Saýlanan :label dikelt', + + 'actions' => [ + + 'restore' => [ + 'label' => 'Dikelt', + ], + + ], + + ], + + 'notifications' => [ + + 'restored' => [ + 'title' => 'Ýazgylar dikeldildi', + ], + + 'restored_partial' => [ + 'title' => ':total ýazgydan :count ýazgy dikeldildi', + 'missing_authorization_failure_message' => ':count ýazgyny dikeltmek üçin rugsadyňyz ýok.', + 'missing_processing_failure_message' => ':count dikeldilmedi.', + ], + + 'restored_none' => [ + 'title' => 'Ýazgylar dikeldilmedi', + 'missing_authorization_failure_message' => ':count ýazgyny dikeltmek üçin rugsadyňyz ýok.', + 'missing_processing_failure_message' => ':count dikeldilmedi.', + ], + + ], + + ], + +]; diff --git a/lang/vendor/filament-actions/tk/view.php b/lang/vendor/filament-actions/tk/view.php new file mode 100644 index 0000000..a5e686c --- /dev/null +++ b/lang/vendor/filament-actions/tk/view.php @@ -0,0 +1,25 @@ + [ + + 'label' => 'Görüntüle', + + 'modal' => [ + + 'heading' => ':label görüntüle', + + 'actions' => [ + + 'close' => [ + 'label' => 'Kapat', + ], + + ], + + ], + + ], + +];