From 9ee17fa918cb7d6e5a16dd4de2339350cc182462 Mon Sep 17 00:00:00 2001 From: Vasyka Date: Mon, 7 Sep 2026 12:46:03 +0000 Subject: [PATCH] Fix LaborCategoryResource: use Schemas\Components\Section + add translations - Section was Filament\Schemas\Components\Section not Forms\Components\Section - Added ru/en translations for page title, form labels, nav label Co-Authored-By: Claude Sonnet 4.6 --- app/Filament/Tenant/Resources/LaborCategoryResource.php | 3 ++- lang/en.json | 6 ++++++ lang/ru.json | 6 ++++++ 3 files changed, 14 insertions(+), 1 deletion(-) diff --git a/app/Filament/Tenant/Resources/LaborCategoryResource.php b/app/Filament/Tenant/Resources/LaborCategoryResource.php index 8df767e..5629305 100644 --- a/app/Filament/Tenant/Resources/LaborCategoryResource.php +++ b/app/Filament/Tenant/Resources/LaborCategoryResource.php @@ -7,6 +7,7 @@ use App\Models\Tenant\LaborCategory; use Filament\Actions; use Filament\Forms; use Filament\Resources\Resource; +use Filament\Schemas; use Filament\Schemas\Schema; use Filament\Tables; use Filament\Tables\Table; @@ -42,7 +43,7 @@ class LaborCategoryResource extends Resource public static function form(Schema $schema): Schema { return $schema->components([ - Forms\Components\Section::make(__('Denumire')) + Schemas\Components\Section::make(__('Denumire')) ->columns(3) ->schema([ Forms\Components\TextInput::make('name_ro') diff --git a/lang/en.json b/lang/en.json index be201b0..5244302 100644 --- a/lang/en.json +++ b/lang/en.json @@ -375,6 +375,7 @@ "Categorie implicită": "Default category", "Categories": "Categories", "Categorii": "Categories", + "Categorii manopere": "Labor categories", "Category": "Category", "Caută": "Search", "Caută client, mașină, număr...": "Search client, vehicle, number...", @@ -793,6 +794,7 @@ "Endpoint webhook: https://service.mir.md/payments/stripe/webhook": "Endpoint webhook: https://service.mir.md/payments/stripe/webhook", "Endpoints disponibile:": "Available endpoints:", "Engine": "Engine", + "Engleză (EN)": "English (EN)", "Eroare": "Error", "Eroare la recepție": "Receiving error", "Etanșeitate": "Tightness", @@ -1433,6 +1435,7 @@ "Order number": "Order number", "Orders": "Orders", "Ordine": "Order", + "Ordine afișare": "Display order", "Ordine meniu lateral": "Sidebar menu order", "Ordonare": "Sort", "Ordonat": "Sorted", @@ -1792,10 +1795,12 @@ "Rolurile sistem (owner/admin/etc.) au numele blocat": "System roles (owner/admin/etc.) have locked names", "Rolurile utilizatorului îi acordă deja drepturi. Adaugă excepții doar când vrei să GRANT-uiești sau să DENY-uiești un drept specific pentru acest utilizator (peste rol).": "The user's roles already grant them permissions. Add overrides only when you want to manually GRANT or DENY a specific permission for this user (on top of the role).", "Română": "Romanian", + "Română (RO)": "Romanian (RO)", "Rotire": "Rotate", "Roți": "Wheels", "Rugină": "Rust", "Rulează `php artisan push:vapid` și adaugă cheile în .env.": "Run `php artisan push:vapid` and add the keys to .env.", + "Rusă (RU)": "Russian (RU)", "Rând": "Row", "Rânduri": "Rows", "Rânduri per pagină": "Rows per page", @@ -2328,6 +2333,7 @@ "canale marketing": "marketing channels", "capacitate": "capacity", "capacitate ref:": "ref. capacity:", + "categorie": "category", "cerere": "lead", "cereri": "requests", "cheltuială": "expense", diff --git a/lang/ru.json b/lang/ru.json index 2780596..9e19f08 100644 --- a/lang/ru.json +++ b/lang/ru.json @@ -375,6 +375,7 @@ "Categorie implicită": "Категория по умолчанию", "Categories": "Категории", "Categorii": "Категории", + "Categorii manopere": "Категории работ", "Category": "Категория", "Caută": "Найти", "Caută client, mașină, număr...": "Поиск клиента, авто, номера...", @@ -793,6 +794,7 @@ "Endpoint webhook: https://service.mir.md/payments/stripe/webhook": "Endpoint webhook: https://service.mir.md/payments/stripe/webhook", "Endpoints disponibile:": "Доступные эндпоинты:", "Engine": "Двигатель", + "Engleză (EN)": "Английский (EN)", "Eroare": "Ошибка", "Eroare la recepție": "Ошибка при приёмке", "Etanșeitate": "Герметичность", @@ -1433,6 +1435,7 @@ "Order number": "№ заказа", "Orders": "Заказы", "Ordine": "Порядок", + "Ordine afișare": "Порядок", "Ordine meniu lateral": "Порядок бокового меню", "Ordonare": "Сортировка", "Ordonat": "Отсортировано", @@ -1792,10 +1795,12 @@ "Rolurile sistem (owner/admin/etc.) au numele blocat": "Системные роли (owner/admin/и т.д.) имеют заблокированное имя", "Rolurile utilizatorului îi acordă deja drepturi. Adaugă excepții doar când vrei să GRANT-uiești sau să DENY-uiești un drept specific pentru acest utilizator (peste rol).": "Роли пользователя уже предоставляют ему права. Добавляйте исключения только когда хотите вручную GRANT-нуть или DENY-нуть конкретное право для этого пользователя (поверх роли).", "Română": "Румынский", + "Română (RO)": "Румынский (RO)", "Rotire": "Поворот", "Roți": "Колёса", "Rugină": "Ржавчина", "Rulează `php artisan push:vapid` și adaugă cheile în .env.": "Выполните `php artisan push:vapid` и добавьте ключи в .env.", + "Rusă (RU)": "Русский (RU)", "Rând": "Строка", "Rânduri": "Строки", "Rânduri per pagină": "Строк на странице", @@ -2328,6 +2333,7 @@ "canale marketing": "маркетинговые каналы", "capacitate": "загрузка", "capacitate ref:": "ориент. загрузка:", + "categorie": "категория", "cerere": "заявка", "cereri": "запросов", "cheltuială": "расход",