Repository navigation
Make Control Panel strings translatable - #43
Draft
duncanmcclean wants to merge 3 commits into
Draft
duncanmcclean wants to merge 3 commits into
duncanmcclean wants to merge 3 commits into
Conversation
Amp-Thread-ID: https://ampcode.com/threads/T-01a24040-df99-775a-8b29-3af0eafea236 Co-authored-by: Amp <amp@ampcode.com>
…zy()` Amp-Thread-ID: https://ampcode.com/threads/T-01a24040-df99-775a-8b29-3af0eafea236 Co-authored-by: Amp <amp@ampcode.com>
Amp-Thread-ID: https://ampcode.com/threads/T-01a24040-df99-775a-8b29-3af0eafea236 Co-authored-by: Amp <amp@ampcode.com>
duncanmcclean
marked this pull request as draft
December 4, 2026 18:42
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 intolang/en/messages.phpandlang/en/fieldtypes.phpunderforms-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