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:
@@ -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();
|
||||
}),
|
||||
|
||||
Reference in New Issue
Block a user