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:
@@ -1,18 +1,18 @@
|
||||
<% club_name = @match.team.club&.name %>
|
||||
<% content_for :title, "Replay — #{@recording.title_or_default}" %>
|
||||
<% content_for :meta_description, "Replay #{@recording.title_or_default} su Match Live TV." %>
|
||||
<% content_for :title, t("replay.show.title", title: @recording.title_or_default) %>
|
||||
<% content_for :meta_description, t("replay.show.meta_description", title: @recording.title_or_default) %>
|
||||
<% content_for :robots, @recording.publicly_listed? ? "index, follow" : "noindex, nofollow" %>
|
||||
|
||||
<div class="wrap">
|
||||
<%= link_to "← Live passate", public_replay_index_path, class: "back-link" %>
|
||||
<%= link_to t("replay.show.back_to_replays"), public_replay_index_path, class: "back-link" %>
|
||||
|
||||
<%= live_match_page_heading(@match) %>
|
||||
|
||||
<% if @recording.status == "processing" %>
|
||||
<div class="stream-ended" role="status">
|
||||
<div class="stream-ended-icon" aria-hidden="true">⏳</div>
|
||||
<h2>Replay in elaborazione</h2>
|
||||
<p>La registrazione viene preparata. Riceverai un’email quando sarà pronta.</p>
|
||||
<h2><%= t("replay.show.processing_title") %></h2>
|
||||
<p><%= t("replay.show.processing_body") %></p>
|
||||
</div>
|
||||
<% elsif @recording.ready? && @recording.storage_key.present? %>
|
||||
<div class="live-player-wrap">
|
||||
@@ -25,18 +25,18 @@
|
||||
session: @session,
|
||||
stream_closed: true,
|
||||
on_air: false,
|
||||
badge_label: "REPLAY",
|
||||
badge_label: t("replay.show.badge_label"),
|
||||
badge_class: "badge-ended" %>
|
||||
</div>
|
||||
|
||||
<p class="replay-show__meta-line">
|
||||
<%= l_local(@recording.recorded_at_or_fallback) %>
|
||||
· Durata <%= @recording.duration_label %>
|
||||
· <%= t("replay.show.meta_line_duration", value: @recording.duration_label) %>
|
||||
· <%= @recording.views_label %>
|
||||
<% if @recording.expires_at %>
|
||||
· Fino al <%= l_local(@recording.expires_at) %>
|
||||
· <%= t("replay.show.meta_line_until", date: l_local(@recording.expires_at)) %>
|
||||
<% end %>
|
||||
· <%= @recording.publicly_listed? ? "Pubblico" : "Privato (link)" %>
|
||||
· <%= @recording.publicly_listed? ? t("replay.show.meta_line_public") : t("replay.show.meta_line_private") %>
|
||||
<% if @recording.source_platform_label != "—" %>
|
||||
· <%= @recording.source_platform_label %>
|
||||
<% end %>
|
||||
@@ -46,10 +46,10 @@
|
||||
<% if (ent.phone_download_enabled? && (logged_in? || @recording.unlisted?)) || @recording.youtube_watch_url %>
|
||||
<div class="replay-show__actions">
|
||||
<% if ent.phone_download_enabled? && (logged_in? || @recording.unlisted?) %>
|
||||
<%= link_to "Scarica MP4", public_replay_download_path(@session), class: "btn btn-primary" %>
|
||||
<%= link_to t("replay.show.download_link"), public_replay_download_path(@session), class: "btn btn-primary" %>
|
||||
<% end %>
|
||||
<% if @recording.youtube_watch_url %>
|
||||
<%= link_to "Apri su YouTube", @recording.youtube_watch_url, class: "btn btn-secondary", target: "_blank", rel: "noopener" %>
|
||||
<%= link_to t("replay.show.youtube_link"), @recording.youtube_watch_url, class: "btn btn-secondary", target: "_blank", rel: "noopener" %>
|
||||
<% end %>
|
||||
</div>
|
||||
<% end %>
|
||||
@@ -65,28 +65,28 @@
|
||||
session: @session,
|
||||
stream_closed: true,
|
||||
on_air: false,
|
||||
badge_label: "REPLAY",
|
||||
badge_label: t("replay.show.badge_label"),
|
||||
badge_class: "badge-ended" %>
|
||||
</div>
|
||||
<p class="replay-show__meta-line">
|
||||
Replay su YouTube (copia server non presente).
|
||||
<%= link_to "Apri su YouTube", @recording.youtube_watch_url, target: "_blank", rel: "noopener" %>
|
||||
<%= t("replay.show.youtube_only_body") %>
|
||||
<%= link_to t("replay.show.youtube_link"), @recording.youtube_watch_url, target: "_blank", rel: "noopener" %>
|
||||
</p>
|
||||
<% elsif @recording.ready? %>
|
||||
<div class="stream-ended" role="status">
|
||||
<h2>File non disponibile</h2>
|
||||
<p>Il video non è più sul server (archivio rimosso o in migrazione).</p>
|
||||
<p class="stream-ended-meta">Durata registrata: <%= @recording.duration_label %> · <%= @recording.byte_size_label %></p>
|
||||
<h2><%= t("replay.show.file_missing_title") %></h2>
|
||||
<p><%= t("replay.show.file_missing_body") %></p>
|
||||
<p class="stream-ended-meta"><%= t("replay.show.file_missing_meta", duration: @recording.duration_label, size: @recording.byte_size_label) %></p>
|
||||
</div>
|
||||
<% elsif @recording.status == "failed" %>
|
||||
<div class="stream-ended" role="status">
|
||||
<h2>Replay non disponibile</h2>
|
||||
<p><%= @recording.error_message.presence || "Errore di elaborazione della registrazione." %></p>
|
||||
<h2><%= t("replay.show.failed_title") %></h2>
|
||||
<p><%= @recording.error_message.presence || t("replay.show.failed_default_body") %></p>
|
||||
</div>
|
||||
<% else %>
|
||||
<div class="stream-ended" role="status">
|
||||
<h2>Replay non disponibile</h2>
|
||||
<p>Questa registrazione non è più accessibile.</p>
|
||||
<h2><%= t("replay.show.unavailable_title") %></h2>
|
||||
<p><%= t("replay.show.unavailable_body") %></p>
|
||||
</div>
|
||||
<% end %>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user