In Drupal 5 I created a content type called 'eBook', but on the node/add page it gets changed to 'EBook'. I thought this wouldn't be a big deal because I could just change it with localization, but unfortunately I was wrong - it's not translatable.
<?php
'title' => drupal_ucfirst($type->name),
?>
The node/add page is the only place where this happens, so it's also an inconsistency.
I propose that either the function to make the first letter uppercase (drupal_ucfirst) be removed, or modified so it can be translated easily.
I'll create a patch later.
Is there any chance it could be back ported to 6.x and/or 5.x too?
Comments
Comment #1
Rowanw commentedThere's not much to this patch, it just removes drupal_ucfirst().
Comment #2
floretan commentedThere was already a long thread related to this in #84146: Capitalize menu, link, etc. titles throughout core..
However, since then the help text for a content type's human-readable name has been changed from
to
These instructions are redundant with the call to drupal_ucfirst(), so I don't think it would hurt consistency if we removed the call to drupal_ucfirst() to allow edge cases like 'eBook' to always start with a lowercase letter.
Comment #3
catchNo longer applies.
Comment #4
dmitrig01 commenteddoes now
Comment #5
lilou commentedPatch still applied to CVS HEAD.
Comment #6
dries commentedCommitted to CVS HEAD. Thanks.
Comment #7
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.