Changeset bbf9d1a in Klonkt for src/views/pages/admin-sites.ejs


Ignore:
Timestamp:
06/21/2026 02:32:39 PM (3 months ago)
Author:
roboburr <roboburr@…>
Branches:
main
Children:
4885eab
Parents:
929d98d
Message:

feat(i18n phase 5): all admin sub-pages translated (NL/EN/DE)

settings, site-edit, seo, google, audio, stats, playlists, users, sites,
comments, circle, shows, newsletter, updates, epk, help. ~520 new keys
per language. Loop-shadowing of t() resolved by fetching before the loop. 709
view-keys cross-checked against the dictionary (0 missing).

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/views/pages/admin-sites.ejs

    r929d98d rbbf9d1a  
    11<div class="container ax-page">
    22
    3   <p><a href="/admin" class="btn">&larr; Beheer</a></p>
     3  <p><a href="/admin" class="btn">&larr; <%= t('asit2.back') %></a></p>
    44  <header class="ax-header">
    55    <div>
    6       <h1>Sites</h1>
    7       <p class="ax-tagline">Beheer alle sites op deze installatie.</p>
     6      <h1><%= t('asit2.title') %></h1>
     7      <p class="ax-tagline"><%= t('asit2.tagline') %></p>
    88    </div>
    99  </header>
     
    1313
    1414  <div class="ax-actions-bar">
    15     <a href="/admin/sites/new" class="ax-btn ax-btn-primary">+ Nieuwe site</a>
     15    <a href="/admin/sites/new" class="ax-btn ax-btn-primary">+ <%= t('asit2.new_site') %></a>
    1616  </div>
    1717
     
    2020      <div class="ax-empty">
    2121        <div class="ax-empty-icon">🌐</div>
    22         <p>Nog geen sites.</p>
    23         <p class="ax-empty-sub">Maak er een via de knop hierboven.</p>
     22        <p><%= t('asit2.empty') %></p>
     23        <p class="ax-empty-sub"><%= t('asit2.empty_sub') %></p>
    2424      </div>
    2525    </div>
    2626  <% } else { %>
     27    <%
     28      var _s_primary    = t('asit2.pill_primary');
     29      var _s_primary_t  = t('asit2.pill_primary_title');
     30      var _s_public     = t('asit2.pill_public');
     31      var _s_public_t   = t('asit2.pill_public_title');
     32      var _s_private    = t('asit2.pill_private');
     33      var _s_private_t  = t('asit2.pill_private_title');
     34      var _s_noindex    = t('asit2.pill_noindex');
     35      var _s_noindex_t  = t('asit2.pill_noindex_title');
     36      var _s_by         = t('asit2.by');
     37      var _s_t_posts    = t('asit2.t_posts');
     38      var _s_l_posts    = t('asit2.l_posts');
     39      var _s_t_created  = t('asit2.t_created');
     40      var _s_l_created  = t('asit2.l_created');
     41      var _s_makeprim   = t('asit2.make_primary');
     42      var _s_makeprim_t = t('asit2.make_primary_title');
     43      var _s_makeprim_c = t('asit2.make_primary_confirm');
     44      var _s_edit       = t('asit2.edit');
     45      var _s_del        = t('asit2.delete');
     46      var _s_del_c      = t('asit2.delete_confirm');
     47    %>
    2748    <ul class="ax-list">
    2849      <% sites.forEach(function(s) { %>
     
    3758                <a href="/user/<%= s.slug %>"><%= s.title %></a>
    3859                <% if (s.is_primary) { %>
    39                   <span class="ax-pill ax-pill-primary" title="Hoofd-/labelsite van deze installatie">★ primair</span>
     60                  <span class="ax-pill ax-pill-primary" title="<%= _s_primary_t %>">★ <%= _s_primary %></span>
    4061                <% } %>
    4162                <% if (s.is_public) { %>
    42                   <span class="ax-pill ax-pill-ok" title="Publiek zichtbaar">✓ public</span>
     63                  <span class="ax-pill ax-pill-ok" title="<%= _s_public_t %>">✓ <%= _s_public %></span>
    4364                <% } else { %>
    44                   <span class="ax-pill" title="Niet publiek">🔒 private</span>
     65                  <span class="ax-pill" title="<%= _s_private_t %>">🔒 <%= _s_private %></span>
    4566                <% } %>
    4667                <% if (!s.robots_index) { %>
    47                   <span class="ax-pill" title="Niet geïndexeerd door zoekmachines">🚫🤖 noindex</span>
     68                  <span class="ax-pill" title="<%= _s_noindex_t %>">🚫🤖 <%= _s_noindex %></span>
    4869                <% } %>
    4970              </div>
     
    5273                <% if (s.owner_username) { %>
    5374                  <span class="ax-track-sep">·</span>
    54                   <span>door <%= s.owner_username %></span>
     75                  <span><%= _s_by %> <%= s.owner_username %></span>
    5576                <% } %>
    5677              </div>
     
    5980
    6081          <div class="ax-site-stats">
    61             <span class="ax-stat" title="Aantal posts">
     82            <span class="ax-stat" title="<%= _s_t_posts %>">
    6283              <span class="ax-stat-num"><%= s.post_count %></span>
    63               <span class="ax-stat-label">posts</span>
     84              <span class="ax-stat-label"><%= _s_l_posts %></span>
    6485            </span>
    65             <span class="ax-stat" title="Aangemaakt op">
     86            <span class="ax-stat" title="<%= _s_t_created %>">
    6687              <span class="ax-stat-num ax-stat-date"><%= formatDate(s.created_at) %></span>
    67               <span class="ax-stat-label">created</span>
     88              <span class="ax-stat-label"><%= _s_l_created %></span>
    6889            </span>
    6990          </div>
     
    7293            <% if (!s.is_primary && (typeof canMutate === 'undefined' || canMutate)) { %>
    7394              <form method="post" action="/admin/sites/<%= s.slug %>/make-primary" style="margin:0;display:inline"
    74                     onsubmit="return confirm('Deze site instellen als de primaire/hoofd-site?')">
    75                 <button type="submit" class="ax-icon-btn" aria-label="Maak primair" title="Maak primaire/hoofd-site">★</button>
     95                    onsubmit="return confirm('<%= _s_makeprim_c %>')">
     96                <button type="submit" class="ax-icon-btn" aria-label="<%= _s_makeprim %>" title="<%= _s_makeprim_t %>">★</button>
    7697              </form>
    7798            <% } %>
    78             <a href="/admin/sites/<%= s.slug %>/edit" class="ax-icon-btn" aria-label="Bewerken" title="Bewerken">✎</a>
     99            <a href="/admin/sites/<%= s.slug %>/edit" class="ax-icon-btn" aria-label="<%= _s_edit %>" title="<%= _s_edit %>">✎</a>
    79100            <form method="post" action="/admin/sites/<%= s.slug %>/delete" class="ax-delete-form"
    80                   onsubmit="return confirm('Site verwijderen? Lukt alleen als er geen posts zijn.')">
    81               <button type="submit" class="ax-icon-btn ax-icon-btn-danger" aria-label="Verwijderen" title="Verwijderen">🗑</button>
     101                  onsubmit="return confirm('<%= _s_del_c %>')">
     102              <button type="submit" class="ax-icon-btn ax-icon-btn-danger" aria-label="<%= _s_del %>" title="<%= _s_del %>">🗑</button>
    82103            </form>
    83104          </div>
Note: See TracChangeset for help on using the changeset viewer.