Changeset 4885eab in Klonkt for src/views/pages/user.ejs


Ignore:
Timestamp:
06/21/2026 03:05:14 PM (3 months ago)
Author:
roboburr <roboburr@…>
Branches:
main
Children:
5e61b17
Parents:
bbf9d1a
Message:

feat(i18n phase 6): remaining public + other pages translated (NL/EN/DE)

post-edit, account, newsletter, download, press kit /pers, fan-gate, link-in-bio,
my-site, password-reset (2), artists directory, auth-login Google error map,
user/hub-home/circle-feed+post/viewer-blocked/home/favourites/changelog/404/
type/tag/archive/prutter (inbox+conversation). embed-player skipped (no t
in that standalone route). 1026 view-keys cross-checked → 0 missing.

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

File:
1 edited

Legend:

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

    rbbf9d1a r4885eab  
    1919      <% } %>
    2020      <p class="user-stats">
    21         <%= posts.length %> post<%= posts.length === 1 ? '' : 's' %> on this site
     21        <%= posts.length %> <%= posts.length === 1 ? t('pusr.post_one') : t('pusr.post_many') %> <%= t('pusr.on_this_site') %>
    2222        <% if (totalPosts > posts.length) { %>
    23           &middot; <%= totalPosts %> total
     23          &middot; <%= t('pusr.total', { n: totalPosts }) %>
    2424        <% } %>
    2525        <% if (author.created_at) { %>
    26           &middot; joined <%= formatDate(author.created_at) %>
     26          &middot; <%= t('pusr.joined', { date: formatDate(author.created_at) }) %>
    2727        <% } %>
    2828      </p>
    2929      <% if (user && user.id !== author.id && site && site.enable_prutter && (typeof tenancy !== 'undefined' && tenancy === 'hub') && (typeof premiumUnlocked === 'undefined' || premiumUnlocked)) { %>
    3030        <p class="user-actions">
    31           <a href="<%= siteUrlBase %>/prutter/new?to=<%= encodeURIComponent(author.username) %>" class="btn btn-primary">💬 Send DM</a>
     31          <a href="<%= siteUrlBase %>/prutter/new?to=<%= encodeURIComponent(author.username) %>" class="btn btn-primary">💬 <%= t('pusr.send_dm') %></a>
    3232        </p>
    3333      <% } %>
     
    3636
    3737  <% if (!posts.length) { %>
    38     <p class="user-empty">No posts on this site yet.</p>
     38    <p class="user-empty"><%= t('pusr.empty') %></p>
    3939  <% } else { %>
    40     <h2 class="user-posts-heading">Posts</h2>
     40    <h2 class="user-posts-heading"><%= t('pusr.posts_heading') %></h2>
    4141    <ol class="user-posts">
    4242      <% posts.forEach(function(p) { %>
     
    5454                 hx-get="/<%= p.slug %>?partial=1" hx-target="#pcms-main" hx-swap="innerHTML"
    5555                 hx-push-url="/<%= p.slug %>" hx-indicator="#pcms-loading">
    56                 <%= p.title || '(untitled)' %>
     56                <%= p.title || t('pusr.untitled') %>
    5757              </a>
    5858            </h3>
Note: See TracChangeset for help on using the changeset viewer.