fix(i18n): tallies of participles read as labels

Texts that count with participles or adjectives still put a bare number in
front of a word that agrees with it in Italian, so one failure read "1 non
riuscite": the import result and its Done toast, the archive health line and
the thumbnail and import job log lines. They now read as labels in English and
Italian ("Copied: 40 · failed: 1"), like the scan and verify log lines; their
old translations leave the other 36 catalogs until the next translation pass.
The uploader's progress keeps the mockup's English and uses labels in Italian,
and the admin dashboard's upload total no longer agrees with the number.

`i18n check` now also fails on an English text that tallies two or more counts
with participles or adjectives. A single "{0} failed" is left alone, since the
placeholder there is as often a name or a size as a count.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012iLMBNwBE2GnphAsu4cjaC
This commit is contained in:
Claude committed 2026-10-12 11:09:17 +00:00
1 parent 4850af2443
commit 082ff1e3eb
84 files changed
+76 -162

No files matched your search

+3 -2
View File
@@ -245,8 +245,9 @@ run as server jobs whose progress comes from the events.
- Labels ≤ 30 chars, tooltips/errors/advisor reasons ≤ 200 chars (one or two sentences).
- Plurals: `Key.one` / `Key.few` / `Key.many` / `Key.other`, resolved by `Loc.Plural("Key", n)`; keys that travel as
data (analysis findings, advisor reasons) by `Loc.Text(key, args)`, with the count as their first argument. A text
with two or more counts reads as labels ("Frames: 300, warnings: 2"). `i18n check` fails on an English text that
puts a number before a counted noun without plural forms.
with two or more counts reads as labels ("Frames: 300, warnings: 2", "Copied: 40 · failed: 2"). `i18n check` fails on
an English text that puts a number before a counted noun without plural forms, or that tallies two or more counts
with participles or adjectives ("40 copied · 2 failed"), which agree with the number in other languages.
## 8. Build, checks and CI