Add native Winlink attachment upload, reader indicators and verified storage

This commit is contained in:
alberto committed 2026-10-17 14:33:34 +02:00
1 parent 2b00b1cbbd
commit 5fde09823b
13 files changed
+223 -20

No files matched your search

+15 -1
View File
@@ -609,7 +609,21 @@ 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 dictionary=new Map(entries.trim().split('\n').map(line=>line.split('|')));
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 dictionary=new Map((entries.trim()+'\n'+uploadCopy+'\n'+sizeCopy).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.