i18n(settings): fix currency I18n::opts + push notification + closing-quote strings

- Currency Select ->options() had 4 raw entries (MDL/EUR/USD/UAH)
  and 2 wrapped (RON/RUB); consolidated all 6 under I18n::opts()
- Push notification title 'Trimis pe N dispozitiv(e)' rebuilt with
  __(':n')-placeholder; empty state + helper now go through __()
- Added 4 long helper description keys with the closing „…"
  Romanian quotation marks (the previous keys were missing the
  trailing quote and dot; now match Settings.php byte-for-byte)

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-07-18 11:33:52 +00:00
parent a658e359b9
commit a6f21762fc
3 changed files with 30 additions and 14 deletions
+6 -6
View File
@@ -103,14 +103,14 @@ class Settings extends Page
->required(),
Forms\Components\Select::make('currency')
->label(__('Monedă'))
->options([
->options(\App\Support\I18n::opts([
'MDL' => 'MDL — Leu moldovenesc',
'EUR' => 'EUR — Euro',
'USD' => 'USD — US Dollar',
'RON' => __('RON — Leu românesc'),
'RON' => 'RON — Leu românesc',
'UAH' => 'UAH — Hryvnia',
'RUB' => __('RUB — Rublă'),
])
'RUB' => 'RUB — Rublă',
]))
->required()
->searchable(),
Forms\Components\ColorPicker::make('theme_color')->label(__('Culoare brand')),
@@ -343,8 +343,8 @@ class Settings extends Page
'/app',
);
Notification::make()
->title($r['sent'] > 0 ? "Trimis pe {$r['sent']} dispozitiv(e)" : 'Niciun dispozitiv abonat')
->body($r['sent'] > 0 ? null : 'Deschide panoul pe telefon și acceptă notificările întâi.')
->title($r['sent'] > 0 ? __('Trimis pe :n dispozitiv(e)', ['n' => $r['sent']]) : __('Niciun dispozitiv abonat'))
->body($r['sent'] > 0 ? null : __('Deschide panoul pe telefon și acceptă notificările întâi.'))
->{$r['sent'] > 0 ? 'success' : 'warning'}()
->send();
}),