Skip to content

[6.x] Don't singularize default blueprint titles for non-English locales - #15655

Open
wakqasahmed wants to merge 1 commit into
statamic:6.xfrom
wakqasahmed:fix/issue-15557-default-blueprint-name
Open

wakqasahmed wants to merge 1 commit into
statamic:6.xfrom
wakqasahmed:fix/issue-15557-default-blueprint-name

Conversation

@wakqasahmed

Copy link
Copy Markdown
Contributor

The fallback blueprint for a collection or taxonomy with no saved blueprint gets its title from Str::singular(), which only knows English rules. In a German CP, a collection titled "Aktuelles" ended up with a blueprint titled "Aktuelle", and "Verzeichnis" became "Verzeichni".

This skips the singularization of the title when the app locale isn't English, for both collections and taxonomies. The fallback handle is left as is, since changing it would break entries already saved with the current handle.

I used an AI agent (Claude Code) to help with this change.

Fixes #15557

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.

Default blueprint name is wrongly singularized for non-English collection titles

1 participant