Swedish interface: labels and short texts across every page

About 1,600 more headings, buttons, table columns, status words, placeholders and short messages are translated. Tables of words built when the app loads are now read when they are drawn, so they follow the language, and a test fails if text is translated at load time.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
bobbanandClaude Sonnet 5.5 committed 2026-11-16 20:16:39 +01:00
1 parent 25183c0320
commit 6e39430a1f
173 files changed
+3922 -2245

No files matched your search

+10 -10
View File
@@ -8,9 +8,9 @@ type Kind = NewDnsZoneInput["type"];
type Protocol = "Udp" | "Tcp" | "Tls" | "Https" | "Quic";
const KINDS: { value: Kind; label: string; hint: string }[] = [
{ value: "Primary", label: "Primary zone", hint: "This server holds the zone: its records are made and changed here. It starts with the records Technitium makes for it; the rest are added under Records." },
{ value: "Secondary", label: "Secondary zone", hint: "A copy of a zone another server holds. This server fetches it from there and keeps it up to date; it can only be read here." },
{ value: "Forwarder", label: "Forwarder zone", hint: "Questions about this name (and under it) are passed on to another DNS server — for a domain another server answers, such as a company network." },
{ value: "Primary", get label() { return t("Primary zone"); }, hint: "This server holds the zone: its records are made and changed here. It starts with the records Technitium makes for it; the rest are added under Records." },
{ value: "Secondary", get label() { return t("Secondary zone"); }, hint: "A copy of a zone another server holds. This server fetches it from there and keeps it up to date; it can only be read here." },
{ value: "Forwarder", get label() { return t("Forwarder zone"); }, hint: "Questions about this name (and under it) are passed on to another DNS server — for a domain another server answers, such as a company network." },
];
/** The servers a person typed, one to a line or separated by commas or spaces. */
@@ -51,7 +51,7 @@ export default function DnsNewZone({ providerId, providerName, onCreated, onCanc
<ErrorNotice error={error} />
<div className="mb-2">
<label className="form-label" htmlFor="newzone-kind">
Kind
{t("Kind")}
</label>
<select id="newzone-kind" className="form-select form-select-sm" value={kind} onChange={(e) => setKind(e.target.value as Kind)}>
{KINDS.map((k) => (
@@ -72,23 +72,23 @@ export default function DnsNewZone({ providerId, providerName, onCreated, onCanc
{kind === "Secondary" && (
<div className="mb-2">
<label className="form-label" htmlFor="newzone-primaries">
Servers that hold it
{t("Servers that hold it")}
</label>
<input id="newzone-primaries" className="form-control form-control-sm" required maxLength={600} autoComplete="off" placeholder="10.0.0.2, ns1.example.lan" value={primaries} onChange={(e) => setPrimaries(e.target.value)} />
<div className="text-secondary small mt-1">Addresses or host names, separated by commas.</div>
<div className="text-secondary small mt-1">{t("Addresses or host names, separated by commas.")}</div>
</div>
)}
{kind === "Forwarder" && (
<div className="row g-2 mb-2">
<div className="col-md-6">
<label className="form-label" htmlFor="newzone-forwarder">
Pass questions to
{t("Pass questions to")}
</label>
<input id="newzone-forwarder" className="form-control form-control-sm" required maxLength={255} autoComplete="off" placeholder="10.1.1.1 — or this-server" value={forwarder} onChange={(e) => setForwarder(e.target.value)} />
</div>
<div className="col-md-3">
<label className="form-label" htmlFor="newzone-protocol">
Protocol
{t("Protocol")}
</label>
<select id="newzone-protocol" className="form-select form-select-sm" value={protocol} onChange={(e) => setProtocol(e.target.value as Protocol)}>
{(["Udp", "Tcp", "Tls", "Https", "Quic"] as Protocol[]).map((p) => (
@@ -101,14 +101,14 @@ export default function DnsNewZone({ providerId, providerName, onCreated, onCanc
<div className="col-md-3 d-flex align-items-end">
<label className="form-check mb-1">
<input type="checkbox" className="form-check-input" checked={dnssec} onChange={(e) => setDnssec(e.target.checked)} />
<span className="form-check-label">Check DNSSEC</span>
<span className="form-check-label">{t("Check DNSSEC")}</span>
</label>
</div>
</div>
)}
<div className="d-flex gap-2 mt-3">
<button type="submit" className="btn btn-sm btn-primary" disabled={busy || name.trim() === ""}>
{busy ? "Making…" : "Make zone"}
{busy ? "Making…" : t("Make zone")}
</button>
<button type="button" className="btn btn-sm btn-link text-secondary" onClick={onCancel} disabled={busy}>
{t("Cancel")}