i18n(reports): wrap Anul curent + auto-translate specialization tokens
- Reports.php periods() had 'this_year' hardcoded; now wrapped in __() - masters tab specialization cell: split by '/' and __()-translate each token so 'Motor / Cutie viteze' auto-renders as «Двигатель / КПП» on RU (and 'Engine / Gearbox' on EN). Users can enter any free-text specialisation; the common keywords now have RU/EN translations. - +12 specialisation vocabulary entries (Motor, Frâne, Suspensie, Anvelope, Cutie viteze, Electrică, Diagnosticare, Vopsitorie, Tinichigerie, Aer condiționat, Roți, Ambreiaj). Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -179,7 +179,7 @@
|
||||
@forelse ($data['rows'] as $r)
|
||||
<tr>
|
||||
<td class="rp-bold">{{ $r['name'] }}</td>
|
||||
<td style="color:#6b7280">{{ $r['specialization'] ?? '—' }}</td>
|
||||
<td style="color:#6b7280">{{ $r['specialization'] ? implode(' / ', array_map(fn($p) => __(trim($p)), explode('/', $r['specialization']))) : '—' }}</td>
|
||||
<td class="rp-right">{{ $r['works'] }}</td>
|
||||
<td class="rp-right">{{ number_format($r['hours'], 1) }}</td>
|
||||
<td class="rp-right rp-bold rp-success">{{ number_format($r['revenue'], 2, '.', ' ') }}</td>
|
||||
|
||||
Reference in New Issue
Block a user