gitoria

calendar

All repositories: gitoria

ReadmeCodePull requestsReleasesTicketsSettings
Commitb37cc1dab37cc1da|||PR Vendor Hybriel day59Atlasb37cc1da/components/month-view/names.hl

2.5 KB

  1. // names.hl — month and weekday names for the languages the server can write itself (the server has no Intl): the first
  2. // language of the request's Accept-Language header. Same names as the browser's Intl gives (long month, short weekday).
  3. // Any other language → null: the month view then shows neutral names until the browser fills in its own.
  4. static tables = {
  5. 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' }
  6. 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' }
  7. 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' }
  8. 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' }
  9. 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' }
  10. 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' }
  11. 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' }
  12. }
  13. // "de-DE,de;q=0.9,en;q=0.8" → 'de'; the first tag decides (browsers list their preferred language first)
  14. static primaryTag = (header) => {
  15. if (header == null || hlTypeName(header) != 'String') { return '' }
  16. first = header.split(',')[0].split(';')[0].trim().toLowerCase()
  17. return first.slice(0, 2)
  18. }
  19. // the table of the request's language, or null (unknown language, no header)
  20. static namesFor = (header) => {
  21. t = primaryTag(header)
  22. return tables[t]
  23. }

Branches

Latest commits

  • b37cc1da|||PR Vendor Hybriel day59Atlas
  • 05665102Merge branch 'vendor-day56' into mainAtlas
  • 687296fb|||PR Vendor Hybriel day56Atlas
  • a6166d4eMerge branch 'hl-standard-3' into mainAtlas
  • 6d0eb3b0|||PR Calendar day add buttons only when signed in (Kunibert minor)Atlas
  • add4b499|||PR Make calendar day actions keyboard accessibleAtlas
  • 79e49b4dMerge branch 'hl-standard' into mainAtlas
  • e9fec7bb|||PR HL-STANDARD clean-up: typed parameters, plain locals, by-reference cacheAtlas
  • eff166a4Re-vendor complete Hybriel plugins and runtime to day44mre
  • cef81394Wait for the DST fixture page instead of an unused socketmre
  • 42434f47Check lazy-session cookies after login with a stored anonymous fixturemre
  • 728e84e3Re-vendor complete Hybriel day41 plugin directoriesmre
  • cbd7ff43Backup tar: --hard-dereference, so mpackdb sidecars are never stored as hard links (Tracker's finding)mre
  • 59d1da0acalendar: plain declarations instead of needless let in 9 files (calendar#17): 49 declarations that are never reassigned; reassigned ones and the timer closure's p stay letmre
  • f5415cf9calendar: the Style blocks in the language's nested form (calendar#16): rules named after the View's own elements with their children nested, pseudo-classes and @media nested, merged duplicate select rule; same CSS, shots identical in Chrome at 4 sizesmre
  • edb7c947calendar: the sign-in callback keeps the session it finds and signs it in (same cookie, nothing signed out; ident#28); security gate 56+4 failing → 60 passedmre
  • bf8cc0fcStyles move into their components: the shell's styles into main.hl, the events and the editors into the month view's Style block; styles.hl keeps only the theme inherit, the accent and the message line; .gitignore ignores a bin symlink too; tests/styles-shots.mjs for the before/after pixel comparemre
  • 5d8579d7README: login.js stays by caramboleyo's explicit rulemre
  • cc759328Merge sb3-standby: calendar deploys through its standbymre
  • f2fcdc6dcalendar: a standby container (port 45015, profile standby, reminder clock off) and a /health page; deploy hands over through standby-swap.sh without a gapmre