You could add this to Util.pm at lib/Mt/:
CODE
sub title_case {
my($text) = @_;
$text =~ tr!A-Z!a-z!;
$text =~ s!^(\W*?)(\w)!$1.uc($2)!ge;
$text =~ s!(\W)(\w)!$1.uc($2)!ge;
$text =~ s!\b(i+v*)\b!uc($1)!gei;
$text;
}
and add
title_case to the
@EXPORT_OK variables (line 14 or thereabouts). Save and upload.
Open Context.pm (at lib/MT/Template/) and add
title_case to the
use MT::Util variables (line 9). Then in
sub post_process_handler add this:
CODE
if ($args->{'title_case'}) {
$str = title_case($str);
}
Save and upload.
So in your templates you do it like:
CODE
<$MTEntryTitle title_case="1"$>
This can also be useful for the MTAuthor tags.
Hope this helps.