Skip to content

Make Control Panel strings translatable - #43

Draft
duncanmcclean wants to merge 3 commits into
1.xfrom
translatable-strings
Draft

duncanmcclean wants to merge 3 commits into
1.xfrom
translatable-strings

Conversation

@duncanmcclean

@duncanmcclean duncanmcclean commented Dec 4, 2026 •

Copy link
Copy Markdown
Member

This pull request makes Forms Pro's Control Panel strings translatable, the same way SEO Pro's are.

Around 70 labels were passed to __() as plain English strings, which core doesn't have translations for, and a few strings were hardcoded. This PR moves them into lang/en/messages.php and lang/en/fieldtypes.php under forms-pro:: keys. Strings core already translates, like "Email Address", are left as they are.

This PR also uses the new trans_lazy() helper for the Automagic Forms config fields. They're registered at boot, before the user's locale is set, so until now they always used the app's locale.

Built in https://ampcode.com/threads/T-01a24040-df99-775a-8b29-3af0eafea236

Fixes #42
Depends on statamic/cms#16179

@duncanmcclean
duncanmcclean marked this pull request as draft December 4, 2026 18:42

This branch has not been deployed

No deployments
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.

Forms Pro add-on keys should be translatable upfront

1 participant