Many times in building sites I have needed the plural name of a content type ("Blog posts" rather than "Blog post") - for example in listing titles/links, breadcrumbs, paths or help text. This often gets hardcoded or recorded in configuration in multiple places but it occurred to me that the right place to collect this information is on the content type page itself.
Obviously this can be easily done with a contrib module, but I think that it is highly likely that we could use this functionality in core when some basic default views-type functionality, and perhaps also to clean up some the places where the plural form is being hardcoded in core and can only be changed using locale module on multiple strings (for example if you wanted Blog post/Blog posts to be Journal entry/Journal entries) which is quite non-intuitive for such a simple request.
A rough patch is attached - feedback welcome!
| Comment | File | Size | Author |
|---|---|---|---|
| content_type_plural.patch | 5.05 KB | owen barton |
Comments
Comment #1
Anonymous (not verified) commentedThe last submitted patch failed testing.
Comment #2
casey commented#23298: Entity bundles should declare a plural form of their label
Comment #5
owen barton commentedI think this is a duplicate of the above.