Default blueprint name is wrongly singularized for non-English collection titles
Los mantenedores suelen responder en 1 día
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Aptitud para principiantes
- 62/100
- Tipo de issue
- Error
- Claridad
- Bastante claro
- Estado de actividad
- Activo
- Área
- backend, internationalization
Línea de trabajo
Start by locating where Statamic generates a default blueprint and applies Str::singular() to the collection title or handle. Reproduce the issue with the German collection title “Aktuelles” and inspect the generated blueprint name and handle. Done means the default blueprint keeps an appropriate German name and handle, and entries continue to reference that blueprint correctly.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Bug description
When a collection has no saved blueprint yet, Statamic generates a default blueprint and names it by singularizing the collection's title and handle with Str::singular(). That only applies English rules, so non-English titles can end up with a grammatically wrong blueprint name.
Example (German): a collection titled "Aktuelles" gets a blueprint titled "Aktuelle" with the handle aktuelle. "Aktuelles" is not a plural, and "Aktuelle" is not a correct word in this context. Same happens with "Verzeichnis" → "Verzeichni".
How to reproduce
- Set the Control Panel language to German.
- Create a collection titled "Aktuelles".
- Open the collection's blueprints.
The blueprint is titled "Aktuelle" (handle aktuelle). Entries created in this collection are saved with blueprint: aktuelle.
Expected: the blueprint is titled "Aktuelles" (and ideally has the handle aktuelles).
Logs
Environment
Environment
Laravel Version: 13.34.0
PHP Version: 8.4.23
Composer Version: 2.10.1
Environment: local
Debug Mode: ENABLED
Maintenance Mode: OFF
Timezone: UTC
Locale: de_CH
Cache
Config: NOT CACHED
Events: NOT CACHED
Routes: NOT CACHED
Views: CACHED
Drivers
Broadcasting: log
Cache: file
Database: sqlite
Logs: stack / single
Mail: log
Queue: background
Session: file
Storage
public/storage: NOT LINKED
Statamic
Addons: 1
License Key: Set
Sites: 1
Stache Watcher: Enabled (auto)
Static Caching: Disabled
Version: 6.34.1 PRO
Statamic Addons
statamic/seo-pro: 7.15.0
Installation
Fresh statamic/statamic site via CLI
Additional details
No response
- Lenguaje dominante
- PHP
- Estrellas
- 4.9k
- Forks
- 647
- Merge medio
- 1 d 17 h
- PR fusionados (30 d)
- 111
Preparar el entorno
Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de statamic/cms
-
CP sidebar checks every site for each navigationPosiblemente ocupada @lazerg la tomó hace 1 día. Abiertomultisite performance
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día
-
Make native filesystem directory permissions configurable to support shared POSIX ACL accessAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
Los mantenedores suelen responder en 1 día
-
accessibility
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
Los mantenedores suelen responder en 1 día
-
antlers
Dificultad 2/5 1-3 horas Aptitud para principiantes 66/100
Los mantenedores suelen responder en 1 día
-
caching nocache
Dificultad 3/5 1-2 días Aptitud para principiantes 42/100
statamic/cms#15643 · 2 comentarios ·
Los mantenedores suelen responder en 1 día
Todos los issues de statamic/cms
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Spomky-Labs/pwa-bundle#476 ·
-
domain/discovery
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 67/100
code4romania/cpc#64 ·
Los mantenedores suelen responder en 1 día
-
Admin search throws for permissions added through Admin.generalIndexItems('permissions', ...)Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día