Index: relations.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/relations/relations.module,v
retrieving revision 1.16
diff -u -p -r1.16 relations.module
--- relations.module	31 Aug 2009 15:46:20 -0000	1.16
+++ relations.module	18 Nov 2009 08:08:16 -0000
@@ -134,7 +134,7 @@ function relations_block($op = 'list', $
       );
       foreach (relations_get_node_types() as $node_type) {
         $blocks[$node_type] = array(
-          'info'   => t('Relations: !type', array('!type' => $node_types[$node_type])),
+          'info'   => t('Relations: !type', array('!type' => relations_tt("nodetype:type:$node_type:name", $node_types[$node_type]))),
           'region' => 'right',
           'weight' => -3,
           'cache'  => BLOCK_CACHE_PER_PAGE | BLOCK_CACHE_PER_USER,
@@ -227,11 +227,15 @@ function relations_form_alter(&$form, $f
         '#suffix'        => '</div>',
         '#weight'        => 20,
       );
+      $options = array_intersect_key(node_get_types('names'), relations_get_node_types());
+      foreach($options as $type => $name) {
+        $tt_options[$type] = relations_tt("nodetype:type:$type:name", $name);
+      }
       $form['relations']['relations_blocks'] = array(
         '#type'          => 'checkboxes',
         '#title'         => t('Enabled related content types'),
         '#default_value' => relations_get_node_types($node),
-        '#options'       => array_map('t', array_intersect_key(node_get_types('names'), relations_get_node_types())),
+        '#options'       => $tt_options,
         '#description'   => t('Select which types of related content you wish to display when this node is viewed.'),
       );
 
@@ -400,3 +404,15 @@ function relations_allowed($node1, $node
   $reader2 = node_access('view', $node2);
   return ($editor1 || $editor2) && $reader2;
 }
+
+/**
+ * Wrapper function for tt() if i18nstrings enabled.
+ */
+function relations_tt($name, $string, $langcode = NULL, $update = FALSE) {
+  if (module_exists('i18ncontent')) {
+    return tt($name, $string, $langcode, $update);
+  }
+  else {
+    return $string;
+  }
+}
