Index: modules/profile/profile.module
===================================================================
RCS file: /cvs/drupal/drupal/modules/profile/profile.module,v
retrieving revision 1.222
diff -u -p -r1.222 profile.module
--- modules/profile/profile.module	24 Oct 2007 13:27:12 -0000	1.222
+++ modules/profile/profile.module	26 Oct 2007 01:17:51 -0000
@@ -690,13 +690,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' => $category, '#weight' => $weight++);
+      $fields[$category] = array('#type' => 'fieldset', '#title' => t($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),
@@ -708,7 +708,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,
@@ -716,7 +716,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,
@@ -724,7 +724,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,
@@ -739,7 +739,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),
@@ -748,7 +748,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,
@@ -806,7 +806,7 @@ function profile_categories() {
   $result = db_query("SELECT DISTINCT(category) FROM {profile_fields}");
   $data = array();
   while ($category = db_fetch_object($result)) {
-    $data[] = array('name' => $category->category, 'title' => $category->category, 'weight' => 3);
+    $data[] = array('name' => $category->category, 'title' => t($category->category), 'weight' => 3);
   }
   return $data;
 }
