By rosshj on
Hopefully the future versions of Drupal will be a little smarter about handling apostrophe S's. I look like nob with with the blog title "Ross's blog". Actually It would be nice to just have it simply be "Blog" or have an option of what to name it.
This is what my Buddy James came up with:
function possessivize($title) {
return strtolower(substr($title, strlen($title)-1, 1)) == 's' ?
$title . "'" : $title . "'s";
}
Comments
Or how about
Or how about the Blog of Ross? Actually, I agree...it would be nice to be able to edit the whole title in a settings page. Sometimes you don't really want to call it a blog on the Web pages.
-Bryan
My Drupal Site:
CMSReport
Huh?
Ross's is correct.
In addition...
If it really bothers you, use the locale module to change it to something different. See HOWTO: Customize Drupal text and terminology.
Doesn't bother me that much
I just hack...er .. patch it in the core.
-
Graphic / Web Designer
Donat Group Enterprises
Project Opus
Ugh :(
There should be a Drupal motto or something: "If you're hacking core, you're doing something wrong!" ;)
There should be literally almost _no_ reason you should ever have to hack core, between theming, the modules system, using locale to do string translation, etc. The Customization and Theming handbook talks extensively about different approaches you can take.
Hacking core only makes it more painful to do stuff like security updates and version upgrades later on... and also harder to find support since you're running forked code.
So remember kids: Just say "no" to hacking! ;)
I agree but...
I agree but I am no PHP coder (just a simple designer) so a little patch like this does the trick until I can either write a better solution or get my friends to help me out.
-
Graphic / Web Designer
Donat Group Enterprises
Project Opus
Hmmm is it right
Maybe I'm not a nob.
-
Graphic / Web Designer
Donat Group Enterprises
Project Opus
Depends on the "sound"
According to that site it depends on how the word sounds.
I have read other grammar books giving similar, though slightly different, advice.
(source: http://www.bcc.ctc.edu/writinglab/Apostrophe.html)
(Source: http://iws.ccccd.edu/cobb/errors.html , originally from the Little Brown Handbook).
It would seem that either is correct depending on who you ask. Bah! that's enough grammar for one day.
Oh, Ross forgot to post my PHPDoc ;-).
Note the subtle disclaimer :-).
James Andres
Lead Developer on Project Opus
www.projectopus.com