i18n: server-wide locale via lang/<code>.conf catalogs (fr, es); numeric prose auto-translated at the chokepoint, en = zero-cost passthrough

This commit is contained in:
Jean Chevronnet 2026-08-25 12:14:35 +00:00
parent 5914a6d993
commit 560c860f1d
No known key found for this signature in database
GPG key ID: 439666D63A9477E4
6 changed files with 686 additions and 0 deletions

View file

@ -372,6 +372,12 @@ antiabuse {
# --- hashident: replace ident with a stable opaque token per IP ---
# hashident yes;
# hashident_key "CHANGE_THIS_SECRET"; # HMAC key; makes the mapping unforgeable
# --- locale: server-wide language for client-facing messages. "en" (default) is
# English passthrough (zero cost). Any other <code> loads lang/<code>.conf and
# translates numeric/notice prose; protocol tokens & the S2S wire stay English.
# Rehash to switch live. Ships with fr (Français) and es (Español). ---
# locale fr;
# locale_dir "lang"; # directory holding <code>.conf catalogs (default: lang)
# --- solvemsg: unvouched users answer one arithmetic question before their
# PMs are delivered (opers & logged-in accounts exempt). ---
# solvemsg yes;