i18n(work-order-edit): translate tab, tracking-link modal + widen for QR
- getContentTabLabel: 'ⓘ Info & antet' now goes through __()
- Tracking-client modal heading translated ('Tracking client — WO #…')
- Both 'Închide' cancel labels wrapped in __()
- Tracking modal widened to 'lg' so the QR + link input fit without overlap
- Notification 'Șablon aplicat' template built with __() so RU/EN see
translated pieces
- +16 translations covering the QR modal, Info tab, Închide etc.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -20,7 +20,7 @@ class EditWorkOrder extends EditRecord
|
||||
|
||||
public function getContentTabLabel(): ?string
|
||||
{
|
||||
return 'ⓘ Info & antet';
|
||||
return 'ⓘ ' . __('Info & antet');
|
||||
}
|
||||
|
||||
public function getContentTabPosition(): ?\Filament\Resources\Pages\Enums\ContentTabPosition
|
||||
@@ -49,7 +49,7 @@ class EditWorkOrder extends EditRecord
|
||||
$r = app(\App\Services\ServiceComposer::class)->applyTemplate($this->record, $template);
|
||||
$this->fillForm();
|
||||
\Filament\Notifications\Notification::make()
|
||||
->title("Șablon aplicat: {$r['labor']} manopere, {$r['parts']} piese")
|
||||
->title(__('Șablon aplicat') . ": {$r['labor']} " . __('manopere') . ", {$r['parts']} " . __('piese'))
|
||||
->success()->send();
|
||||
}),
|
||||
Actions\Action::make('ai_diagnose')
|
||||
@@ -59,7 +59,7 @@ class EditWorkOrder extends EditRecord
|
||||
->visible(fn () => ! empty($this->record->complaint))
|
||||
->modalHeading(__('Diagnostic AI bazat pe plângerea clientului'))
|
||||
->modalSubmitAction(false)
|
||||
->modalCancelActionLabel('Închide')
|
||||
->modalCancelActionLabel(__('Închide'))
|
||||
->modalContent(function () {
|
||||
[$reply, $meta] = app(\App\Services\Ai\AiAssistantService::class)
|
||||
->suggestDiagnosis($this->record);
|
||||
@@ -69,9 +69,10 @@ class EditWorkOrder extends EditRecord
|
||||
->label(__('Link client (QR)'))
|
||||
->icon('heroicon-m-qr-code')
|
||||
->color('primary')
|
||||
->modalHeading(fn () => 'Tracking client — WO #' . $this->record->number)
|
||||
->modalHeading(fn () => __('Tracking client') . ' — WO #' . $this->record->number)
|
||||
->modalSubmitAction(false)
|
||||
->modalCancelActionLabel('Închide')
|
||||
->modalCancelActionLabel(__('Închide'))
|
||||
->modalWidth('lg')
|
||||
->modalContent(fn () => view('filament.tenant.tracking-qr', [
|
||||
'wo' => $this->record,
|
||||
])),
|
||||
|
||||
Reference in New Issue
Block a user