Commit Graph
2646 Commits
Author SHA1 Message Date
Juan Denis c3cfaf98fa Fix wrong-sense machine translations in vi
Context-free machine translation picked the wrong sense of short UI
labels (Disabled, Live, Service, Vaults, Grants, Run, Kill, Image,
Volume and others) and translated literals like SQL keywords and CLI
commands. Fixed against each key's UI location.
2026-10-04 23:01:34 -04:00
Juan Denis 56bd0a5627 Fix wrong-sense machine translations in tr
Context-free machine translation picked the wrong sense of short UI
labels (Disabled, Live, Service, Vaults, Grants, Run, Kill, Image,
Volume and others) and translated literals like SQL keywords and CLI
commands. Fixed against each key's UI location.
2026-10-04 23:01:33 -04:00
Juan Denis 1335eb46f6 Fix wrong-sense machine translations in th
Context-free machine translation picked the wrong sense of short UI
labels (Disabled, Live, Service, Vaults, Grants, Run, Kill, Image,
Volume and others) and translated literals like SQL keywords and CLI
commands. Fixed against each key's UI location.
2026-10-04 23:01:33 -04:00
Juan Denis 8ec31ea15c Fix wrong-sense machine translations in ru
Context-free machine translation picked the wrong sense of short UI
labels (Disabled, Live, Service, Vaults, Grants, Run, Kill, Image,
Volume and others) and translated literals like SQL keywords and CLI
commands. Fixed against each key's UI location.
2026-10-04 23:01:32 -04:00
Juan Denis 725a2b1eb7 Fix wrong-sense machine translations in pt
Context-free machine translation picked the wrong sense of short UI
labels (Disabled, Live, Service, Vaults, Grants, Run, Kill, Image,
Volume and others) and translated literals like SQL keywords and CLI
commands. Fixed against each key's UI location.
2026-10-04 23:01:31 -04:00
Juan Denis 4903fa2903 Fix wrong-sense machine translations in pl
Context-free machine translation picked the wrong sense of short UI
labels (Disabled, Live, Service, Vaults, Grants, Run, Kill, Image,
Volume and others) and translated literals like SQL keywords and CLI
commands. Fixed against each key's UI location.
2026-10-04 23:01:29 -04:00
Juan Denis 33091df11a Fix wrong-sense machine translations in ko
Context-free machine translation picked the wrong sense of short UI
labels (Disabled, Live, Service, Vaults, Grants, Run, Kill, Image,
Volume and others) and translated literals like SQL keywords and CLI
commands. Fixed against each key's UI location.
2026-10-04 23:01:28 -04:00
Juan Denis 79d91daf5e Fix wrong-sense machine translations in it
Context-free machine translation picked the wrong sense of short UI
labels (Disabled, Live, Service, Vaults, Grants, Run, Kill, Image,
Volume and others) and translated literals like SQL keywords and CLI
commands. Fixed against each key's UI location.
2026-10-04 23:01:28 -04:00
Juan Denis 0f12b49a26 Fix wrong-sense machine translations in id
Context-free machine translation picked the wrong sense of short UI
labels (Disabled, Live, Service, Vaults, Grants, Run, Kill, Image,
Volume and others) and translated literals like SQL keywords and CLI
commands. Fixed against each key's UI location.
2026-10-04 23:01:28 -04:00
Juan Denis 52a26846ac Fix wrong-sense machine translations in fr
Context-free machine translation picked the wrong sense of short UI
labels (Disabled, Live, Service, Vaults, Grants, Run, Kill, Image,
Volume and others) and translated literals like SQL keywords and CLI
commands. Fixed against each key's UI location.
2026-10-04 23:01:27 -04:00
Juan Denis 59d310bccd Fix wrong-sense machine translations in es
Context-free machine translation picked the wrong sense of short UI
labels (Disabled, Live, Service, Vaults, Grants, Run, Kill, Image,
Volume and others) and translated literals like SQL keywords and CLI
commands. Fixed against each key's UI location.
2026-10-04 23:01:27 -04:00
Juan Denis 0eafed1455 Fix wrong-sense machine translations in de
Context-free machine translation picked the wrong sense of short UI
labels (Disabled, Live, Service, Vaults, Grants, Run, Kill, Image,
Volume and others) and translated literals like SQL keywords and CLI
commands. Fixed against each key's UI location.
2026-10-04 23:01:27 -04:00
Juan Denis 15f2d733e4 Fix wrong-sense machine translations in bn
Context-free machine translation picked the wrong sense of short UI
labels (Disabled, Live, Service, Vaults, Grants, Run, Kill, Image,
Volume and others) and translated literals like SQL keywords and CLI
commands. Fixed against each key's UI location.
2026-10-04 23:01:26 -04:00
Juan Denis e54955395f Fix wrong-sense machine translations in ar
Context-free machine translation picked the wrong sense of short UI
labels (Disabled, Live, Service, Vaults, Grants, Run, Kill, Image,
Volume and others) and translated literals like SQL keywords and CLI
commands. Fixed against each key's UI location.
2026-10-04 23:01:26 -04:00
Juan Denis 1d77685819 Backfill zh-Hans translations for new UI copy 2026-10-04 22:55:09 -04:00
Juan Denis 8832a963f6 Backfill vi translations for new UI copy 2026-10-04 22:52:57 -04:00
Juan Denis 13fa6cfa1b Backfill th translations for new UI copy 2026-10-04 22:52:44 -04:00
Juan Denis bff5f32854 Backfill bn translations for new UI copy 2026-10-04 22:52:42 -04:00
Juan Denis 23368765eb Backfill tr translations for new UI copy 2026-10-04 22:52:40 -04:00
Juan Denis d4cc68093a Backfill ar translations for new UI copy 2026-10-04 22:52:39 -04:00
Juan Denis 41f41589b2 Backfill it translations for new UI copy 2026-10-04 22:52:09 -04:00
Juan Denis ffe1a1b99f Backfill ko translations for new UI copy 2026-10-04 22:52:08 -04:00
Juan Denis 2477e3b377 Backfill id translations for new UI copy 2026-10-04 22:52:08 -04:00
Juan Denis 2ffa3147d7 Backfill pl translations for new UI copy 2026-10-04 22:52:07 -04:00
Juan Denis 9357145ed6 Backfill ru translations for new UI copy 2026-10-04 22:52:06 -04:00
Juan Denis 8c007db306 Backfill zh-Hant translations for new UI copy 2026-10-04 22:35:36 -04:00
Juan Denis f67da37f07 Backfill fr translations for new UI copy 2026-10-04 22:35:36 -04:00
Juan Denis 2140f23bd7 Backfill de translations for new UI copy 2026-10-04 22:35:35 -04:00
Juan Denis 735ae9c17d Backfill pt translations for new UI copy
Also replaces the "Subsídios" mistranslation of database grants.
2026-10-04 22:35:34 -04:00
Juan Denis e9a830f8e9 Merge branch 'dev' of https://github.com/jhd3197/ServerKit into dev 2026-10-04 22:35:06 -04:00
Juan Denis 67bc3bd37b Backfill es translations for new UI copy 2026-10-04 22:33:18 -04:00
Juan Denis ffdbb6e618 Translate leftover English strings in ru 2026-10-04 22:31:07 -04:00
Juan Denis a850c95005 Skip extensions with own catalog in i18n extract
An installed extension under src/plugins/ that ships locales/en.json
owns its keys. Collecting them into core's en.json made
extract-i18n --check fail only on machines with it installed.
2026-10-04 22:27:22 -04:00
Juan Denis d2465d9817 Pass error details through and translate last labels
The API client handed translateServerError only the code and message,
so validation.required and conflict.exists could not name the field or
resource and fell back to server text; it now passes data.details.
Also translates the service-type subline, RepoConnectForm's default
labels and a ConnectionsHub fallback that the literal census skipped,
and refreshes the migration inventory counts.
2026-10-04 19:03:49 -04:00
Juan Denis 97a96d963b Give common API errors stable codes and service wording
Toasts showed backend prose verbatim, with no code to translate
against and "application" where the UI says "service". Not-found,
missing-field, permission, conflict and agent-offline errors now come
from factories in app/exceptions.py that pair one fixed message with
a dotted code (not_found.<resource>, validation.required,
permission.denied, conflict.exists, agent.offline), so the client can
translate them.

The shared app-loading helpers and the apps, domains, servers,
databases and backups routes raise those errors instead of hand
shaping bodies, which drops the hand-shaped body count from 1132 to
850. Five routes picked an HTTP status by comparing error text; they
now key off a result code or a sentinel so rewording can't change a
status. Five broad excepts that echoed str(exc) now log the crash and
return the request id instead.
2026-10-04 18:59:25 -04:00
Juan Denis e018e78d29 Translate the common server error codes
The backend now tags not-found, missing-field, permission, conflict
and agent-offline errors with stable codes, each minted with one
fixed message. Mapping them here lets those toasts render in the
user's language instead of the server's English. Codes that carry
per-call prose stay untranslated so their specifics survive.
2026-10-04 18:58:38 -04:00
Juan Denis 0cdb41caf3 Ratchet the i18n literal census to zero
Every remaining hit is now translated, so the ceiling drops to 0 and
any new untranslated string fails lint.

Three narrow rule changes keep the census honest. A number with a
bare unit symbol (`${ms} ms`, `${n}%`, GB) is a measurement, not copy.
A literal that IS the content of a <code>/<pre> (a log line,
`S3_BUCKET=...`) is a sample, though a fallback shown in its place
still counts. Arguments to reportClientError go to the server log, not
a screen. In the other direction, text starting ". " was being skipped
as a CSS selector; it is the tail of a sentence split around an
element, so it now counts.
2026-10-04 18:14:10 -04:00
Juan Denis 23d950b528 Translate inline copy in ds and shared modules
Grid menus, the filter drawer, KPI band and view pickers sit on every
list page, so their English sort, group and count labels showed in
every locale. Module-level helpers (operations, service types, monitor
scope, the AI context) now call t() at use time or carry labelKeys.
operations.test initialises i18next like errorMessage.test, since
operations.js now translates its labels.
2026-10-04 18:13:37 -04:00
Juan Denis 1a5137b685 Translate inline copy in shared components
Service, database, security, Docker, monitoring and deploy-console
components showed English busy labels, status arms and fallbacks in
every locale. They now go through t() in house style, with _one/_other
plurals for counts. Sentences that were split around an element
(". The statements are unlikely to apply cleanly.") become whole
keys, so a translator can reorder them. LogFileList and
ImportDumpModal resolve their declared keys instead of raw labels.
2026-10-04 18:12:33 -04:00
Juan Denis 878295dccf Translate inline copy on the pages
Page-level busy labels, status arms, empty-state fallbacks and
templated counts were English in every locale. They now go through
t() in house style: sentence case, "…", "Couldn't X." errors, and
_one/_other plurals where a count used to be hand-rolled. CronJobs
renders its state labels through their keys, and auth.signIn reads
"Sign in" to match the glossary.
2026-10-04 18:11:52 -04:00
Juan Denis 3951221fd3 Translate inline copy in settings and setup
Busy-state ternaries, fallbacks and templated labels in the settings
tabs, the connections hub and the setup wizard rendered English in
every locale because the census could not see them until afe81eac.
They now go through t() in house style, with real plurals for counts.
ProviderCard and the sidebar presets also resolve their declared
labelKeys instead of showing the raw label.

es.json drops errors.* keys that en.json does not define yet; they
stay in the working tree for the typed error codes still in progress.
2026-10-04 18:10:48 -04:00
Juan Denis 586d9de205 Rewrite error copy as "Couldn't X." with plurals
Errors read five ways ("Failed to X", "X failed", "Could not X",
"Error loading X", "Couldn't X") and many dropped their period.
407 core strings now say "Couldn't {verb} {object}." with any
{{placeholder}} kept after it, and the generic common.error strings
say what to do next.

Interpolated English verbs could not be translated and produced
"Failed to restart container"-style grammar for every action, so 17
sites (container, compose, service, unit, process, alert and on/off
toasts, sort labels) now pick one string per action. 37 hand-rolled
plurals ("(s)", item{{value}}, fragment + `count === 1 ? '' : 's'`)
use i18next _one/_other keys: extract-i18n reads defaultValue_one /
defaultValue_other into k_one / k_other, and check-i18n accepts a
translator's extra forms (k_few, k_many) beside the English pair.

Validation says what is valid (IP or CIDR range, JSON payloads,
verification codes, sign-in links). The PRIMARY backup badge and the
upper-cased service type are plain text; container status labels go
to sentence case. Orphaned translations pruned; the i18n literal
ceiling drops to 840.
2026-10-04 17:46:37 -04:00
Juan Denis 708c73c5da Show the server's reason in every error toast
Error toasts said either what failed ("Failed to delete service")
with the reason thrown away, or only the server's reason ("Not
found") with no subject. utils/errorMessage.js is one door for both
halves: errorReason(err) reads data.error, data.message, then
err.message (a translated error code wins), and turns bare transport
failures (Failed to fetch, Request failed (500)) into a next step;
toastError(toast, message, err) renders "What failed. Why."

Moved onto it: 236 `err.message || t(...)` sites, 58 bare t() toasts
in catch blocks that dropped the error (51 gained a catch parameter),
and 63 toasts that showed only err.message, which now say what failed
under new keys. 56 "{{message}}" interpolations and ErrorState read
the reason through errorReason. The pages/ toast ratchet counts
toastError calls, since they are the same per-page presentation.
2026-10-04 17:39:07 -04:00
Juan Denis afe81eac29 Count inline and templated copy in the i18n census
The literal census missed copy a user reads through an expression:
both arms of a JSX ternary ({saving ? 'Saving...' : 'Save'}), the
fallback of a || or ??, the right side of &&, template literals
(read as one sentence with holes as {{x}}), and the same shapes as
values of label/title/description keys with no matching *Key. It now
counts them, and reads only the arms of a ternary in copy attributes,
not its test.

Untracked extension copies under src/plugins are skipped: they are
censused in their own repos, and counting them made the host number
depend on what a machine has installed.

The ceiling moves from 0 to the honest count, 844.
2026-10-04 17:37:10 -04:00
Juan Denis 8fddc31e20 Normalize builtin extension copy
Applies the panel copy rules to the five builtin extensions. Tab,
page-title and command-palette labels go to sentence case (Cloud
servers, FTP server, Remote access, Status pages); display names stay
as extension names.

Walkthrough Studio: no period on short toasts, "Couldn't" errors, a
delete confirm that states the consequence, and four hardcoded strings
wrapped in t() (kicker, step eyebrow, default duration and action),
with Spanish for the new keys. 30 strings in all: Studio 16, cloud
provisioning 4, FTP 4, remote access 3, status 3.

Synced into frontend/src/plugins and the tracked live serverkit-status
manifest.
2026-10-04 17:33:01 -04:00
Juan Denis 6d2f90b581 Fit dashboard quick actions to the control height
Each shortcut row was 42px with card padding and radius, so a
one-row widget cropped its third action. Rows now use the 32px
control height and control radius like every other button.
2026-10-04 17:21:25 -04:00
Juan Denis 16837621f6 Use one term per concept across the UI
Applies the copy glossary to about 370 strings and 64 call sites:
service (not app/application/site), sign in/out (not log in/out),
server and panel server (not box/machine/host), Delete destroys /
Remove detaches / Uninstall is for software, New opens a form and
Create submits it, settings, backup vs snapshot vs restore point,
extensions and Features, environment variables, compose project,
two-factor authentication. Confirm dialogs that destroy something now
use the same verb on the title and the button instead of "Confirm".

Backend messages that reach toasts verbatim ("Application not
found" x95 and others) are listed in plan 88 for the typed-error
work rather than edited here.
2026-10-04 04:48:33 -04:00
Juan Denis 611dcdc00c Normalize UI copy: sentence case, no em dashes or filler
1,250 strings across 223 files, edited at their inline English
defaults (en.json regenerated, keys unchanged):
- sentence case for buttons, titles, labels, tabs and nav (827),
  with an allowlist of product names and acronyms
- every em dash rewritten (184); "successfully", neutral "!" and
  short-toast periods dropped; helper sentences end with a period
- "Are you sure?" confirms now state the consequence; "Danger Zone",
  "no going back", "to get started" and "You're all set" gone
- straight quotes, "…", "time zone", unit spacing, "and" for "&"
- Confirm/Cancel and four other hardcoded labels wrapped in t()

scripts/copy-rewrite.mjs applies a {key: English} map at every call
site; the glossary pass reuses it.
2026-10-04 04:30:42 -04:00
Juan Denis 89c59b055b Size every control, table, card and badge from the geometry tokens
Second geometry pass, over every stylesheet: control heights are 28,
32 or 40; tables have a 32px header and 40px rows (the databases grid
stays compact at 32); cards use one radius and 16px padding; about 30
page-specific pill classes follow the 20px badge spec; and shadows are
only on things that float (menus raised, modals and drawers overlay),
with focus as one ring. Glows, hover lifts and card shadows are gone,
and page overrides of the shared primitives are removed.

Sign-in and setup screens use the 40px size. Fixed chrome (status bar,
icons, avatars, chart boxes) is marked // geometry: and exempt.
Measured: distinct button heights 25 -> 13, table headers 8 -> 3,
badges 7 -> 3. check-geometry ceilings are now zero for raw shadows
and control heights.
2026-10-04 04:10:02 -04:00
Juan Denis 5e6c49c1b6 Put spacing, radii and controls on one geometry scale
Measured across the app: buttons rendered at 25 heights, 452 of them
at the browser's default 13.33px font, with 19 radii and 22 shadows.

- Controls: 28/32/40 tokens; buttons, inputs and selects default to
  32px (the dense-product norm), 28 small, 40 large. Buttons and form
  fields inherit the page font.
- Radii: four theme-driven tokens (badge 4, control 6, card 8,
  overlay 12). Theme radius now reaches every corner, not ~10%.
- Spacing: every padding/margin/gap is a $space-* token on the 4px
  grid, with 2px and 6px half steps; odd values snapped.
- Flat primary button and status dots: no gradient, glow or inner
  highlight. Badges are 20px with a 4px radius.

check-geometry rejects the legacy names and ratchets the raw shadows
and control heights that still need a judgment pass.
2026-10-04 03:29:16 -04:00