Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

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

Aperta
#15,557 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
62/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
laravel, php

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

i18n
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".

Image
How to reproduce
  1. Set the Control Panel language to German.
  2. Create a collection titled "Aktuelles".
  3. 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

Lingua principale
PHP
Stelle
4.9k
Fork
647
Merge medio
1g 8h
PR unite (30g)
100

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di statamic/cms

Tutte le issue di statamic/cms

Issue simili

Altre issue su PHP

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.