Changeset 834bcc3 in Klonkt for src/views/partials/bottom-tab.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/bottom-tab.ejs

    rbb42dfb r834bcc3  
    1515const _ownProfile  = user ? ('/users/' + user.username) : null;
    1616const _isHub       = (typeof tenancy !== 'undefined' && tenancy === 'hub');
    17 // Home gaat in hub-modus ALTIJD naar de hub-root (/), niet naar de sub-home van
    18 // een artiest. In solo/circle is _siteUrlBase leeg, dus dat blijft '/'.
     17// Home in hub mode ALWAYS goes to the hub root (/), not to an artist's sub-home.
     18// In solo/circle _siteUrlBase is empty, so it stays '/'.
    1919const _homeHref    = (_isHub ? '' : _siteUrlBase) + '/';
    2020
     
    2727
    2828let _active = null;
    29 // In hub is Home alleen actief op de échte hub-root, niet op een artiest-sub-home.
     29// In hub, Home is only active on the real hub root, not on an artist sub-home.
    3030if (_isHub ? (_path === '/') : (_p === '/' || _p === '')) _active = 'home';
    3131else if (_p.indexOf('/search') === 0 || _p.indexOf('/tag/') === 0 || _p.indexOf('/type/') === 0) _active = 'search';
     
    3838
    3939  <!-- Home -->
    40   <%# htmx-navigatie (geen full reload): de persistente audioplayer in document.body
    41       overleeft dan, dus de muziek verspringt niet bij het navigeren. Op mobiel is de
    42       top-balk toch verborgen, dus een context-reset via full-load is hier niet nodig. %>
     40  <%# htmx navigation (no full reload): the persistent audio player in document.body
     41      survives, so music does not skip when navigating. On mobile the top bar is hidden
     42      anyway, so a context reset via full-load is not needed here. %>
    4343  <a class="bottom-tab-item<%= _active === 'home' ? ' is-active' : '' %>"
    4444     href="<%= _homeHref %>"
     
    308308
    309309<script>
    310 // Bottom-tab zoekknop → opent #search-overlay. Via event-delegatie + de overlay
    311 // ELKE klik opnieuw opzoeken: de overlay zit in de chrome die bij htmx-navigatie
    312 // OOB vervangen wordt, dus een één-keer-opgevangen referentie verschaalt
    313 // (knop deed daarna niets). Guard tegen dubbel-wiren.
     310// Bottom-tab search button → opens #search-overlay. Using event delegation + looking
     311// up the overlay on EVERY click: the overlay lives in the chrome that is OOB-replaced
     312// during htmx navigation, so a once-captured reference goes stale
     313// (button did nothing afterwards). Guard against double-wiring.
    314314(function() {
    315315  if (window.__btSearchWired) return;
Note: See TracChangeset for help on using the changeset viewer.