Changeset 834bcc3 in Klonkt for src/views/partials/topnav.ejs


Ignore:
Timestamp:
06/23/2026 06:14:27 PM (3 months ago)
Author:
Robin Genis <roboburr@…>
Branches:
main
Children:
d774679
Parents:
bb42dfb
Message:

i18n: translate Dutch code comments to English across src/

Comments in routes/services/views/config/middleware/assets translated to
English for the public repo. A few dev-facing throw/console message strings
were Englished too. No user-facing UI strings or i18n dictionary values changed
(src/services/i18n.js untouched). Logic unchanged.

Co-Authored-By: Claude <noreply@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/views/partials/topnav.ejs

    rbb42dfb r834bcc3  
    2727        <a href="<%= _siteUrlBase %>/" class="nav-link nav-link-admin"><%= t('nav.back_to_site') %></a>
    2828      <% } else if (typeof tenancy !== 'undefined' && tenancy === 'hub') { %>
    29         <%# Hub: de brand gaat naar de hub-home via HTMX. De chrome wordt in hub-modus
    30             altijd gerenderd en via body.on-hub (CSS) verborgen op de landing, dus htmx
    31             kan schakelen zonder full-reload → de audioplayer blijft leven. %>
     29        <%# Hub: the brand navigates to the hub home via HTMX. The chrome is always
     30            rendered in hub mode and hidden on the landing via body.on-hub (CSS), so htmx
     31            can switch without a full reload → the audio player stays alive. %>
    3232        <a class="nav-hub-home" href="/" aria-label="Home" title="Home"
    3333           hx-get="/?partial=1" hx-target="#pcms-main" hx-swap="innerHTML" hx-push-url="/" hx-indicator="#pcms-loading">
     
    207207<script>
    208208(function() {
    209   // EÉN keer bedraden. Deze chrome (topnav) wordt bij htmx-navigatie out-of-band
    210   // opnieuw ingevoegd → zonder deze guard zou dit script bij elke navigatie EXTRA
    211   // listeners stapelen, waardoor de thema-toggle 2× (of vaker) vuurde = geen netto
    212   // wisseling ("toggle werkt niet meer"). Alles hieronder is event-delegatie op
    213   // body/document, dus het werkt ook voor knoppen die ná deze run (OOB) verschijnen.
     209  // Wired ONCE. This chrome (topnav) is re-inserted out-of-band during htmx navigation
     210  // → without this guard the script would stack EXTRA listeners on every navigation,
     211  // causing the theme toggle to fire 2× (or more) = no net change ("toggle stops working").
     212  // Everything below uses event delegation on body/document, so it also works for
     213  // buttons that appear after this run (OOB).
    214214  if (window.__pcmsChromeWired) return;
    215215  window.__pcmsChromeWired = true;
     
    229229    if (e.target.closest('#search-toggle')) { openSearch(); return; }
    230230    if (e.target.closest('#search-close')) { closeSearch(); return; }
    231     // Open dropdowns (gebruikersmenu + taalkeuze) sluiten bij klik erbuiten.
     231    // Close open dropdowns (user menu + language picker) on click outside.
    232232    document.querySelectorAll('.user-menu[open], .lang-menu[open]').forEach(function(d) {
    233233      if (!d.contains(e.target)) d.removeAttribute('open');
     
    239239  });
    240240
    241   // ── Live resultaten tijdens typen ───────────────────────────────
     241  // ── Live results while typing ───────────────────────────────────
    242242  var _ST = {
    243243    posts: '<%= t('search.section_posts') %>', tracks: '<%= t('search.section_tracks') %>',
     
    280280    }, 200);
    281281  });
    282   // Klik op een suggestie → overlay sluiten (de link/boost doet de navigatie).
     282  // Click on a suggestion → close the overlay (the link/boost handles navigation).
    283283  document.addEventListener('click', function(e) {
    284284    if (e.target.closest && e.target.closest('#search-suggest a')) { var o = overlay(); if (o) o.hidden = true; }
     
    313313}
    314314
    315 /* Hub-home brand is WÉL zichtbaar — de thuisknop op artiest-/hub-pagina's. */
     315/* Hub-home brand IS visible — the home button on artist/hub pages. */
    316316.masthead-brand .nav-hub-home {
    317317  display: inline-flex; align-items: center; justify-content: center;
     
    436436  min-width: 220px;
    437437  padding: .35rem;
    438   /* Frosted glass: transparant + zware blur zodat het frosted effect duidelijk is. */
     438  /* Frosted glass: transparent + heavy blur so the frosted effect is clearly visible. */
    439439  background: color-mix(in srgb, var(--paper) 60%, transparent);
    440440  backdrop-filter: blur(34px) saturate(190%);
     
    565565.ss-all { display: block; margin-top: .35rem; padding: .55rem .6rem; border-top: 1px solid var(--rule); color: var(--accent); font-weight: 600; text-decoration: none; font-size: .9rem; }
    566566.ss-all:hover { text-decoration: underline; }
    567 /* Meldingen-bel + ongelezen-badge */
     567/* Notification bell + unread badge */
    568568.nav-notif { position: relative; }
    569569.notif-badge {
Note: See TracChangeset for help on using the changeset viewer.