calendar
All repositories: gitoria
2.5 KB
// names.hl — month and weekday names for the languages the server can write itself (the server has no Intl): the first// language of the request's Accept-Language header. Same names as the browser's Intl gives (long month, short weekday).// Any other language → null: the month view then shows neutral names until the browser fills in its own.static tables = {en = { months = ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'], days = ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun'], prev = 'Previous month', next = 'Next month' }de = { months = ['Januar', 'Februar', 'März', 'April', 'Mai', 'Juni', 'Juli', 'August', 'September', 'Oktober', 'November', 'Dezember'], days = ['Mo', 'Di', 'Mi', 'Do', 'Fr', 'Sa', 'So'], prev = 'Voriger Monat', next = 'Nächster Monat' }fr = { months = ['janvier', 'février', 'mars', 'avril', 'mai', 'juin', 'juillet', 'août', 'septembre', 'octobre', 'novembre', 'décembre'], days = ['lun.', 'mar.', 'mer.', 'jeu.', 'ven.', 'sam.', 'dim.'], prev = 'Mois précédent', next = 'Mois suivant' }es = { months = ['enero', 'febrero', 'marzo', 'abril', 'mayo', 'junio', 'julio', 'agosto', 'septiembre', 'octubre', 'noviembre', 'diciembre'], days = ['lun', 'mar', 'mié', 'jue', 'vie', 'sáb', 'dom'], prev = 'Mes anterior', next = 'Mes siguiente' }it = { months = ['gennaio', 'febbraio', 'marzo', 'aprile', 'maggio', 'giugno', 'luglio', 'agosto', 'settembre', 'ottobre', 'novembre', 'dicembre'], days = ['lun', 'mar', 'mer', 'gio', 'ven', 'sab', 'dom'], prev = 'Mese precedente', next = 'Mese successivo' }nl = { months = ['januari', 'februari', 'maart', 'april', 'mei', 'juni', 'juli', 'augustus', 'september', 'oktober', 'november', 'december'], days = ['ma', 'di', 'wo', 'do', 'vr', 'za', 'zo'], prev = 'Vorige maand', next = 'Volgende maand' }pt = { months = ['janeiro', 'fevereiro', 'março', 'abril', 'maio', 'junho', 'julho', 'agosto', 'setembro', 'outubro', 'novembro', 'dezembro'], days = ['seg.', 'ter.', 'qua.', 'qui.', 'sex.', 'sáb.', 'dom.'], prev = 'Mês anterior', next = 'Mês seguinte' }}// "de-DE,de;q=0.9,en;q=0.8" → 'de'; the first tag decides (browsers list their preferred language first)static primaryTag = (header) => {if (header == null || hlTypeName(header) != 'String') { return '' }let first = header.split(',')[0].split(';')[0].trim().toLowerCase()return first.slice(0, 2)}// the table of the request's language, or null (unknown language, no header)static namesFor = (header) => {let t = primaryTag(header)return tables[t]}
Branches
- mainmain branch
Latest commits
- d6c59290calendar: Hybriel master 06617221 (plugin allocators 3a781359 + 413f60e4, mpackdb 2cb7ae5e, http1 773de63e); gates 78/0 + 18/0mre
- 7bd0337ccalendar: Hybriel master 190aa11d (fc838894 GC correctness, #126 closure scopes, #127); gates 78/0 + 18/0mre
- ff41310ccalendar: Hybriel master 8efba065 (#126 memory, #48 lambda copy; audit: no & needed)mre
- 14ba08c7antcolony#40: mission references point to the moved missionsmre
- 99c73346antcolony#40: history (LOG.md), worker briefs (missions/) and reports moved here from antcolony, numbered per project; old numbers in antcolony docs/mission-map.mdmre
- 76edaa62calendar: Hybriel master ff51cf46 (re-vendor round, static workaround removed)mre
- 90a3fc2cdeploy.sh: back up live storage/.sessions/.env before every deploy (newest 5 kept)mre
- 6722b72ddeploy.sh: never send .git or .gitignore to Byrodinmre
- be099807State of 2026-09-27, before the move to gitoriamre