Changeset 544cd86 in Klonkt


Ignore:
Timestamp:
06/16/2026 07:09:01 AM (3 months ago)
Author:
roboburr <roboburr@…>
Branches:
main
Children:
d15b27f
Parents:
2c246d4
Message:

Appearance: full page translated to English (consistent with the rest of Admin)

All labels/headings/hints/buttons translated (Identity, Appearance,
Behaviour, Save changes, etc.) + Twitter→Twitter/X. Text only; no
functional changes.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@…>

File:
1 edited

Legend:

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

    r2c246d4 r544cd86  
    11<div class="container admin-site-edit-page">
    22  <p><a href="/admin" class="btn">&larr; Beheer</a></p>
    3   <h1><%= isNew ? 'New site' : 'Uiterlijk: ' + site.title %></h1>
     3  <h1><%= isNew ? 'Nieuwe site' : 'Uiterlijk: ' + site.title %></h1>
    44
    55  <% if (typeof success !== 'undefined' && success) { %><div class="audio-flash audio-flash--ok"><%= success %></div><% } %>
     
    99
    1010    <fieldset>
    11       <legend>Identity</legend>
    12       <label>
    13         <span>Slug <% if (!isNew) { %><em>(immutable)</em><% } %></span>
     11      <legend>Identiteit</legend>
     12      <label>
     13        <span>Slug <% if (!isNew) { %><em>(vast)</em><% } %></span>
    1414        <input type="text" name="slug" value="<%= site.slug %>" required <% if (!isNew) { %>readonly<% } %>
    1515               pattern="[a-z0-9_-]{2,40}"
     
    1717      </label>
    1818      <label>
    19         <span>Title <small class="form-hint-inline">— shown in the header and as display name</small></span>
     19        <span>Titel <small class="form-hint-inline">— getoond in de kop en als weergavenaam</small></span>
    2020        <input type="text" name="title" value="<%= site.title || '' %>" required maxlength="200">
    2121      </label>
    2222      <label>
    23         <span>Tagline <small class="form-hint-inline">— short one-liner</small></span>
     23        <span>Tagline <small class="form-hint-inline">— korte oneliner</small></span>
    2424        <input type="text" name="tagline" value="<%= site.tagline || '' %>" maxlength="200">
    2525      </label>
    2626      <label>
    27         <span>Bio / description <small class="form-hint-inline">— shown in the profile header and used for SEO</small></span>
     27        <span>Bio / omschrijving <small class="form-hint-inline">— getoond in de profielkop en gebruikt voor SEO</small></span>
    2828        <textarea name="description" rows="3" maxlength="500"><%= site.description || '' %></textarea>
    2929      </label>
    3030      <label>
    31         <span>Profile photo</span>
     31        <span>Profielfoto</span>
    3232        <div class="photo-picker" id="photo-picker">
    3333          <div class="photo-thumb" id="photo-thumb" <%= site.profile_photo ? '' : 'data-empty' %>>
     
    4040            <input type="text" name="profile_photo" id="photo-url" value="<%= site.profile_photo || '' %>" placeholder="/media/avatars/foo.jpg of https://…">
    4141            <div class="photo-actions">
    42               <button type="button" class="btn" id="photo-upload-trigger">📷 Upload</button>
     42              <button type="button" class="btn" id="photo-upload-trigger">📷 Uploaden</button>
    4343              <button type="button" class="btn" id="photo-clear" <%= site.profile_photo ? '' : 'hidden' %>>Verwijder</button>
    4444              <small id="photo-status" class="form-hint photo-status"></small>
     
    4949      </label>
    5050      <label>
    51         <span>Language (ISO code)</span>
     51        <span>Taal (ISO-code)</span>
    5252        <input type="text" name="language" value="<%= site.language || 'nl' %>" maxlength="8">
    5353      </label>
    5454      <label class="cb">
    5555        <input type="checkbox" name="profile_enabled" value="1" <%= site.profile_enabled ? 'checked' : '' %>>
    56         <span>Show profile header below the nav</span>
     56        <span>Profielkop tonen onder de navigatie</span>
    5757      </label>
    5858    </fieldset>
    5959
    6060    <fieldset>
    61       <legend>Appearance</legend>
     61      <legend>Vormgeving</legend>
    6262
    6363      <%# ── Curated accent picker ───────────────────────────────────────
     
    6666          still what's stored in the DB — we just constrain WHICH hex. %>
    6767      <fieldset class="accent-grid">
    68         <legend>Accent color</legend>
     68        <legend>Accentkleur</legend>
    6969        <% const _curAccent = (site.accent || '#c2410c').toLowerCase(); %>
    7070        <% accents.forEach(function(a) { %>
     
    8383          visitors with a localStorage override, still win over this default. %>
    8484      <fieldset class="theme-default">
    85         <legend>Default theme for new visitors</legend>
     85        <legend>Standaardthema voor nieuwe bezoekers</legend>
    8686        <% const td = site.theme_override || ''; %>
    8787        <label class="cb">
     
    9191        <label class="cb">
    9292          <input type="radio" name="theme_override" value="light" <%= td === 'light' ? 'checked' : '' %>>
    93           <span>Light</span>
     93          <span>Licht</span>
    9494        </label>
    9595        <label class="cb">
    9696          <input type="radio" name="theme_override" value="dark"  <%= td === 'dark'  ? 'checked' : '' %>>
    97           <span>Dark</span>
     97          <span>Donker</span>
    9898        </label>
    9999      </fieldset>
    100100
    101101      <fieldset class="palette-grid">
    102         <legend>Palette</legend>
     102        <legend>Palet</legend>
    103103        <% palettes.forEach(function(p) { %>
    104104          <label class="palette-swatch">
     
    121121
    122122    <fieldset>
    123       <legend>Behaviour</legend>
     123      <legend>Gedrag</legend>
    124124      <label class="cb">
    125125        <input type="checkbox" name="is_public" value="1" <%= site.is_public ? 'checked' : '' %>>
    126         <span>Public site (uncheck for closed circle)</span>
     126        <span>Publieke site (uitvinken voor een besloten kring)</span>
    127127      </label>
    128128      <label class="cb">
    129129        <input type="checkbox" name="robots_index" value="1" <%= site.robots_index ? 'checked' : '' %>>
    130         <span>Search engines may index (sitemap.xml is hidden if off)</span>
     130        <span>Zoekmachines mogen indexeren (sitemap.xml is verborgen indien uit)</span>
    131131      </label>
    132132      <label class="cb">
    133133        <input type="checkbox" name="require_login_to_comment" value="1" <%= site.require_login_to_comment ? 'checked' : '' %>>
    134         <span>Require login to comment</span>
    135       </label>
    136       <label>
    137         <span>Comment moderation</span>
     134        <span>Inloggen vereist om te reageren</span>
     135      </label>
     136      <label>
     137        <span>Reactie-moderatie</span>
    138138        <select name="comments_moderation_mode">
    139           <option value="trust"    <%= (site.comments_moderation_mode || 'trust') === 'trust'    ? 'selected' : '' %>>Trust mode (auto-approve)</option>
    140           <option value="moderate" <%= site.comments_moderation_mode === 'moderate' ? 'selected' : '' %>>Moderate (queue for review)</option>
     139          <option value="trust"    <%= (site.comments_moderation_mode || 'trust') === 'trust'    ? 'selected' : '' %>>Vertrouwen (automatisch goedkeuren)</option>
     140          <option value="moderate" <%= site.comments_moderation_mode === 'moderate' ? 'selected' : '' %>>Modereren (eerst in de wachtrij)</option>
    141141        </select>
    142142      </label>
    143143      <label class="cb">
    144144        <input type="checkbox" name="enable_audio_player" value="1" <%= site.enable_audio_player ? 'checked' : '' %>>
    145         <span>Enable audio player + embeds</span>
     145        <span>Audiospeler + embeds inschakelen</span>
    146146      </label>
    147147      <%# Prutter is een Hub-only premium-functie — toggle alleen tonen in Hub-modus. %>
     
    155155
    156156    <fieldset class="profile-links-fieldset">
    157       <legend>Social / streaming links</legend>
    158       <p class="form-hint">Shown as branded icons on the profile header. Add as many as you like.</p>
     157      <legend>Social / streaming-links</legend>
     158      <p class="form-hint">Getoond als merk-iconen op de profielkop. Voeg er zoveel toe als je wilt.</p>
    159159
    160160      <div id="profile-links-rows">
     
    184184      </template>
    185185
    186       <button type="button" id="profile-link-add" class="btn">+ Add link</button>
     186      <button type="button" id="profile-link-add" class="btn">+ Link toevoegen</button>
    187187    </fieldset>
    188188
    189189    <fieldset>
    190       <legend>Feed view</legend>
    191       <label>
    192         <span>Default view for the homepage</span>
     190      <legend>Feed-weergave</legend>
     191      <label>
     192        <span>Standaardweergave voor de homepage</span>
    193193        <select name="feed_view_default">
    194           <option value="timeline" <%= (site.feed_view_default || 'timeline') === 'timeline' ? 'selected' : '' %>>Timeline (chronological list)</option>
    195           <option value="grid"     <%= site.feed_view_default === 'grid' ? 'selected' : '' %>>Grid (cards)</option>
     194          <option value="timeline" <%= (site.feed_view_default || 'timeline') === 'timeline' ? 'selected' : '' %>>Tijdlijn (chronologische lijst)</option>
     195          <option value="grid"     <%= site.feed_view_default === 'grid' ? 'selected' : '' %>>Grid (kaarten)</option>
    196196        </select>
    197197      </label>
    198198      <label class="cb">
    199199        <input type="checkbox" name="feed_view_switch" value="1" <%= site.feed_view_switch ? 'checked' : '' %>>
    200         <span>Show timeline ↔ grid switcher above the feed</span>
     200        <span>Tijdlijn ↔ grid-schakelaar boven de feed tonen</span>
    201201      </label>
    202202      <label class="cb">
    203203        <input type="checkbox" name="show_search" value="1" <%= site.show_search ? 'checked' : '' %>>
    204         <span>Show search button in nav</span>
     204        <span>Zoekknop in de navigatie tonen</span>
    205205      </label>
    206206      <label class="cb">
    207207        <input type="checkbox" name="show_archive_link" value="1" <%= site.show_archive_link ? 'checked' : '' %>>
    208         <span>Show archive link in nav</span>
     208        <span>Archief-link in de navigatie tonen</span>
    209209      </label>
    210210    </fieldset>
     
    213213      <legend>SEO &amp; social</legend>
    214214      <label>
    215         <span>Title template (use {title} and {site})</span>
     215        <span>Titel-sjabloon (gebruik {title} en {site})</span>
    216216        <input type="text" name="title_template" value="<%= site.title_template || '{title} — {site}' %>" maxlength="200">
    217217      </label>
    218218      <label>
    219         <span>Canonical base URL (for production HTTPS)</span>
    220         <input type="text" name="canonical" value="<%= site.canonical || '' %>" placeholder="https://your-domain.com">
    221       </label>
    222       <label>
    223         <span>Twitter handle (with @)</span>
    224         <input type="text" name="twitter" value="<%= site.twitter || '' %>" placeholder="@yourname" maxlength="64">
     219        <span>Canonieke basis-URL (voor productie-HTTPS)</span>
     220        <input type="text" name="canonical" value="<%= site.canonical || '' %>" placeholder="https://jouw-domein.com">
     221      </label>
     222      <label>
     223        <span>Twitter / X-handle (met @)</span>
     224        <input type="text" name="twitter" value="<%= site.twitter || '' %>" placeholder="@jouwnaam" maxlength="64">
    225225      </label>
    226226      <details>
    227         <summary>Search-engine verification</summary>
     227        <summary>Zoekmachine-verificatie</summary>
    228228        <label>
    229           <span>Google site verification</span>
     229          <span>Google site-verificatie</span>
    230230          <input type="text" name="google_verification"    value="<%= site.google_verification    || '' %>" maxlength="200">
    231231        </label>
     
    246246
    247247    <fieldset>
    248       <legend>Custom CSS &amp; HTML <em>(optional)</em></legend>
    249       <label>
    250         <span>Custom CSS (injected as &lt;style&gt; in &lt;head&gt;)</span>
     248      <legend>Eigen CSS &amp; HTML <em>(optioneel)</em></legend>
     249      <label>
     250        <span>Eigen CSS (geïnjecteerd als &lt;style&gt; in &lt;head&gt;)</span>
    251251        <textarea name="custom_css" rows="3" placeholder=".foo { color: red; }"><%= site.custom_css || '' %></textarea>
    252252      </label>
    253253      <label>
    254         <span>Custom &lt;head&gt; HTML (analytics, extra metas)</span>
     254        <span>Eigen &lt;head&gt;-HTML (analytics, extra meta&rsquo;s)</span>
    255255        <textarea name="custom_head_html" rows="3" placeholder="<meta name=&quot;...&quot;>"><%= site.custom_head_html || '' %></textarea>
    256256      </label>
    257257      <label>
    258         <span>Custom footer HTML</span>
     258        <span>Eigen footer-HTML</span>
    259259        <textarea name="custom_foot_html" rows="3"><%= site.custom_foot_html || '' %></textarea>
    260260      </label>
    261261    </fieldset>
    262262
    263     <button type="submit" class="btn btn-primary"><%= isNew ? 'Create site' : 'Save changes' %></button>
     263    <button type="submit" class="btn btn-primary"><%= isNew ? 'Site aanmaken' : 'Wijzigingen opslaan' %></button>
    264264  </form>
    265265</div>
Note: See TracChangeset for help on using the changeset viewer.