Changeset 91c0a39 in Klonkt for src/views/pages/downloads.ejs


Ignore:
Timestamp:
06/20/2026 01:50:48 PM (3 months ago)
Author:
roboburr <roboburr@…>
Branches:
main
Children:
66cfbaa
Parents:
03fa548
Message:

feat(i18n phase 2): admin dashboard + public calendar/downloads translated + language switcher in admin

  • Language switcher (select) also in the admin dashboard → choice for god/admin.
  • Translated: admin dashboard (title, tagline, all shortcuts, statistics, sections, table headers, post row), public calendar (shows) + downloads (incl. fix: loop var 't' shadowed the translate t() → label fetched upfront).
  • Dictionary extended (nl/en/de). Remaining admin sub-pages to follow.

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/views/pages/downloads.ejs

    r03fa548 r91c0a39  
    11<%
    22  var ts = (typeof dlTracks !== 'undefined') ? dlTracks : [];
     3  // NB: de loop hieronder gebruikt 't' als track-variabele, die de vertaal-t()
     4  // overschaduwt. Daarom het knoplabel hier al ophalen.
     5  var _dlBtn = t('downloads.btn');
    36%>
    47<article class="container post-page">
    58  <%- include('../partials/post-nav', { newerPost: (typeof newerPost !== 'undefined' ? newerPost : null), olderPost: (typeof olderPost !== 'undefined' ? olderPost : null) }) %>
    69  <section class="dls">
    7   <h1 class="dls-h1">Downloads</h1>
    8   <p class="dls-sub">Gratis te downloaden — laat je e-mailadres achter en je krijgt het bestand.</p>
     10  <h1 class="dls-h1"><%= t('downloads.title') %></h1>
     11  <p class="dls-sub"><%= t('downloads.sub') %></p>
    912
    1013  <% if (!ts.length) { %>
    11     <p class="dls-empty">Er staan momenteel geen downloads klaar.</p>
     14    <p class="dls-empty"><%= t('downloads.empty') %></p>
    1215  <% } else { %>
    1316    <ul class="dls-list">
     
    1922            <% if (t.artist) { %><span class="dls-artist"><%= t.artist %></span><% } %>
    2023          </span>
    21           <a class="dls-btn" href="<%= siteUrlBase %>/download/<%= t.id %>">⬇ Download</a>
     24          <a class="dls-btn" href="<%= siteUrlBase %>/download/<%= t.id %>"><%= _dlBtn %></a>
    2225        </li>
    2326      <% }); %>
Note: See TracChangeset for help on using the changeset viewer.