Index: content_profile.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/content_profile/Attic/content_profile.module,v
retrieving revision 1.1.2.41
diff -u -p -r1.1.2.41 content_profile.module
--- content_profile.module	5 Aug 2009 14:08:34 -0000	1.1.2.41
+++ content_profile.module	14 Oct 2009 21:32:11 -0000
@@ -48,8 +48,8 @@ function content_profile_menu() {
   }
   foreach (content_profile_get_types('names') as $type => $type_name) {
     $items['user/%user/profile/'. $type] = array(
-      'title callback' => 'check_plain',
-      'title' => drupal_ucfirst($type_name),
+      'title callback' => 'content_profile_menu_tt',
+      'title arguments' => array($type, $type_name),
       'page callback' => 'content_profile_page_edit',
       'page arguments' => array($type, 1),
       'access callback' => 'content_profile_page_access',
@@ -294,7 +294,7 @@ function content_profile_user($op, &$edi
       foreach (content_profile_get_types('names', 'edit_tab', 'sub') as $type => $type_name) {
         $data[] = array(
           'name' => $type,
-          'title' => drupal_ucfirst($type_name),
+          'title' => drupal_ucfirst(content_profile_tt("nodetype:type:$type:name", $type_name)),
           'weight' => content_profile_get_settings($type, 'weight') + 1,
         );
       }
@@ -365,7 +365,8 @@ function _content_profile_node_delete($n
     search_wipe($node->nid, 'node');
   }
   watchdog('content', '@type: deleted %title.', array('@type' => $node->type, '%title' => $node->title));
-  drupal_set_message(t('@type %title has been deleted.', array('@type' => node_get_types('name', $node), '%title' => $node->title)));
+  $type = content_profile_tt("nodetype:type:$node->type:name", node_get_types('name', $node));
+  drupal_set_message(t('@type %title has been deleted.', array('@type' => $type, '%title' => $node->title)));
 }
 
 /**
@@ -602,3 +603,22 @@ function content_profile_simpletest() {
   $tests = file_scan_directory(drupal_get_path('module', 'content_profile') .'/tests', '\.test');
   return array_keys($tests);
 }
+
+/** 
+ * Wrapper function for tt() if i18nstrings enabled. 
+ */ 
+function content_profile_tt($name, $string, $langcode = NULL, $update = FALSE) { 
+  if (module_exists('i18ncontent')) { 
+    return tt($name, $string, $langcode, $update); 
+  } 
+  else { 
+    return $string; 
+  } 
+} 
+
+/**
+ * Title callback for hook_menu
+ */
+function content_profile_menu_tt($type, $name) {
+  return drupal_ucfirst(check_plain(content_profile_tt("nodetype:type:$type:title", $name)));
+}
Index: content_profile.rules.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/content_profile/Attic/content_profile.rules.inc,v
retrieving revision 1.1.2.2
diff -u -p -r1.1.2.2 content_profile.rules.inc
--- content_profile.rules.inc	30 Mar 2009 10:20:01 -0000	1.1.2.2
+++ content_profile.rules.inc	14 Oct 2009 21:32:11 -0000
@@ -39,7 +39,8 @@ function content_profile_user_has_profil
 }
 
 function content_profile_user_has_profile_condition_label($settings, $argument_labels) {
-  return t('@user has his @type created', $argument_labels + array('@type' => node_get_types('name', $settings['type'])));
+  $type = content_profile_tt('nodetype:type:'. $settings['type'] .':name', node_get_types('name', $settings['type']));
+  return t('@user has his @type created', $argument_labels + array('@type' => $type));
 }
 
 /**
@@ -82,7 +83,8 @@ function content_profile_action_load_for
 }
 
 function content_profile_action_load_label($settings, $argument_labels) {
-  return t("Load @user's @type", $argument_labels + array('@type' => node_get_types('name', $settings['type'])));
+  $type = content_profile_tt('nodetype:type:'. $settings['type'] .':name', node_get_types('name', $settings['type']));
+  return t("Load @user's @type", $argument_labels + array('@type' => $type));
 }
 
 
Index: content_profile.theme.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/content_profile/Attic/content_profile.theme.inc,v
retrieving revision 1.1.2.9
diff -u -p -r1.1.2.9 content_profile.theme.inc
--- content_profile.theme.inc	15 Sep 2009 15:35:47 -0000	1.1.2.9
+++ content_profile.theme.inc	14 Oct 2009 21:32:11 -0000
@@ -12,7 +12,7 @@
 function theme_content_profile_display_add_link($element) {
   $type = $element['#content_type'];
   $uid = $element['#admin'] ? 'uid='. intval($element['#uid']) .'&' : '';
-  $text = t($element['#admin'] ? "Create the user's @profile_node." : "Create your @profile_node.", array('@profile_node' => node_get_types('name', $type)));
+  $text = t($element['#admin'] ? "Create the user's @profile_node." : "Create your @profile_node.", array('@profile_node' => content_profile_tt("nodetype:type:$type:name", node_get_types('name', $type))));
   return l($text, content_profile_get_add_path($type, $element['#uid']), array('query' => $uid . drupal_get_destination(), 'html' => TRUE));
 }
 
@@ -22,7 +22,7 @@ function theme_content_profile_display_a
 function theme_content_profile_display_link($element) {
   if ($node = content_profile_load($element['#content_type'], $element['#uid'])) {
     if (node_access('view', $node)) {
-      $output = l(node_get_types('name', $node->type), 'node/'. $node->nid);
+      $output = l(content_profile_tt("nodetype:type:$type:name", node_get_types('name', $node->type)), 'node/'. $node->nid);
       if ($element['#edit_link'] && node_access('update', $node)) {
         $output .= ' '. l('['. t('edit') .']', content_profile_get_edit_path($node), array('query' => drupal_get_destination()));
       }
@@ -44,7 +44,7 @@ function content_profile_preprocess_cont
   $path = drupal_get_path('module', 'content_profile') .'/content_profile.css';
   drupal_add_css($path, 'module', 'all', FALSE);
 
-  $variables['title'] = check_plain(node_get_types('name', $node->type));
+  $variables['title'] = check_plain(content_profile_tt("nodetype:type:$node->type:name", node_get_types('name', $node->type)));
 
   $tabs = array();
   if ($element['#edit_link']) {
