Completa i18n IT/EN/FR/DE/ES su sito pubblico, area autenticata e admin.
Tutte le view marketing, legali, viewer, dashboard e admin usano t(); mailer utente-facing e flash localizzati; admin con LocaleResolver e selettore lingua. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -47,11 +47,11 @@ class Match < ApplicationRecord
|
||||
|
||||
def public_status_label
|
||||
active = active_stream_session
|
||||
return "In corso / da riprendere" if active
|
||||
return "Programmata" if scheduled_upcoming?
|
||||
return "Pronta" if scheduled_at.present?
|
||||
return I18n.t("matches.status.active") if active
|
||||
return I18n.t("matches.status.scheduled") if scheduled_upcoming?
|
||||
return I18n.t("matches.status.ready") if scheduled_at.present?
|
||||
|
||||
"Senza orario"
|
||||
I18n.t("matches.status.no_time")
|
||||
end
|
||||
|
||||
scope :search_teams_or_opponents, lambda { |query|
|
||||
|
||||
Reference in New Issue
Block a user