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:
@@ -100,7 +100,7 @@ class PaymentController
|
||||
return view('site.checkout-stub', [
|
||||
'gateway' => 'Stripe',
|
||||
'sub' => $sub,
|
||||
'note' => 'Pentru a activa Stripe Checkout, instalează `composer require stripe/stripe-php` și activează în /admin/payment-settings.',
|
||||
'note' => __('Pentru a activa Stripe Checkout, instalează `composer require stripe/stripe-php` și activează în /admin/payment-settings.'),
|
||||
]);
|
||||
}
|
||||
|
||||
@@ -114,7 +114,7 @@ class PaymentController
|
||||
return view('site.checkout-stub', [
|
||||
'gateway' => 'PayPal',
|
||||
'sub' => $sub,
|
||||
'note' => 'Pentru a activa PayPal, instalează `composer require srmklive/paypal` și activează în /admin/payment-settings.',
|
||||
'note' => __('Pentru a activa PayPal, instalează `composer require srmklive/paypal` și activează în /admin/payment-settings.'),
|
||||
]);
|
||||
}
|
||||
|
||||
|
||||
@@ -44,7 +44,7 @@ class ShopAuthController extends Controller
|
||||
|
||||
// Unique per tenant (handled by composite index, but check for nicer error).
|
||||
if (ShopCustomer::where('phone', $data['phone'])->exists()) {
|
||||
return back()->withErrors(['phone' => 'Există deja un cont cu acest telefon.'])->withInput();
|
||||
return back()->withErrors(['phone' => __('Există deja un cont cu acest telefon.')])->withInput();
|
||||
}
|
||||
|
||||
// Auto-link to existing Client by phone if present.
|
||||
@@ -85,7 +85,7 @@ class ShopAuthController extends Controller
|
||||
remember: true
|
||||
);
|
||||
if (! $ok) {
|
||||
return back()->withErrors(['phone' => 'Telefon sau parolă incorecte.'])->withInput();
|
||||
return back()->withErrors(['phone' => __('Telefon sau parolă incorecte.')])->withInput();
|
||||
}
|
||||
|
||||
$request->session()->regenerate();
|
||||
|
||||
@@ -63,7 +63,7 @@ class TrackingController extends Controller
|
||||
default => null,
|
||||
};
|
||||
if (! $line || ! $line->isPendingApproval()) {
|
||||
$request->session()->flash('approval_status', ['kind' => 'error', 'message' => 'Linia nu mai necesită aprobare.']);
|
||||
$request->session()->flash('approval_status', ['kind' => 'error', 'message' => __('Linia nu mai necesită aprobare.')]);
|
||||
return redirect()->route('tracking.show', ['token' => $token]);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user