From 1cf1dc2f5431164684f770f286e18d1b27cded2a Mon Sep 17 00:00:00 2001 From: Vasyka Date: Mon, 7 Sep 2026 12:15:49 +0000 Subject: [PATCH] Fix LaborResource breadcrumb/heading to show 'Catalog manopere' MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit getPluralModelLabel now uses nav.label.Norme-ore (already translated to 'Catalog manopere'/'Каталог работ') so breadcrumb and page heading match the sidebar navigation label. Co-Authored-By: Claude Sonnet 4.6 --- .../Tenant/Resources/LaborResource.php | 4 +-- lang/en.json | 1 + lang/ro.json | 35 ++++++++++--------- lang/ru.json | 1 + 4 files changed, 22 insertions(+), 19 deletions(-) diff --git a/app/Filament/Tenant/Resources/LaborResource.php b/app/Filament/Tenant/Resources/LaborResource.php index 7b31701..77d4f39 100644 --- a/app/Filament/Tenant/Resources/LaborResource.php +++ b/app/Filament/Tenant/Resources/LaborResource.php @@ -33,14 +33,14 @@ class LaborResource extends Resource public static function getModelLabel(): string { - return __('normă'); + return __('manoperă'); } protected static ?string $pluralModelLabel = null; public static function getPluralModelLabel(): string { - return __('norme-ore'); + return __('nav.label.Norme-ore'); } protected static ?int $navigationSort = 32; diff --git a/lang/en.json b/lang/en.json index a6a9614..be201b0 100644 --- a/lang/en.json +++ b/lang/en.json @@ -2385,6 +2385,7 @@ "lucrări caroserie": "bodyshop jobs", "lucrări terți": "subcontract jobs", "manopere": "labors", + "manoperă": "labor item", "mașini": "vehicles", "mașină": "vehicle", "mediu": "medium", diff --git a/lang/ro.json b/lang/ro.json index 92e6106..e4d5c49 100644 --- a/lang/ro.json +++ b/lang/ro.json @@ -1,24 +1,25 @@ { - "Dashboard": "Tablou de bord", - "Save": "Salvează", + "Actions": "Acțiuni", "Cancel": "Anulează", + "Create": "Creează", + "Dashboard": "Tablou de bord", + "Date": "Dată", "Delete": "Șterge", "Edit": "Editează", - "Create": "Creează", - "Search": "Caută", - "Filters": "Filtre", - "Reset": "Resetează", - "Yes": "Da", - "No": "Nu", - "Loading": "Se încarcă...", "Empty": "Niciun rezultat", - "Settings": "Setări", - "Profile": "Profil", + "Filters": "Filtre", + "Loading": "Se încarcă...", "Logout": "Ieșire", - "Welcome": "Bine ai venit", - "Total": "Total", - "Date": "Dată", + "No": "Nu", + "Notifications": "Notificări", + "Profile": "Profil", + "Reset": "Resetează", + "Save": "Salvează", + "Search": "Caută", + "Settings": "Setări", "Status": "Status", - "Actions": "Acțiuni", - "Notifications": "Notificări" -} + "Total": "Total", + "Welcome": "Bine ai venit", + "Yes": "Da", + "manoperă": "manoperă" +} \ No newline at end of file diff --git a/lang/ru.json b/lang/ru.json index 2a71f48..2780596 100644 --- a/lang/ru.json +++ b/lang/ru.json @@ -2385,6 +2385,7 @@ "lucrări caroserie": "кузовные работы", "lucrări terți": "работы субподрядчиков", "manopere": "работ", + "manoperă": "работа", "mașini": "машины", "mașină": "машина", "mediu": "средне",