Skip to content

[6.x] Forms 2: Catch untranslated strings - #15315

Merged
duncanmcclean merged 14 commits into
forms-2from
forms-2-audit-fixes
Aug 31, 2026
Merged

[6.x] Forms 2: Catch untranslated strings#15315
duncanmcclean merged 14 commits into
forms-2from
forms-2-audit-fixes

Conversation

@duncanmcclean

Copy link
Copy Markdown
Member

This pull request catches any untranslated strings and wraps them in __(). It also removes some TODOs in tests and aligns the Antlers/Blade star rating stubs.

duncanmcclean and others added 14 commits August 31, 2026 14:43
the lang file is `form-fieldtypes.php`, so lookups against `statamic::form-fields` could never resolve.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017bXhw33wJpycXEkAnSYqyw
the status and datestamp columns had no labels, so headers were auto-humanized from the handles ("Datestamp") and disagreed with the json resource's "Date" label after the first xhr.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017bXhw33wJpycXEkAnSYqyw
example strings are translated by vue at render time, so the handful of fieldtypes wrapping them in `__()` were inconsistent with the rest.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017bXhw33wJpycXEkAnSYqyw
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017bXhw33wJpycXEkAnSYqyw
sentence-length strings belong in the lang files rather than being used as their own keys. the `image_choice` "allow multiple" instruction reuses the existing `select.config.multiple` string.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017bXhw33wJpycXEkAnSYqyw
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017bXhw33wJpycXEkAnSYqyw
concatenating the translated word with the label hardcoded english word order.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017bXhw33wJpycXEkAnSYqyw
matches the other new form fieldtypes, which translate their option labels.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017bXhw33wJpycXEkAnSYqyw
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017bXhw33wJpycXEkAnSYqyw
the blade partial got the reworked min-based padding in #15068, but the antlers partial was left on the old symmetric-padding approach with the separate half-star override. the `StarRating` ui component uses the newer math too.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017bXhw33wJpycXEkAnSYqyw
@duncanmcclean
duncanmcclean merged commit 2b62ccb into forms-2 Aug 31, 2026
62 checks passed
@duncanmcclean
duncanmcclean deleted the forms-2-audit-fixes branch August 31, 2026 14:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant