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:
@@ -19,22 +19,22 @@
|
||||
</style>
|
||||
|
||||
<div class="kpi-toolbar">
|
||||
<button class="kpi-btn" wire:click="shiftMonth(-1)">◀ Luna precedentă</button>
|
||||
<button class="kpi-btn" wire:click="shiftMonth(-1)">{{ __('◀ Luna precedentă') }}</button>
|
||||
<div class="kpi-period">{{ $this->getPeriodLabel() }}</div>
|
||||
<button class="kpi-btn" wire:click="shiftMonth(1)">Luna următoare ▶</button>
|
||||
<button class="kpi-btn" wire:click="shiftMonth(1)">{{ __('Luna următoare ▶') }}</button>
|
||||
</div>
|
||||
|
||||
@if (empty($rows))
|
||||
<div class="kpi-empty">Niciun mecanic nu a finalizat lucrări în această perioadă.</div>
|
||||
<div class="kpi-empty">{{ __('Niciun mecanic nu a finalizat lucrări în această perioadă.') }}</div>
|
||||
@else
|
||||
<table class="kpi-table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Mecanic</th>
|
||||
<th>Lucrări</th>
|
||||
<th>{{ __('Lucrări') }}</th>
|
||||
<th>Norma ore</th>
|
||||
<th>Real ore</th>
|
||||
<th>Eficiență</th>
|
||||
<th>{{ __('Eficiență') }}</th>
|
||||
<th>Venit manopere</th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
Reference in New Issue
Block a user