File content_profile.module line 300
'title' => drupal_ucfirst($type_name),
must be
'title' => drupal_ucfirst(t($type_name)),

File content_profile-display-view.tpl.php line 12

<?php print $title; ?>
must be
<?php print t($title); ?>

Comments

robby.smith’s picture

Title: Torgotten t() » Forgotten t()
marthinal’s picture

Priority: Normal » Major
Status: Active » Needs review
Issue tags: +content profile
StatusFileSize
new1.34 KB

Yes, adding t() we fix the problem I think it 's important solve definitly the bug to help others not lose their time with this.Patch added.

marthinal’s picture

Priority: Major » Minor
Status: Needs review » Active

I had some problem with my categories translation even adding t() funtion.

The problem is into i18nprofile.If you have enabled this module you could translate the user category. refering this bug http://drupal.org/node/306768#comment-5038650.So you dont need to add t() in content_profile module.

I was talking with Jose Reyero in a drupalcamp about this and at the moment a fast way to fix it is adding t() in i18nprofile.

function i18nprofile_translate_category($title) {
  return check_plain(i18nstrings('profile:category', t($title)));
} 

Sure it isnt the ideal way but all the development at the moment is in D7 and the way it works is different than D6 because hooks about users are differents,it works different.

Hope it helps.