Support multiple sysops and bulletin comments; complete UI translations
Allow native SYSOP accounts to sign in independently, with an optional sysopUsers allow-list and isolated browser sessions. Keep station services on the configured service account. Add public bulletin comments that preserve category and distribution, alongside private replies to the author. Complete APRS and dynamic status translations and handle decorated button labels correctly. Document configuration and reply behavior. Add authentication, installer, bulletin reply and translation regression coverage.
This commit is contained in:
1 parent
33f1294405
commit
2ef3c25eb3
16 files changed
+298
-23
No files matched your search
@@ -23,6 +23,13 @@ test('explicit language overrides automatic detection and is saved per browser',
|
||||
test('UI translations handle counters, statuses, decorative icons and dynamic values',()=>{
|
||||
const {api}=client(['en']);
|
||||
assert.equal(api.t('↻ Sincronizza ora'),'↻ Sync now');
|
||||
assert.equal(api.t('▤ Commenta'),'▤ Comment');
|
||||
assert.equal(api.t('▦ Panoramica'),'▦ Overview');
|
||||
assert.equal(api.t('⌖ APRS'),'⌖ APRS');
|
||||
assert.equal(api.t('≋ Monitor'),'≋ Monitor');
|
||||
assert.equal(api.t('◷ Diario'),'◷ Logbook');
|
||||
assert.equal(api.t('▸_ Terminale'),'▸_ Terminal');
|
||||
assert.equal(api.t('📎 Allegati'),'📎 Attachments');
|
||||
assert.equal(api.t('Salva e metti in coda →'),'Save and queue →');
|
||||
assert.equal(api.t('12 bollettini · 3 personali'),'12 bulletins · 3 personal');
|
||||
assert.equal(api.t('● Connesso · N0TEST'),'● Connected · N0TEST');
|
||||
@@ -43,3 +50,25 @@ test('English preserves empty HTML text nodes and whitespace instead of insertin
|
||||
assert.equal(api.t(null),'');assert.equal(api.t(undefined),'');
|
||||
assert.equal(api.t(' Seleziona un messaggio '),' Select a message ');
|
||||
});
|
||||
|
||||
test('live APRS, radio controls, map counters and attachment statuses translate when built dynamically',()=>{
|
||||
const {api}=client(['en-US']);
|
||||
const labels=[
|
||||
['● APRS in tempo reale','● Live APRS'],
|
||||
['Attività','Activity'],['Configurazione','Configuration'],['Stazioni ricevute','Heard stations'],
|
||||
['Centra stazioni','Fit stations'],['Pausa vista','Pause display'],['Riprendi vista','Resume display'],
|
||||
['Tipo / pacchetto','Type / packet'],['Da → A','From → To'],['Oggetto APRS','APRS object'],
|
||||
['86 sulla mappa · 2 senza posizione','86 on map · 2 without position'],
|
||||
['2000 pacchetti nel registro','2000 packets in the log'],
|
||||
['Posizioni dai locator · UTC+02:00','Positions from locators · UTC+02:00'],
|
||||
['Dal 2026-10-04 · UTC+02:00','Since 2026-10-04 · UTC+02:00'],
|
||||
['● Frequenza fissa','● Fixed frequency'],['+ Frequenza','+ Frequency'],['PORTE RADIO','RADIO PORTS'],['Salva','Save'],
|
||||
['Frequenza APRS Port 3','APRS frequency port 3'],
|
||||
['Ricostruito da 3 parti · CRC verificati','Rebuilt from 3 parts · CRCs verified'],
|
||||
['3 parti ricostruite · CRC verificati','3 reconstructed parts · CRCs verified'],
|
||||
['Ricevute 2/3 parti. Mancano: 3.','Received 2/3 parts. Missing: 3.'],
|
||||
['Parte 1/3. Nessun blocco 7plus riconoscibile nel messaggio.','Part 1/3. No recognisable 7plus block in the message.'],
|
||||
];
|
||||
for(const [it,en]of labels){assert.equal(api.t(it),en,it);api.setLanguage('it');assert.equal(api.t(it),it);api.setLanguage('en');}
|
||||
assert.equal(api.t('image.jpg · 3 parti ricostruite · CRC verificati'),'image.jpg · 3 reconstructed parts · CRCs verified');
|
||||
});
|
||||
Reference in new issue
Block a user