Changeset 91c0a39 in Klonkt for src/views/pages/shows.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/shows.ejs

    r03fa548 r91c0a39  
    44%>
    55<section class="sh">
    6   <h1 class="sh-h1">Agenda</h1>
     6  <h1 class="sh-h1"><%= t('agenda.title') %></h1>
    77
    8   <% if (st === 'done') { %><div class="sh-msg">✓ Je staat op de lijst — je hoort het zodra er een evenement wordt aangekondigd.</div>
    9   <% } else if (st === 'check') { %><div class="sh-msg">✉ Check je mail om je aanmelding te bevestigen.</div>
     8  <% if (st === 'done') { %><div class="sh-msg"><%= t('agenda.msg_done') %></div>
     9  <% } else if (st === 'check') { %><div class="sh-msg"><%= t('agenda.msg_check') %></div>
    1010  <% } else if (st === 'error') { %><div class="sh-msg sh-bad"><%= (typeof notifyMsg!=='undefined')?notifyMsg:'Er ging iets mis.' %></div><% } %>
    1111
    1212  <% if (!ss.length) { %>
    13     <p class="sh-empty">Geen aangekondigde evenementen op dit moment.</p>
     13    <p class="sh-empty"><%= t('agenda.empty') %></p>
    1414  <% } else { %>
    1515    <ul class="sh-list">
     
    2525            <% if (s.notes) { %><span class="sh-notes"><%= s.notes %></span><% } %>
    2626          </span>
    27           <% if (s.ticket_url) { %><a class="sh-tix" href="<%= s.ticket_url %>" target="_blank" rel="noopener">Tickets</a><% } %>
     27          <% if (s.ticket_url) { %><a class="sh-tix" href="<%= s.ticket_url %>" target="_blank" rel="noopener"><%= t('agenda.tickets') %></a><% } %>
    2828        </li>
    2929      <% }); %>
     
    3333  <% if (!(typeof footerNewsletter !== 'undefined' && footerNewsletter)) { %>
    3434  <div class="sh-notify">
    35     <h2 class="sh-h2">Mis geen evenement</h2>
    36     <p class="sh-sub">Laat je e-mail achter en je krijgt een seintje bij een nieuw evenement. Uitschrijven kan altijd.</p>
     35    <h2 class="sh-h2"><%= t('agenda.notify_h') %></h2>
     36    <p class="sh-sub"><%= t('agenda.notify_sub') %></p>
    3737    <form method="POST" action="<%= siteUrlBase %>/shows/notify" class="sh-form">
    38       <input type="email" name="email" required placeholder="jouw@email.nl" autocomplete="email">
    39       <button type="submit" class="sh-btn">Houd me op de hoogte</button>
     38      <input type="email" name="email" required placeholder="<%= t('common.email_placeholder') %>" autocomplete="email">
     39      <button type="submit" class="sh-btn"><%= t('agenda.notify_btn') %></button>
    4040    </form>
    4141  </div>
Note: See TracChangeset for help on using the changeset viewer.