--- profile.module.org	2010-01-25 01:28:44.000000000 +0100
+++ profile.module.new	2010-01-25 01:28:08.000000000 +0100
@@ -315,13 +315,13 @@ function profile_view_profile(&$user) {
       if (!isset($user->content[$field->category])) {
         $user->content[$field->category] = array(
           '#type' => 'user_profile_category',
-          '#title' => $field->category,
+          '#title' => t($field->category),
         );
       }
 
       $user->content[$field->category][$field->name] = array(
         '#type' => 'user_profile_item',
-        '#title' => $title,
+        '#title' => t($title),
         '#value' => $value,
         '#weight' => $field->weight,
         '#attributes' => array('class' => 'profile-'. $field->name),
@@ -331,7 +331,7 @@ function profile_view_profile(&$user) {
 }
 
 function _profile_form_explanation($field) {
-  $output = $field->explanation;
+  $output = t($field->explanation);
 
   if ($field->type == 'list') {
     $output .= ' '. t('Put each item on a separate line or separate them by commas. No HTML allowed.');
@@ -351,13 +351,13 @@ function profile_form_profile($edit, $us
   while ($field = db_fetch_object($result)) {
     $category = $field->category;
     if (!isset($fields[$category])) {
-      $fields[$category] = array('#type' => 'fieldset', '#title' => check_plain($category), '#weight' => $weight++);
+      $fields[$category] = array('#type' => 'fieldset', '#title' => t(check_plain($category)), '#weight' => $weight++);
     }
     switch ($field->type) {
       case 'textfield':
       case 'url':
         $fields[$category][$field->name] = array('#type' => 'textfield',
-          '#title' => check_plain($field->title),
+          '#title' => t(check_plain($field->title)),
           '#default_value' => isset($edit[$field->name]) ? $edit[$field->name] : '',
           '#maxlength' => 255,
           '#description' => _profile_form_explanation($field),
@@ -369,7 +369,7 @@ function profile_form_profile($edit, $us
         break;
       case 'textarea':
         $fields[$category][$field->name] = array('#type' => 'textarea',
-          '#title' => check_plain($field->title),
+          '#title' => t(check_plain($field->title)),
           '#default_value' => isset($edit[$field->name]) ? $edit[$field->name] : '',
           '#description' => _profile_form_explanation($field),
           '#required' => $field->required,
@@ -377,7 +377,7 @@ function profile_form_profile($edit, $us
         break;
       case 'list':
         $fields[$category][$field->name] = array('#type' => 'textarea',
-          '#title' => check_plain($field->title),
+          '#title' => t(check_plain($field->title)),
           '#default_value' => isset($edit[$field->name]) ? $edit[$field->name] : '',
           '#description' => _profile_form_explanation($field),
           '#required' => $field->required,
@@ -385,7 +385,7 @@ function profile_form_profile($edit, $us
         break;
       case 'checkbox':
         $fields[$category][$field->name] = array('#type' => 'checkbox',
-          '#title' => check_plain($field->title),
+          '#title' => t(check_plain($field->title)),
           '#default_value' => isset($edit[$field->name]) ? $edit[$field->name] : '',
           '#description' => _profile_form_explanation($field),
           '#required' => $field->required,
@@ -400,7 +400,7 @@ function profile_form_profile($edit, $us
           }
         }
         $fields[$category][$field->name] = array('#type' => 'select',
-          '#title' => check_plain($field->title),
+          '#title' => t(check_plain($field->title)),
           '#default_value' => isset($edit[$field->name]) ? $edit[$field->name] : '',
           '#options' => $options,
           '#description' => _profile_form_explanation($field),
@@ -409,7 +409,7 @@ function profile_form_profile($edit, $us
         break;
       case 'date':
         $fields[$category][$field->name] = array('#type' => 'date',
-          '#title' => check_plain($field->title),
+          '#title' => t(check_plain($field->title)),
           '#default_value' => isset($edit[$field->name]) ? $edit[$field->name] : '',
           '#description' => _profile_form_explanation($field),
           '#required' => $field->required,
@@ -454,7 +454,7 @@ function profile_categories() {
   while ($category = db_fetch_object($result)) {
     $data[] = array(
       'name' => $category->category,
-      'title' => $category->category,
+      'title' => t($category->category),
       'weight' => 3,
       'access callback' => 'profile_category_access',
       'access arguments' => array(1, $category->category)
