In Drupal CVS as of today, profile.module seems to insist upon making category names appear lowercased when drawn as tabs. This is exceptionally annoying, as admins may want their tabs to appear with first-letter capitalization.

Note that this problem does not affect the display of category names in the profile administration pages, making things even more confusing for an admin... the bug only appears when the tabs are drawn for "edit my account."

Comments

TDobes’s picture

Possibly fixed by this commit.

Anonymous’s picture

Yup... just test it: fixed.

Thanks, Steven!

Anonymous’s picture

saran822’s picture

Version: » 5.0

hi,
i m using drupal 5. in my profile.module file that particular lowercase coding is not there. pls help me.

SundaraRajan’s picture

Hi,
I am also using Drupal 5.1 and when I try to display the tab titles with the first letter capitalized, it's displaying only in lowercase. For example, when i type the Menu Title as Blog it's displaying only as blog, all in lower case. When I checked the profile.module code under the function profile_categories, the code is like this,

function profile_categories() {
$result = db_query("SELECT DISTINCT(category) FROM {profile_fields}");
while ($category = db_fetch_object($result)) {
$data[] = array('name' => $category->category, 'title' => $category->category, 'weight' => 3);
}
return $data;
}

as you see it is quite different from the recommended fix as shown here http://cvs.drupal.org/viewcvs/drupal/drupal/modules/profile.module?r1=1....
But, I can see that the recommened fix is way back in 2004, what is the fix for this recent version? Kindly someone help please.

Thanks

SundaraRajan’s picture

This is solved by changing the font-style parameter in the stylesheet to Capitalized.