feat(i18n): mega-wrap 494 raw RO strings + 269 lang entries + 161 human RU/163 EN
Broad sweep across the whole codebase:
- Blade views (39 files, 315 wraps): tag-text and title/placeholder/alt
attributes wrapped with {{ __() }}. Excludes scripts, styles, @php,
@verbatim, {{ }}, {!! !!}, comments to avoid touching interpolations.
- PHP (54 files, 179 wraps): array 'key' => 'RO value' patterns and
list items with diacritics wrapped with __(). Reverted __() inside
const arrays (PHP disallows non-constant expressions).
- Added 269 new keys to lang/{ru,en}.json (identity fallback for
unknowns → 161 human RU + 163 EN translations added for the most
common enums, stages, roles, statuses, payment methods, vehicle
categories, warehouse, portal, form actions.
Missing translations fall back to RO so the UI never breaks. All 306
tests pass; view cache compiles cleanly.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -133,11 +133,11 @@
|
||||
@endif
|
||||
</div>
|
||||
<div class="col col-half">
|
||||
<div class="doc-title">FIȘĂ DE LUCRU</div>
|
||||
<div class="doc-title">{{ __('FIȘĂ DE LUCRU') }}</div>
|
||||
<div class="doc-meta">Nr.: <b>{{ $wo->number }}</b></div>
|
||||
<div class="doc-meta">Data deschiderii: <b>{{ $wo->opened_at?->format('d.m.Y') }}</b></div>
|
||||
<div class="doc-meta">{{ __('Data deschiderii:') }} <b>{{ $wo->opened_at?->format('d.m.Y') }}</b></div>
|
||||
@if ($wo->closed_at)
|
||||
<div class="doc-meta">Data închiderii: <b>{{ $wo->closed_at->format('d.m.Y') }}</b></div>
|
||||
<div class="doc-meta">{{ __('Data închiderii:') }} <b>{{ $wo->closed_at->format('d.m.Y') }}</b></div>
|
||||
@endif
|
||||
<div class="doc-meta">
|
||||
Status: <b>{{ \App\Models\Tenant\WorkOrder::STATUSES[$wo->status] ?? $wo->status }}</b>
|
||||
@@ -149,9 +149,9 @@
|
||||
<div class="row">
|
||||
<div class="col col-half" style="padding-right: 8px;">
|
||||
<div class="box">
|
||||
<h3>Client</h3>
|
||||
<h3>{{ __('Client') }}</h3>
|
||||
<div class="kv">
|
||||
<div><b>Nume:</b> {{ $wo->client?->name ?? '—' }}</div>
|
||||
<div><b>{{ __('Nume:') }}</b> {{ $wo->client?->name ?? '—' }}</div>
|
||||
<div><b>Telefon:</b> {{ $wo->client?->phone ?? '—' }}</div>
|
||||
@if ($wo->client?->email)
|
||||
<div><b>Email:</b> {{ $wo->client->email }}</div>
|
||||
@@ -161,7 +161,7 @@
|
||||
</div>
|
||||
<div class="col col-half" style="padding-left: 8px;">
|
||||
<div class="box">
|
||||
<h3>Auto</h3>
|
||||
<h3>{{ __('Auto') }}</h3>
|
||||
<div class="kv">
|
||||
<div><b>Marca/Model:</b> {{ $wo->vehicle?->make }} {{ $wo->vehicle?->model }} {{ $wo->vehicle?->year }}</div>
|
||||
<div><b>Nr.:</b> {{ $wo->vehicle?->plate ?? '—' }}</div>
|
||||
@@ -170,7 +170,7 @@
|
||||
@endif
|
||||
<div><b>Km la intrare:</b> {{ $wo->mileage_in ? number_format($wo->mileage_in, 0, '.', ' ') : '—' }}</div>
|
||||
@if ($wo->mileage_out)
|
||||
<div><b>Km la ieșire:</b> {{ number_format($wo->mileage_out, 0, '.', ' ') }}</div>
|
||||
<div><b>{{ __('Km la ieșire:') }}</b> {{ number_format($wo->mileage_out, 0, '.', ' ') }}</div>
|
||||
@endif
|
||||
</div>
|
||||
</div>
|
||||
@@ -180,7 +180,7 @@
|
||||
@if ($wo->complaint || $wo->diagnosis)
|
||||
<div class="box">
|
||||
@if ($wo->complaint)
|
||||
<h3>Plângere client</h3>
|
||||
<h3>{{ __('Plângere client') }}</h3>
|
||||
<div style="margin-bottom: 8px;">{{ $wo->complaint }}</div>
|
||||
@endif
|
||||
@if ($wo->diagnosis)
|
||||
@@ -196,9 +196,9 @@
|
||||
<thead>
|
||||
<tr>
|
||||
<th style="width: 50%;">Denumire</th>
|
||||
<th class="r" style="width: 12%;">Ore</th>
|
||||
<th class="r" style="width: 18%;">Preț/h</th>
|
||||
<th class="r" style="width: 20%;">Total</th>
|
||||
<th class="r" style="width: 12%;">{{ __('Ore') }}</th>
|
||||
<th class="r" style="width: 18%;">{{ __('Preț/h') }}</th>
|
||||
<th class="r" style="width: 20%;">{{ __('Total') }}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@@ -226,10 +226,10 @@
|
||||
<thead>
|
||||
<tr>
|
||||
<th style="width: 40%;">Denumire</th>
|
||||
<th style="width: 18%;">Cod</th>
|
||||
<th style="width: 18%;">{{ __('Cod') }}</th>
|
||||
<th class="r" style="width: 10%;">Cant.</th>
|
||||
<th class="r" style="width: 14%;">Preț</th>
|
||||
<th class="r" style="width: 18%;">Total</th>
|
||||
<th class="r" style="width: 14%;">{{ __('Preț') }}</th>
|
||||
<th class="r" style="width: 18%;">{{ __('Total') }}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@@ -268,7 +268,7 @@
|
||||
|
||||
@if ($wo->recommendations)
|
||||
<div class="recommendations">
|
||||
<h3>⚠ Recomandări</h3>
|
||||
<h3>{{ __('⚠ Recomandări') }}</h3>
|
||||
<div>{{ $wo->recommendations }}</div>
|
||||
</div>
|
||||
@endif
|
||||
@@ -277,11 +277,11 @@
|
||||
<table style="width: 100%;">
|
||||
<tr>
|
||||
<td class="sig-cell">
|
||||
<div>Client (nume, semnătură):</div>
|
||||
<div>{{ __('Client (nume, semnătură):') }}</div>
|
||||
<div class="sig-line"></div>
|
||||
</td>
|
||||
<td class="sig-cell">
|
||||
<div>Maistru / Recepție:</div>
|
||||
<div>{{ __('Maistru / Recepție:') }}</div>
|
||||
<div class="sig-line"></div>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
Reference in New Issue
Block a user