808 lines
43 KiB
JavaScript
808 lines
43 KiB
JavaScript
/* UI translations only. Message bodies, subjects, terminal and radio traffic stay original. */
|
||
(() => {
|
||
'use strict';
|
||
const entries=`
|
||
La tua stazione, in un unico pannello.|Your station, in one dashboard.
|
||
Benvenuto in stazione.|Welcome to your station.
|
||
Accedi con l’utente e la password Telnet del tuo BPQ.|Sign in with your BPQ Telnet username and password.
|
||
Utente|Username
|
||
Il tuo utente BPQ|Your BPQ username
|
||
Entra nel pannello|Open dashboard
|
||
LA TUA STAZIONE|YOUR STATION
|
||
Panoramica|Overview
|
||
Rete & nodi|Network & nodes
|
||
Rete|Network
|
||
Stazione BPQ|BPQ station
|
||
STAZIONE BPQ|BPQ STATION
|
||
STAZIONE|STATION
|
||
Stazione|Station
|
||
Esci|Sign out
|
||
Esci dal pannello|Sign out of dashboard
|
||
Collegamento…|Connecting…
|
||
Aggiorna dati|Refresh data
|
||
IL TUO PUNTO SULLA RETE|YOUR PLACE ON THE NETWORK
|
||
Radio, messaggi e collegamenti. Tutto nello stesso posto.|Radio, messages and connections. All in one place.
|
||
Nuovo messaggio|New message
|
||
Messaggi nella BBS|BBS messages
|
||
In attesa di BPQ|Waiting for BPQ
|
||
Nodi conosciuti|Known nodes
|
||
Destinazioni NET/ROM|NET/ROM destinations
|
||
Collegamenti attivi|Active links
|
||
Vicini sulla rete BPQ|Neighbours on the BPQ network
|
||
Ultimo sync BBS|Last BBS sync
|
||
Nessuno rilevato oggi|None detected today
|
||
PORTA RADIO|RADIO PORT
|
||
Canale|Channel
|
||
S/N ultima sessione|Last session S/N
|
||
Stato BPQ|BPQ status
|
||
Servizi della stazione|Station services
|
||
BBS & bollettini|BBS & bulletins
|
||
Leggi, scrivi e condividi via radio|Read, write and share over radio
|
||
Chat di rete|Network chat
|
||
Accesso dal nodo con CHAT|Access from the node using CHAT
|
||
Posta radio verso il CMS|Radio mail to the CMS
|
||
Nodo interattivo|Interactive node
|
||
Servizi configurati nel nodo|Services configured on the node
|
||
NODO|NODE
|
||
Bollettini dalla rete e messaggi personali, finalmente leggibili.|Network bulletins and personal messages, clearly presented.
|
||
Tutti|All
|
||
Tutte|All
|
||
Bollettini|Bulletins
|
||
Personali|Personal
|
||
Inviati|Sent
|
||
Inviate|Sent
|
||
Cerca oggetto, nominativo o categoria…|Search subject, callsign or category…
|
||
Cerca messaggi|Search messages
|
||
Categoria|Category
|
||
Tutte le categorie|All categories
|
||
Più recenti prima|Newest first
|
||
Da|From
|
||
A|To
|
||
Da / A|From / To
|
||
Oggetto|Subject
|
||
Ricevuto · data e ora|Received · date and time
|
||
Dimensione|Size
|
||
Stato|Status
|
||
Una finestra sulla rete.|A window onto the network.
|
||
Scegli un messaggio per leggerlo qui.|Select a message to read it here.
|
||
Collegamenti Internet e destinazioni annunciate al tuo nodo.|Internet links and destinations advertised to your node.
|
||
Rotte verso i vicini|Routes to neighbours
|
||
DATI BPQ|BPQ DATA
|
||
Nodo|Node
|
||
Porta|Port
|
||
Qualità|Quality
|
||
Destinazioni|Destinations
|
||
Destinazioni conosciute|Known destinations
|
||
Rotte e destinazioni rilevate da BPQ.|Routes and destinations reported by BPQ.
|
||
Chiudi|Close
|
||
Destinatario|Recipient
|
||
Tipo|Type
|
||
Nominativo oppure indirizzo email|Callsign or email address
|
||
Messaggio personale|Personal message
|
||
Bollettino|Bulletin
|
||
Di cosa vuoi parlare?|What is your message about?
|
||
Messaggio|Message
|
||
Scrivi il tuo messaggio…|Write your message…
|
||
Il messaggio sarà salvato nella BBS. L’inoltro segue i profili BPQ.|The message will be saved in the BBS. Forwarding follows the BPQ profiles.
|
||
Annulla|Cancel
|
||
Salva e metti in coda|Save and queue
|
||
Richiesta fallita|Request failed
|
||
Percorso del messaggio nella rete|Message route through the network
|
||
PERSONALE|PERSONAL
|
||
BOLLETTINO|BULLETIN
|
||
MESSAGGIO PERSONALE|PERSONAL MESSAGE
|
||
Dati parziali|Partial data
|
||
BPQ connesso|BPQ connected
|
||
NON DISPONIBILE|UNAVAILABLE
|
||
Non disponibile|Unavailable
|
||
Non collegato|Disconnected
|
||
Occupato|Busy
|
||
Libero|Free
|
||
Scansione attiva|Scanning
|
||
Scansione non rilevata|Scan not detected
|
||
ATTIVO|ACTIVE
|
||
INATTIVO|INACTIVE
|
||
Nessuna rotta disponibile|No routes available
|
||
Connessione assente|No connection
|
||
Inviato|Sent
|
||
Ricevuto|Received
|
||
Non letto|Unread
|
||
Elaborazione BPQ|BPQ processing
|
||
Connessione a BPQ|Connecting to BPQ
|
||
Letto|Read
|
||
(Senza oggetto)|(No subject)
|
||
Inoltrato|Forwarded
|
||
Nuovo|New
|
||
Trattenuto|Held
|
||
Nessun messaggio corrisponde ai filtri.|No messages match the filters.
|
||
Caricamento messaggio…|Loading message…
|
||
Rispondi|Reply
|
||
Messaggio non disponibile|Message unavailable
|
||
Chiudere e scartare questa bozza?|Close and discard this draft?
|
||
Salvataggio in BPQ…|Saving to BPQ…
|
||
Nessuna porta modem|No modem port
|
||
Non configurato|Not configured
|
||
Attiva o disattiva suoni|Toggle sounds
|
||
Suono attivo|Sound enabled
|
||
Attiva suono notifiche|Enable notification sound
|
||
Clicca per attivare l’audio|Click to enable audio
|
||
Prova notifica e suono|Test notification and sound
|
||
Notifica di prova|Test notification
|
||
Audio attivato · avviso per nuova posta o bollettini|Audio enabled · new mail or bulletin alert
|
||
Audio non attivato dal browser: verifica i permessi audio del sito.|Audio was not enabled by the browser: check the site's audio permissions.
|
||
Chiudi notifica|Dismiss notification
|
||
Nuovo bollettino scaricato|New bulletin downloaded
|
||
Nuova mail ricevuta|New mail received
|
||
Disponibili nella BBS|Available in the BBS
|
||
Disponibili nella posta personale|Available in personal mail
|
||
Disconnesso|Disconnected
|
||
Connetti|Connect
|
||
STANZE|ROOMS
|
||
Crea stanza|Create room
|
||
COLLEGAMENTI|LINKS
|
||
PRESENTI|ONLINE
|
||
Connettiti con il tuo account per partecipare alla chat.|Connect with your account to join the chat.
|
||
Tutta la stanza|Everyone in the room
|
||
Messaggio chat|Chat message
|
||
Invia|Send
|
||
Non connesso|Not connected
|
||
Crea o apri una stanza|Create or join a room
|
||
Nome stanza|Room name
|
||
Entra|Join
|
||
Conversazione chat|Chat conversation
|
||
Vai agli ultimi messaggi|Jump to latest messages
|
||
Ultimi messaggi|Latest messages
|
||
Connessione…|Connecting…
|
||
Connessione interrotta|Connection interrupted
|
||
Scrivi alla stanza…|Write to the room…
|
||
Connettiti per scrivere…|Connect to write…
|
||
Inattivo|Inactive
|
||
Attivo|Active
|
||
Nessun utente rilevato|No users detected
|
||
Connettiti per vedere chi è presente.|Connect to see who is online.
|
||
Privato|Private
|
||
privato|private
|
||
In attesa|Idle
|
||
Connessione fallita|Connection failed
|
||
Chiuso|Closed
|
||
Utenti|Users
|
||
Posta della stazione|Station mail
|
||
Aggiorna mail|Refresh mail
|
||
Nuova email|New email
|
||
Ricevute|Inbox
|
||
In coda|Queued
|
||
Cerca email|Search email
|
||
Cerca email…|Search email…
|
||
Data e ora|Date and time
|
||
Seleziona una email|Select an email
|
||
Consegnata al CMS|Delivered to CMS
|
||
Trattenuta|Held
|
||
Nuova|New
|
||
Ricevuta|Received
|
||
Nessuna email in questa cartella.|No email in this folder.
|
||
Caricamento…|Loading…
|
||
Email non disponibile|Email unavailable
|
||
Elimina|Delete
|
||
Elimina messaggio|Delete message
|
||
Elimina email|Delete email
|
||
Eliminazione…|Deleting…
|
||
Scrivi una email|Write an email
|
||
Indirizzo email oppure nominativo Winlink|Email address or Winlink callsign
|
||
Invia email|Send email
|
||
STAZIONE IN ASCOLTO|STATION LISTENING
|
||
NODO LOCALE|LOCAL NODE
|
||
Porta radio BPQ|BPQ radio port
|
||
TRAFFICO BPQ|BPQ TRAFFIC
|
||
Velocità del modem|Modem speed
|
||
Campioni durante le connessioni|Samples during connections
|
||
Processo modem · ogni 5 s|Modem process · every 5 s
|
||
CPU SISTEMA|SYSTEM CPU
|
||
Carico totale del PC|Total PC load
|
||
SNR ultima sessione|Last session SNR
|
||
Nessun campione disponibile|No samples available
|
||
TX SOSPESO|TX SUSPENDED
|
||
LINK ATTIVO|LINK ACTIVE
|
||
IN ASCOLTO|LISTENING
|
||
PORTE RADIO IN PAUSA|RADIO PORTS PAUSED
|
||
CHIAMATA IN CORSO|CALLING
|
||
CONNESSIONE RADIO|RADIO CONNECTION
|
||
CHIAMANTE|CALLER
|
||
CHIAMATO|CALLED
|
||
Attendo risposta|Waiting for response
|
||
Chiamata in uscita|Outgoing call
|
||
Chiamata in ingresso|Incoming call
|
||
Nessuna porta modem configurata|No modem port configured
|
||
Frequenza bloccata|Frequency locked
|
||
Canale occupato|Channel busy
|
||
Canale libero|Channel clear
|
||
Modem non disponibile|Modem unavailable
|
||
SNR esposto da BPQ|SNR reported by BPQ
|
||
In attesa della prossima connessione|Waiting for the next connection
|
||
Schermo intero|Full screen
|
||
Schermo intero non disponibile in questo browser. Prova F11.|Full screen is unavailable in this browser. Try F11.
|
||
Torna alla finestra|Exit full screen
|
||
Allegato|Attachment
|
||
Chiudi anteprima|Close preview
|
||
Scarica file|Download file
|
||
Anteprima pagina PDF|PDF page preview
|
||
Caricamento anteprima…|Loading preview…
|
||
Anteprima non disponibile. Puoi scaricare il file.|Preview unavailable. You can download the file.
|
||
Anteprima PDF non disponibile. Puoi scaricare il file.|PDF preview unavailable. You can download the file.
|
||
Anteprima non disponibile per questo formato. Puoi scaricare il file.|Preview unavailable for this format. You can download the file.
|
||
Anteprima limitata ai primi 128 KB. Il download contiene il file completo.|Preview limited to the first 128 KB. The download contains the complete file.
|
||
Controllo allegati…|Checking attachments…
|
||
Anteprima|Preview
|
||
Scarica|Download
|
||
Mostra messaggio originale e dati 7plus|Show original message and 7plus data
|
||
Scarica testo originale della parte|Download original part text
|
||
Avvia monitor|Start monitor
|
||
Ferma|Stop
|
||
Direzione|Direction
|
||
Tutte le porte|All ports
|
||
Cerca nominativo o testo…|Search callsign or text…
|
||
Cerca nel traffico|Search traffic
|
||
Pausa|Pause
|
||
Riprendi|Resume
|
||
Pulisci|Clear
|
||
Scarica registro|Download log
|
||
Traffico BPQ|BPQ traffic
|
||
Avvia il monitor per seguire il traffico BPQ.|Start the monitor to follow BPQ traffic.
|
||
Monitor BPQ · sola lettura · orari originali BPQ|BPQ monitor · read only · original BPQ timestamps
|
||
Scorrimento automatico|Auto scroll
|
||
In ascolto. Nessun traffico corrispondente ai filtri.|Listening. No traffic matches the filters.
|
||
In ascolto|Listening
|
||
Nessun frame da scaricare|No frames to download
|
||
Diario|Logbook
|
||
Mappa|Map
|
||
Diario dei collegamenti|Connection logbook
|
||
Esporta CSV|Export CSV
|
||
Cerca nominativo, servizio, frequenza…|Search callsign, service or frequency…
|
||
Cerca nel diario|Search logbook
|
||
Periodo diario|Logbook period
|
||
Servizio diario|Logbook service
|
||
Direzione diario|Logbook direction
|
||
Esito diario|Logbook result
|
||
Tutti i servizi|All services
|
||
Tutte le direzioni|All directions
|
||
In ingresso|Incoming
|
||
In uscita|Outgoing
|
||
Non rilevata|Not detected
|
||
Tutti gli esiti|All results
|
||
Scambio concluso|Exchange completed
|
||
Collegato|Connected
|
||
Non riuscito|Failed
|
||
Esito non registrato|Result not recorded
|
||
Sessioni|Sessions
|
||
Stazione / servizio|Station / service
|
||
Collegamento|Connection
|
||
Durata|Duration
|
||
Messaggi|Messages
|
||
Esito|Result
|
||
Ogni collegamento ha una storia.|Every connection has a story.
|
||
Seleziona una sessione per vedere traffico, servizio e sequenza degli eventi.|Select a session to see traffic, service and event history.
|
||
La rete, sulla mappa.|The network, on a map.
|
||
Mostra collegamenti|Show links
|
||
Servizio mappa|Map service
|
||
Periodo mappa|Map period
|
||
24 ore|24 hours
|
||
7 giorni|7 days
|
||
30 giorni|30 days
|
||
Ingrandisci mappa|Zoom in
|
||
Riduci mappa|Zoom out
|
||
Inquadra rete|Fit network
|
||
Mappa interattiva delle stazioni collegate|Interactive map of connected stations
|
||
Internet / rete|Internet / network
|
||
Mezzo non archiviato|Transport not recorded
|
||
Stazione locale|Local station
|
||
Natural Earth · pubblico dominio|Natural Earth · public domain
|
||
Stazioni nel periodo|Stations in this period
|
||
Collegamenti stabiliti|Connections established
|
||
Traffico registrato|Recorded traffic
|
||
Sono mostrate le 5000 sessioni più recenti.|Showing the 5,000 most recent sessions.
|
||
Nessuna sessione corrisponde ai filtri.|No sessions match the filters.
|
||
Inizio|Start
|
||
Connessione|Connection
|
||
Fine|End
|
||
Durata collegamento|Connection duration
|
||
Trasporto|Transport
|
||
Non registrato|Not recorded
|
||
Non registrata|Not recorded
|
||
Porta BPQ|BPQ port
|
||
Frequenza|Frequency
|
||
SNR medio|Average SNR
|
||
Tentativi|Attempts
|
||
Picco TX / RX|Peak TX / RX
|
||
Messaggi inviati / ricevuti|Messages sent / received
|
||
Contatori di traffico non presenti nel log.|Traffic counters are not available in the log.
|
||
Le statistiche disponibili dipendono dal servizio e dal modem; i trattini indicano dati non registrati.|Available statistics depend on the service and modem; dashes indicate unrecorded data.
|
||
Mostra stazione sulla mappa|Show station on map
|
||
Sequenza degli eventi|Event history
|
||
Messaggi trasferiti|Transferred messages
|
||
Aggiungi locator|Add locator
|
||
Nessun collegamento stabilito nel periodo selezionato.|No connections established in the selected period.
|
||
Scegli una stazione.|Choose a station.
|
||
Clicca un punto, una traccia o un nominativo nell’elenco.|Click a point, a track or a callsign in the list.
|
||
Il LOCATOR della stazione locale non è presente in BPQ: le tracce non possono essere disegnate.|The local station's LOCATOR is missing in BPQ: tracks cannot be drawn.
|
||
Stazioni nello stesso punto|Stations at the same point
|
||
Il locator individua un’area: le posizioni effettive possono essere diverse.|A locator identifies an area: actual positions may differ.
|
||
STAZIONE COLLEGATA|CONNECTED STATION
|
||
Distanza non disponibile|Distance unavailable
|
||
Stesso locator del nodo|Same locator as the node
|
||
Posizione non disponibile|Position unavailable
|
||
Ultimo collegamento nel periodo|Last connection in this period
|
||
Salva posizione|Save position
|
||
Inserisci il locator comunicato dalla stazione.|Enter the locator provided by the station.
|
||
Es. IO91AA|e.g. IO91AA
|
||
Aggiorna|Refresh
|
||
Partner e scambi della BBS|BBS partners and exchanges
|
||
Ripristina percorso originale|Restore original route
|
||
Caricamento profili BPQ…|Loading BPQ profiles…
|
||
Le fasce mostrano il fuso configurato in BPQ. Il prossimo tentativo è una stima: timer, disponibilità del modem e condizioni di connessione sono gestiti da BPQ. Le regole si modificano nella configurazione BPQ.|Time windows use the timezone configured in BPQ. The next attempt is an estimate: BPQ manages timers, modem availability and connection conditions. Edit rules in the BPQ configuration.
|
||
Non rilevato|Not detected
|
||
Non impostato|Not set
|
||
Completato|Completed
|
||
Chiamata in corso|Calling
|
||
Sessione interrotta|Session interrupted
|
||
Nessuna regola esplicita|No explicit rules
|
||
Tutte le aree geografiche|All geographical areas
|
||
Destinazioni geografiche tramite questo partner|Geographical destinations via this partner
|
||
Percorsi|Routes
|
||
Automatici|Automatic
|
||
Messaggi in coda|Queued messages
|
||
Sessioni attive|Active sessions
|
||
Partner / percorso|Partner / route
|
||
Coda|Queue
|
||
Ultimo scambio|Last exchange
|
||
Programmazione|Schedule
|
||
Prossimo · stima|Next · estimate
|
||
Azioni|Actions
|
||
Riservato al percorso VHF|Reserved for the VHF route
|
||
Preparazione radio|Preparing radio
|
||
Richiesta inviata|Request sent
|
||
Solo manuale|Manual only
|
||
Automatico|Automatic
|
||
Disattivato|Disabled
|
||
Attende fine percorso VHF|Waiting for the VHF route to finish
|
||
Sessione in corso|Session in progress
|
||
Solo su richiesta|On request only
|
||
Automatico disattivo|Automatic disabled
|
||
Script assente|Script missing
|
||
In attesa di messaggi|Waiting for messages
|
||
Timer non disponibile|Timer unavailable
|
||
Nessuna sessione recente|No recent sessions
|
||
locale BPQ|BPQ local time
|
||
In corso|In progress
|
||
Richiesta inviata…|Request sent…
|
||
Avvia manualmente|Start manually
|
||
Sincronizza ora|Sync now
|
||
Modem impegnato|Modem busy
|
||
Trasmissioni sospese|Transmissions paused
|
||
Nessun partner di forwarding configurato in BPQ.|No forwarding partners configured in BPQ.
|
||
Regole di inoltro|Forwarding rules
|
||
Esclusi: solo posta personale|Excluded: personal mail only
|
||
Posta personale e bollettini diretti|Personal mail and direct bulletins
|
||
Destinatari espliciti · TO|Explicit recipients · TO
|
||
Distribuzioni esplicite · AT|Explicit distributions · AT
|
||
Nessuno|None
|
||
Nessuna|None
|
||
Richiesta messaggi al partner|Request messages from partner
|
||
Disattiva|Disabled
|
||
Invio immediato nuovi messaggi|Send new messages immediately
|
||
Disattivo|Disabled
|
||
Le regole geografiche dipendono dagli indirizzi gerarchici e dalle altre rotte BPQ. I messaggi locali e quelli già ricevuti dal partner seguono le regole di esclusione di BPQ.|Geographical rules depend on hierarchical addresses and other BPQ routes. Local messages and those already received from the partner follow BPQ's exclusion rules.
|
||
Percorso di connessione|Connection route
|
||
Nessuno script configurato|No script configured
|
||
Indirizzo gerarchico|Hierarchical address
|
||
Ultimi scambi|Recent exchanges
|
||
Ingresso|Incoming
|
||
Uscita|Outgoing
|
||
Nessuno scambio nei sette file di log più recenti.|No exchanges in the seven most recent log files.
|
||
TX / RX: messaggi registrati nei log della sessione, non byte.|TX / RX: messages recorded in the session logs, not bytes.
|
||
Percorso originale ripristinato|Original route restored
|
||
Richiesta…|Requesting…
|
||
FREQUENZE DI ASCOLTO|LISTENING FREQUENCIES
|
||
Sospendi TX|Suspend TX
|
||
Caricamento frequenze…|Loading frequencies…
|
||
Nessuna scansione configurata|No scan configured
|
||
Riprendi radio|Resume radio
|
||
Controllo remoto non disponibile|Remote control unavailable
|
||
Applicazione richiesta in corso…|Applying request…
|
||
TX sospeso · porte e connessioni radio ferme|TX suspended · radio ports and connections stopped
|
||
La pausa TX chiude le connessioni radio; Internet resta disponibile.|Pausing TX closes radio connections; Internet remains available.
|
||
Mantieni almeno una frequenza di ascolto|Keep at least one listening frequency
|
||
Scegli un gateway|Choose a gateway
|
||
Directory ufficiale · canali PUBLIC|Official directory · PUBLIC channels
|
||
Aggiorna elenco|Refresh list
|
||
Cerca gateway Winlink|Search Winlink gateways
|
||
Nominativo, locator o località…|Callsign, locator or location…
|
||
Banda gateway|Gateway band
|
||
40 e 20 metri|40 and 20 metres
|
||
40 metri|40 metres
|
||
20 metri|20 metres
|
||
VHF · 2 metri|VHF · 2 metres
|
||
UHF · 70 centimetri|UHF · 70 centimetres
|
||
VHF e UHF|VHF and UHF
|
||
Tutte le bande HF|All HF bands
|
||
HF, VHF e UHF|HF, VHF and UHF
|
||
In orario e report recente|Within hours and recently reported
|
||
Ordina gateway|Sort gateways
|
||
Distanza crescente|Nearest first
|
||
Nominativo|Callsign
|
||
Frequenze sul display · USB / FM · orari UTC|Dial frequencies · USB / FM · UTC hours
|
||
Frequenza / modo|Frequency / mode
|
||
Modo / banda|Mode / band
|
||
Locator / distanza|Locator / distance
|
||
Orari UTC|UTC hours
|
||
Ultimo report|Last report
|
||
Nessun gateway selezionato|No gateway selected
|
||
Seleziona un canale nell’elenco.|Select a channel from the list.
|
||
Connetti e sincronizza|Connect and sync
|
||
La distanza non indica la qualità del collegamento. Il report conferma la pubblicazione del gateway, non che il canale radio sia libero. La frequenza centrale è disponibile nel dettaglio del canale selezionato.|Distance does not indicate link quality. A report confirms the gateway is listed, not that the radio channel is clear. The centre frequency is available in the selected channel's details.
|
||
Verifica configurazione radio…|Checking radio configuration…
|
||
Sync radio non configurato: verifica modem e controllo CAT.|Radio sync not configured: check modem and CAT control.
|
||
Sync radio non configurato: serve un modem supportato e il controllo CAT abilitato.|Radio sync not configured: a supported modem and CAT control are required.
|
||
Elenco non aggiornato: aggiorna prima di collegarti.|The list is out of date: refresh before connecting.
|
||
Non dichiarati|Not specified
|
||
In orario|Within operating hours
|
||
Fuori orario|Outside operating hours
|
||
Orari non riconosciuti|Unrecognised operating hours
|
||
Recente|Recent
|
||
Report scaduto / assente|Report expired / missing
|
||
Nessun canale corrisponde ai filtri.|No channels match the filters.
|
||
Sessione in corso…|Session in progress…
|
||
Elenco non disponibile|List unavailable
|
||
Preparazione modem packet e frequenza|Preparing packet modem and frequency
|
||
Richiesta inviata a BPQ|Request sent to BPQ
|
||
Chiamata radio in corso|Radio call in progress
|
||
Collegato · scambio posta|Connected · exchanging mail
|
||
Sync radio completato|Radio sync completed
|
||
Profilo Internet ripristinato|Internet profile restored
|
||
Collegamento non riuscito|Connection failed
|
||
Errore nella richiesta|Request error
|
||
Ripristino da verificare|Recovery needs checking
|
||
Ripristina profilo Internet|Restore Internet profile
|
||
Terminale|Terminal
|
||
Salva testo|Save text
|
||
Collega|Connect
|
||
Disconnetti|Disconnect
|
||
Terminale Telnet BPQ|BPQ Telnet terminal
|
||
Comando Telnet|Telnet command
|
||
Collega il terminale per iniziare|Connect the terminal to begin
|
||
Invia comando|Send command
|
||
INVIO|ENTER
|
||
TELNET · BPQ LOCALE|TELNET · LOCAL BPQ
|
||
↑ ↓ cronologia · Invio per inviare|↑ ↓ history · Enter to send
|
||
Torna al fondo|Jump to bottom
|
||
COLLEGAMENTO…|CONNECTING…
|
||
ERRORE|ERROR
|
||
Scrivi un comando…|Type a command…
|
||
Il terminale è vuoto|The terminal is empty
|
||
SESSIONE BPQ|BPQ SESSION
|
||
Sincronizzazione|Synchronisation
|
||
Riduci finestra|Minimise window
|
||
Preparazione…|Preparing…
|
||
Preparazione|Preparation
|
||
Chiamata|Calling
|
||
Scambio messaggi|Exchanging messages
|
||
Ripristino|Restoring
|
||
Interruzione in corso|Cancelling
|
||
Interrotto|Cancelled
|
||
Scambio|Exchange
|
||
Conclusione|Completion
|
||
Messaggi inviati|Messages sent
|
||
Messaggi ricevuti|Messages received
|
||
Avanzamento della sessione|Session progress
|
||
Aggiornamento automatico|Automatic refresh
|
||
Interrompi sync|Cancel sync
|
||
Mostra avanzamento sincronizzazione|Show sync progress
|
||
Richiesta di sincronizzazione|Synchronisation request
|
||
Interruzione…|Cancelling…
|
||
Riprova interruzione|Retry cancellation
|
||
Aggiornamento ogni 1,5 secondi|Updates every 1.5 seconds
|
||
Sessione terminata|Session ended
|
||
Invio della richiesta a BPQ|Sending request to BPQ
|
||
Sessione del pannello non più attiva. Stato BPQ ricaricato.|Dashboard session no longer active. BPQ status reloaded.
|
||
Eliminare il messaggio?|Delete this message?
|
||
Verrà rimosso dalla BBS locale di BPQ. Una email già inviata non può essere richiamata.|It will be removed from the local BPQ BBS. An email that has already been sent cannot be recalled.
|
||
Messaggio eliminato|Message deleted
|
||
Email eliminata|Email deleted
|
||
Nominativo Winlink oppure [email protected]|Winlink callsign or [email protected]
|
||
Inserisci un nominativo Winlink o un indirizzo email valido|Enter a valid Winlink callsign or email address
|
||
Sincronizzazione richiesta…|Synchronisation requested…
|
||
Nessuna sessione rilevata oggi|No sessions detected today
|
||
Sincronizzazione completata|Synchronisation completed
|
||
Errore nella sessione CMS|CMS session error
|
||
Sessione CMS conclusa|CMS session ended
|
||
Sincronizzazione in corso|Synchronisation in progress
|
||
Una sincronizzazione è già in corso|A synchronisation is already in progress
|
||
Verifica della sessione CMS e della coda|Checking the CMS session and queue
|
||
Verifica radio e preparazione del percorso|Checking radio and preparing the route
|
||
Richiesta accettata da BPQ · attendo il collegamento|Request accepted by BPQ · waiting for connection
|
||
Sincronizzazione non trovata|Synchronisation not found
|
||
Ripristino del percorso e della scansione|Restoring route and scanning
|
||
Collegamento terminato senza completare lo scambio|Connection ended before the exchange completed
|
||
Collegamento stabilito · scambio messaggi|Connection established · exchanging messages
|
||
Chiamata in corso · attendo la risposta del nodo|Calling · waiting for the node's response
|
||
BPQ non ha registrato l’avvio della sessione|BPQ did not record the session starting
|
||
Interruzione richiesta · attendo la conferma di BPQ|Cancellation requested · waiting for BPQ confirmation
|
||
Comando di disconnessione BPQ non disponibile|BPQ disconnect command unavailable
|
||
BPQ non ha ancora confermato la disconnessione: riprova|BPQ has not confirmed disconnection yet: retry
|
||
Sincronizzazione interrotta · percorso ripristinato|Synchronisation cancelled · route restored
|
||
Locale / Telnet|Local / Telnet
|
||
Nodo BPQ|BPQ node
|
||
Porta non archiviata|Port not recorded
|
||
Lettura dei log BPQ…|Reading BPQ logs…
|
||
Cerca nominativo, servizio o frequenza…|Search callsign, service or frequency…
|
||
Ultime 24 ore|Last 24 hours
|
||
Ultimi 7 giorni|Last 7 days
|
||
Ultimi 30 giorni|Last 30 days
|
||
Le tracce uniscono le posizioni delle stazioni: non rappresentano il percorso fisico del segnale. Il punto è il centro del locator, non una posizione GPS esatta. Stazioni con lo stesso centro del locator condividono il punto: selezionale dal riquadro dettagli o dall’elenco. I nominativi senza locator restano nel diario e nell’elenco.|Tracks connect station positions: they do not represent the physical signal path. Each point is the locator centre, not an exact GPS position. Stations sharing a locator centre share a point: select them in the details panel or list. Callsigns without a locator remain in the logbook and list.
|
||
Operazioni radio|Radio operations
|
||
Diario di stazione|Station logbook
|
||
Stazioni collegate|Connected stations
|
||
in ascolto|listening
|
||
profilo Internet sospeso|Internet profile suspended
|
||
dati BPQ|BPQ data
|
||
CPU sistema|System CPU
|
||
traffico BPQ TX RX|BPQ TX RX traffic
|
||
cronologia|history
|
||
Invio per inviare|Enter to send
|
||
Account sysop configurato non trovato|Configured sysop account not found
|
||
Timeout BPQ|BPQ timeout
|
||
WebMail BPQ non disponibile|BPQ WebMail unavailable
|
||
Lista messaggi BPQ non disponibile|BPQ message list unavailable
|
||
Messaggio troppo grande|Message too large
|
||
BBS non configurata|BBS not configured
|
||
Metadati BBS non disponibili|BBS metadata unavailable
|
||
Metadati BBS non ancora disponibili|BBS metadata not available yet
|
||
Messaggio non presente|Message not found
|
||
BPQ non ha confermato la cancellazione|BPQ did not confirm deletion
|
||
Messaggio troppo grande per il download web (32 MB)|Message too large for web download (32 MB)
|
||
Controlla destinatario, oggetto (max 80 caratteri) e testo (max 32 KB)|Check recipient, subject (max 80 characters) and text (max 32 KB)
|
||
BPQ non ha confermato il salvataggio. Controlla la lista prima di riprovare.|BPQ did not confirm saving. Check the list before trying again.
|
||
Host non autorizzato|Host not authorised
|
||
Origine non autorizzata|Origin not authorised
|
||
Troppi tentativi. Riprova tra 15 minuti.|Too many attempts. Try again in 15 minutes.
|
||
Credenziali BPQ non valide per il pannello sysop|Invalid BPQ credentials for the sysop dashboard
|
||
Accedi con le credenziali BPQ|Sign in with your BPQ credentials
|
||
Servizio non configurato in BPQ|Service not configured in BPQ
|
||
Sessione non valida. Ricarica la pagina.|Invalid session. Reload the page.
|
||
Porta Telnet BPQ non configurata|BPQ Telnet port not configured
|
||
Cursore non valido|Invalid cursor
|
||
Cursore monitor non valido|Invalid monitor cursor
|
||
Percorso di forwarding non configurato|Forwarding route not configured
|
||
Tipo di sincronizzazione non disponibile|Synchronisation type unavailable
|
||
Allegato non disponibile|Attachment unavailable
|
||
Questo file non ha anteprima testuale|This file has no text preview
|
||
Sincronizzazione già richiesta. Attendi qualche secondo.|Synchronisation already requested. Wait a few seconds.
|
||
Operazione non disponibile|Operation unavailable
|
||
Metodo non disponibile|Method unavailable
|
||
Pagina non trovata|Page not found
|
||
Seleziona almeno una frequenza configurata|Select at least one configured frequency
|
||
Controller radio non disponibile|Radio controller unavailable
|
||
Stato TX non valido|Invalid TX state
|
||
Profilo RMS non presente in BPQ|RMS profile missing in BPQ
|
||
Stato sessioni BBS non verificabile|BBS session status cannot be verified
|
||
Canale radio non valido|Invalid radio channel
|
||
Attendi la fine della sessione BBS prima di ripristinare Internet|Wait for the BBS session to end before restoring Internet
|
||
Una sessione Winlink radio è già in corso o in ripristino|A Winlink radio session is already running or being restored
|
||
Controllo frequenza CAT per Winlink radio non configurato|CAT frequency control for Winlink radio not configured
|
||
Modem impegnato: attendi la fine della connessione|Modem busy: wait for the connection to end
|
||
Telemetria radio non disponibile: impossibile verificare il modem|Radio telemetry unavailable: cannot check the modem
|
||
Sync Winlink già richiesto: attendi|Winlink sync already requested: please wait
|
||
Una sessione BBS è attiva: riprova al termine|A BBS session is active: retry when it ends
|
||
Il profilo RMS non è impostato per Internet: verifica la configurazione prima del cambio|The RMS profile is not set to Internet: check configuration before switching
|
||
Una sessione BBS è iniziata: riprova al termine|A BBS session has started: retry when it ends
|
||
Percorso manuale di forwarding non valido|Invalid manual forwarding route
|
||
Percorsi del controllo radio non validi|Invalid radio control paths
|
||
Percorso manuale non configurato|Manual route not configured
|
||
Un inoltro per questo partner è già in corso|Forwarding to this partner is already in progress
|
||
Partner BBS non configurato|BBS partner not configured
|
||
Radio non disponibile o impegnata|Radio unavailable or busy
|
||
Attendi la fine delle sessioni BBS|Wait for BBS sessions to end
|
||
Timeout di accesso chat|Chat sign-in timeout
|
||
Connettiti alla chat prima di scrivere|Connect to chat before writing
|
||
Scrivi un messaggio su una sola riga, massimo 500 caratteri|Write a single-line message, up to 500 characters
|
||
Nominativo non valido|Invalid callsign
|
||
Chat non connessa|Chat not connected
|
||
Nome stanza non valido|Invalid room name
|
||
Credenziali Telnet BPQ non disponibili|BPQ Telnet credentials unavailable
|
||
Accesso Telnet non confermato|Telnet sign-in not confirmed
|
||
Accesso rifiutato|Access denied
|
||
Collega prima il terminale|Connect the terminal first
|
||
Invia un solo comando, massimo 1000 caratteri|Send one command, up to 1000 characters
|
||
`;
|
||
const uploadCopy=`Allegati|Attachments
|
||
Allega file|Attach files
|
||
Seleziona allegati|Choose attachments
|
||
Rimuovi allegato|Remove attachment
|
||
Trascina qui i file oppure selezionali. Massimo 10 file e 64 KB complessivi. Via radio, i file piccoli riducono il tempo di collegamento.|Drop files here or select them. Up to 10 files and 64 KB total. Small files reduce radio connection time.
|
||
Massimo 10 allegati per messaggio|Up to 10 attachments per message
|
||
Allegati troppo grandi: massimo 64 KB complessivi|Attachments too large: maximum 64 KB total
|
||
Nomi allegati duplicati: rinomina i file|Duplicate attachment names: rename the files
|
||
Usa il caricamento file per gli allegati|Use file upload for attachments
|
||
Campi del messaggio non validi|Invalid message fields
|
||
Campo allegato non valido|Invalid attachment field
|
||
Gli allegati in uscita sono disponibili per le email Winlink|Outgoing attachments are available for Winlink emails
|
||
BPQ ha salvato il messaggio ma gli allegati non corrispondono. Controlla la coda prima di riprovare.|BPQ saved the message but the attachments do not match. Check the queue before retrying.`;
|
||
const sizeCopy='Testo e allegati superano 80 KB complessivi|Message text and attachments exceed 80 KB total\nMessaggio troppo grande per il server HTTP BPQ|Message too large for the BPQ HTTP server';
|
||
const deleteCopy='Sessione amministrativa BPQ non disponibile|BPQ admin session unavailable\nBPQ non ha confermato il messaggio da cancellare|BPQ did not confirm the message selected for deletion\nMetadati BPQ non verificabili: cancellazione interrotta|BPQ metadata could not be verified: deletion stopped\nMessaggio non valido|Invalid message\nBPQ non autorizza la cancellazione: verifica i permessi sysop della BBS|BPQ denied deletion: check the BBS sysop permissions\nBPQ non ha risposto in tempo. Aggiorna l’elenco prima di riprovare.|BPQ did not respond in time. Refresh the list before retrying.';
|
||
const portCopy=`PORTE RADIO|RADIO PORTS
|
||
Porte radio|Radio ports
|
||
Sospendi tutte le TX|Pause all TX
|
||
Riprendi tutte le TX|Resume all TX
|
||
Ferma porta|Stop port
|
||
Avvia porta|Start port
|
||
PORTA FERMA|PORT STOPPED
|
||
Frequenze|Frequencies
|
||
Frequenze di ascolto|Listening frequencies
|
||
+ Frequenza|+ Frequency
|
||
Frequenza MHz|Frequency MHz
|
||
Secondi|Seconds
|
||
In scansione|Scan enabled
|
||
Rimuovi frequenza|Remove frequency
|
||
Tutte le trasmissioni sono sospese|All transmissions are paused
|
||
Porta ferma|Port stopped
|
||
Trasmissioni della porta sospese|Port transmissions paused
|
||
Ascolto sulla frequenza selezionata|Listening on the selected frequency
|
||
Controllo porta non disponibile|Port control unavailable
|
||
Statistiche frame BPQ|BPQ frame statistics
|
||
FRAME AX.25|AX.25 FRAMES
|
||
TX / RX · contatori BPQ|TX / RX · BPQ counters
|
||
Contatore BPQ|BPQ counter
|
||
TIMEOUT L2|L2 TIMEOUTS
|
||
CPU MODEM|MODEM CPU
|
||
● Frequenza fissa|● Fixed frequency
|
||
● Porta ferma|● Port stopped
|
||
Configura da 1 a 12 frequenze|Configure 1 to 12 frequencies
|
||
Frequenza, intervallo o selezione non validi|Invalid frequency, dwell or selection
|
||
Stato porta non valido|Invalid port state
|
||
Mantieni almeno una frequenza selezionata|Keep at least one frequency selected`;
|
||
const aprsCopy=`Ascolto e inoltro, porta per porta.|Listening and forwarding, port by port.
|
||
Salva e applica|Save and apply
|
||
Stazione|Station
|
||
Nominativo APRS|APRS callsign
|
||
Beacon · minuti|Beacon · minutes
|
||
Latitudine APRS|APRS latitude
|
||
Longitudine APRS|APRS longitude
|
||
Simbolo|Symbol
|
||
Tabella simboli|Symbol table
|
||
Messaggio di stato|Status message
|
||
Abilitato|Enabled
|
||
Server|Server
|
||
Porta TCP|TCP port
|
||
Passcode APRS-IS|APRS-IS passcode
|
||
Filtro APRS-IS|APRS-IS filter
|
||
Pubblica il beacon su Internet|Publish beacon to the Internet
|
||
Passcode salvato in BPQ|Passcode saved in BPQ
|
||
Per inoltrare i pacchetti ricevuti a Internet serve il passcode APRS-IS.|An APRS-IS passcode is required to forward received packets to the Internet.
|
||
I messaggi da Internet alla radio sono un flusso separato dalla ripetizione dei pacchetti radio.|Internet-to-radio messages are separate from radio packet repeating.
|
||
Porte APRS|APRS ports
|
||
Porta / frequenza|Port / frequency
|
||
Ascolto|Listen
|
||
Radio → Internet|Radio → Internet
|
||
Ripeti via radio|Repeat over radio
|
||
Messaggi Internet → radio|Internet → radio messages
|
||
Beacon radio|Radio beacon
|
||
Percorso|Path
|
||
La frequenza APRS selezionata diventa la frequenza di ascolto della porta. I sync manuali mantengono la priorità e al termine ripristinano l’ascolto.|The selected APRS frequency becomes the port listening frequency. Manual syncs take priority and restore listening afterward.
|
||
Le ritrasmissioni radio seguono il percorso APRS e la soppressione dei duplicati gestiti da BPQ.|Radio retransmissions follow the APRS path and BPQ duplicate suppression.
|
||
Nessuna porta packet con controllo di frequenza disponibile.|No packet port with frequency control is available.
|
||
Applicazione della configurazione APRS…|Applying APRS configuration…
|
||
Configurazione APRS applicata · backup salvato|APRS configuration applied · backup saved
|
||
Configurazione APRS applicata|APRS configuration applied
|
||
Configurato · lascia vuoto per mantenerlo|Configured · leave blank to keep it
|
||
Non configurato|Not configured
|
||
Stazione / APRS|Station / APRS`;
|
||
const dictionary=new Map((entries.trim()+'\n'+uploadCopy+'\n'+sizeCopy+'\n'+deleteCopy+'\n'+portCopy+'\n'+aprsCopy).split('\n').map(line=>line.split('|')));
|
||
function resolveLanguage(preference=null,languages=[]){
|
||
if(preference==='it'||preference==='en')return preference;
|
||
// The first browser language is the user's preferred UI language; English is the fallback.
|
||
return /^it(?:-|$)/i.test(languages[0]||'')?'it':'en';
|
||
}
|
||
let preference=null,language='it';
|
||
const patterns=[
|
||
[/^Stazione \/ (.+)$/,m=>'Station / '+translate(m[1])],
|
||
[/^(\d+) bollettini · (\d+) personali$/,m=>m[1]+' bulletins · '+m[2]+' personal'],
|
||
[/^(\d+) (messaggi|messaggio ricevuto|messaggi ricevuti|destinazioni|sessioni|stazioni|nuovo messaggio|nuovi messaggi|nuovi bollettini scaricati|nuove mail ricevute|nella stanza|presenti|collegamenti nel periodo)$/,m=>m[1]+' '+({'messaggi':'messages','messaggio ricevuto':'message received','messaggi ricevuti':'messages received','destinazioni':'destinations','sessioni':'sessions','stazioni':'stations','nuovo messaggio':'new message','nuovi messaggi':'new messages','nuovi bollettini scaricati':'new bulletins downloaded','nuove mail ricevute':'new mail messages received','nella stanza':'in the room','presenti':'online','collegamenti nel periodo':'connections in this period'})[m[2]]],
|
||
[/^Aggiornato (.+)$/,m=>'Updated '+m[1]],
|
||
[/^(.+) · aggiornato (.+)$/,m=>m[1]+' · updated '+m[2]],
|
||
[/^Connettiti come (\S+) per partecipare alla chat\.$/,m=>'Connect as '+m[1]+' to join the chat.'],
|
||
[/^Connesso alla chat come (\S+)$/,m=>'Connected to chat as '+m[1]],
|
||
[/^Disconnesso dalla chat$/,()=> 'Disconnected from chat'],
|
||
[/^Connesso · (\S+)$/,m=>'Connected · '+m[1]],
|
||
[/^Messaggio privato a (.+)$/,m=>'Private message to '+m[1]],
|
||
[/^Privato · (.+)$/,m=>'Private · '+m[1]],
|
||
[/^(Dettagli|Dettagli stazione|Seleziona|Grafico) (.+)$/,m=>({'Dettagli':'Details','Dettagli stazione':'Station details','Seleziona':'Select','Grafico':'Chart'})[m[1]]+' '+m[2]],
|
||
[/^(Allegati) · (\d+)$/,m=>'Attachments · '+m[2]],
|
||
[/^Percorso di connessione · porta (\d+)$/,m=>'Connection route · port '+m[1]],
|
||
[/^Attiva · intervallo (.+)$/,m=>'Enabled · interval '+m[1]],
|
||
[/^Porta (\d+)$/,m=>'Port '+m[1]],
|
||
[/^Posizioni dai locator · orari (.+)$/,m=>'Positions from locators · times '+m[1]],
|
||
[/^Log disponibili dal (.+) · massimo 30 giorni · (.+)$/,m=>'Logs available since '+m[1]+' · up to 30 days · '+m[2]],
|
||
[/^(\d+) sulla mappa · (\d+) senza locator$/,m=>m[1]+' on map · '+m[2]+' without locator'],
|
||
[/^(\d+) km dal nodo$/,m=>m[1]+' km from node'],
|
||
[/^Locator salvato per (\S+)$/,m=>'Locator saved for '+m[1]],
|
||
[/^(\d+) canali? · (\d+) gateway$/,m=>m[1]+' '+(m[1]==='1'?'channel':'channels')+' · '+m[2]+' gateways'],
|
||
[/^(\d+) frame · (\d+) in memoria( · visualizzazione in pausa)?$/,m=>m[1]+' frames · '+m[2]+' in memory'+(m[3]?' · display paused':'')],
|
||
[/^Messaggio #(\d+) salvato nella BBS\. L’inoltro sarà gestito da BPQ\.$/,m=>'Message #'+m[1]+' saved in the BBS. BPQ will handle forwarding.'],
|
||
[/^Messaggio #(\d+) eliminato da BPQ$/,m=>'Message #'+m[1]+' deleted from BPQ'],
|
||
[/^(Aggiornamento BPQ in attesa|Ripristino del percorso dopo errore|Diario non disponibile): (.+)$/,m=>({'Aggiornamento BPQ in attesa':'BPQ update pending','Ripristino del percorso dopo errore':'Restoring route after error','Diario non disponibile':'Logbook unavailable'})[m[1]]+': '+translate(m[2])],
|
||
[/^Stessa coda e stesse regole del partner (\S+)\. Nessun timer automatico per questo percorso\. (.+)$/,m=>'Same queue and rules as partner '+m[1]+'. No automatic timer for this route. '+translate(m[2])],
|
||
];
|
||
function translate(text){
|
||
if(dictionary.has(text))return dictionary.get(text);
|
||
for(const [pattern,render]of patterns){const match=text.match(pattern);if(match)return render(match);}
|
||
if(text.includes(' · '))return text.split(' · ').map(translate).join(' · ');
|
||
return text;
|
||
}
|
||
function t(value){
|
||
const text=String(value??'');if(language!=='en')return text;
|
||
// Preserve indentation and decorative icons, which often live in the same text node.
|
||
const match=text.match(/^(\s*[●◇◎+↻↩⇄◉↓↑]*\s*)(.*?)(\s*[→↗↓↵]*\s*)$/s);
|
||
return match?match[1]+translate(match[2])+match[3]:translate(text);
|
||
}
|
||
const api={t,resolveLanguage,get language(){return language},get preference(){return preference},locale:()=>language==='it'?'it-IT':'en-GB'};
|
||
globalThis.BPQI18n=api;
|
||
if(typeof document==='undefined')return;
|
||
try{const saved=localStorage.getItem('bpq-language');if(['it','en'].includes(saved))preference=saved;}catch{}
|
||
const browserLanguages=()=>navigator.languages?.length?navigator.languages:[navigator.language];
|
||
language=resolveLanguage(preference||globalThis.BPQ_DEFAULT_LANGUAGE,browserLanguages());preference=language;try{localStorage.setItem('bpq-language',language);}catch{}document.documentElement.lang=language;
|
||
const originals=new WeakMap(),attributes=new WeakMap();
|
||
// These are user/protocol data, never interface copy. Do not translate their labels or contents.
|
||
const protectedContent='script,style,textarea,pre,code,[contenteditable],[data-no-i18n],.reader-body,.mail-subject,.mail-from,.mail-category,.reader-header h2,.reader-meta b,.chat-message-content p,.chat-message-meta strong,.chat-user-name,.chat-user b,.chat-user small,.room-button,#chat-room-name,.attachment-row b,#attachment-title,#delete-subject,.arrival-toast small,.side-station,.profile>div,.mission-heading h1,.mission-location,.modem-brand,#caller-call,#called-call,.service-call,#nodes,.wl-account,#wl-gateway-rows td:nth-child(2),#category option:not([value]),#terminal-output,.monitor-frame';
|
||
function excluded(el){return !el||!!el.closest(protectedContent);}
|
||
function textNode(node){
|
||
if(excluded(node.parentElement))return;
|
||
let entry=originals.get(node);
|
||
if(!entry||node.nodeValue!==entry.rendered)entry={source:node.nodeValue,rendered:null};
|
||
const rendered=t(entry.source);entry.rendered=rendered;originals.set(node,entry);
|
||
if(node.nodeValue!==rendered)node.nodeValue=rendered;
|
||
}
|
||
function element(el){
|
||
if(excluded(el))return;
|
||
for(const name of ['title','placeholder','aria-label']){
|
||
if(name==='title'&&el.matches('.mail-row,.chat-user'))continue;
|
||
if(!el.hasAttribute(name))continue;
|
||
const stored=attributes.get(el)||{};let entry=stored[name],value=el.getAttribute(name);
|
||
if(!entry||value!==entry.rendered)entry={source:value,rendered:null};
|
||
const rendered=t(entry.source);entry.rendered=rendered;stored[name]=entry;attributes.set(el,stored);
|
||
if(value!==rendered)el.setAttribute(name,rendered);
|
||
}
|
||
}
|
||
function apply(root=document.body){
|
||
if(!root)return;
|
||
if(root.nodeType===3){textNode(root);return;}
|
||
if(root.nodeType!==1)return;
|
||
element(root);const walker=document.createTreeWalker(root,NodeFilter.SHOW_ELEMENT|NodeFilter.SHOW_TEXT);
|
||
let node;while((node=walker.nextNode())){if(node.nodeType===3)textNode(node);else element(node);}
|
||
}
|
||
let observer;
|
||
function observe(){observer.observe(document.body,{subtree:true,childList:true,characterData:true,attributes:true,attributeFilter:['title','placeholder','aria-label']});}
|
||
function syncControls(){document.querySelectorAll('[data-language-switch]').forEach(control=>{control.setAttribute('aria-checked',String(language==='en'));control.setAttribute('title',language==='en'?'Switch to Italian':'Passa all’inglese');});}
|
||
api.setLanguage=value=>{
|
||
if(!['it','en'].includes(value))return;
|
||
preference=value;try{localStorage.setItem('bpq-language',value);}catch{}
|
||
language=resolveLanguage(value,browserLanguages());document.documentElement.lang=language;
|
||
observer?.disconnect();apply();syncControls();if(observer)observe();
|
||
document.dispatchEvent(new CustomEvent('bpq-languagechange',{detail:{language,preference}}));
|
||
};
|
||
globalThis.bpqConfirm=message=>globalThis.confirm(t(message));
|
||
globalThis.bpqPrompt=(message,defaultValue='')=>globalThis.prompt(t(message),defaultValue);
|
||
function mount(){
|
||
const picker=place=>{
|
||
const control=document.createElement('button');control.type='button';control.className='language-switch '+place;control.dataset.languageSwitch='';control.setAttribute('role','switch');control.setAttribute('aria-label','English / Italiano');
|
||
control.innerHTML='<span class="language-thumb" aria-hidden="true"></span><span class="language-choice" aria-hidden="true"><svg class="language-flag" viewBox="0 0 60 40"><rect width="60" height="40" fill="#fff"/><path d="M0 0h20v40H0z" fill="#009246"/><path d="M40 0h20v40H40z" fill="#ce2b37"/></svg><span>IT</span></span><span class="language-choice" aria-hidden="true"><svg class="language-flag" viewBox="0 0 60 40"><rect width="60" height="40" fill="#193775"/><path d="m0 0 60 40M60 0 0 40" stroke="#fff" stroke-width="9"/><path d="m0 0 60 40M60 0 0 40" stroke="#c73545" stroke-width="3"/><path d="M30 0v40M0 20h60" stroke="#fff" stroke-width="13"/><path d="M30 0v40M0 20h60" stroke="#c73545" stroke-width="7"/></svg><span>EN</span></span>';
|
||
control.onclick=()=>api.setLanguage(language==='it'?'en':'it');control.onkeydown=e=>{if(e.key==='ArrowLeft'||e.key==='ArrowRight'){e.preventDefault();api.setLanguage(e.key==='ArrowRight'?'en':'it');}};return control;
|
||
};
|
||
document.querySelector('.login-card')?.append(picker('language-login'));
|
||
document.querySelector('.topbar > div')?.prepend(picker('language-toolbar'));
|
||
syncControls();apply();observer=new MutationObserver(records=>{
|
||
observer.disconnect();const roots=new Set();
|
||
for(const r of records){if(r.type==='childList')for(const child of r.addedNodes)roots.add(child);else roots.add(r.target);}
|
||
for(const root of roots)if(root.isConnected)apply(root);observe();
|
||
});observe();
|
||
}
|
||
if(document.readyState==='loading')document.addEventListener('DOMContentLoaded',mount,{once:true});else mount();
|
||
})();
|