Index: resource.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/resource/resource.module,v
retrieving revision 1.1
diff -u -p -r1.1 resource.module
--- resource.module	14 Mar 2008 10:17:44 -0000	1.1
+++ resource.module	18 Nov 2009 19:32:37 -0000
@@ -149,11 +149,11 @@ function resource_node_form(&$node, $for
   $form['resource_uri'] = array('#type' => 'textfield', '#title' => t('URI'), '#default_value' => @$node->resource_uri, '#required' => TRUE, '#weight' => -10);
 
   if ($type->has_title) {
-    $form['title'] = array('#type' => 'textfield', '#title' => check_plain($type->title_label), '#default_value' => $node->title, '#required' => FALSE, '#weight' => -5);
+    $form['title'] = array('#type' => 'textfield', '#title' => resource_tt("nodetype:type:$node->type:title", check_plain($type->title_label)), '#default_value' => $node->title, '#required' => FALSE, '#weight' => -5);
   }
 
   if ($type->has_body) {
-    $form['body_field'] = node_body_field($node, $type->body_label, $type->min_word_count);
+    $form['body_field'] = node_body_field($node, resource_tt("nodetype:type:$node->type:body", $type->body_label), $type->min_word_count);
     $form['body_field']['body']['#rows'] = 3;
   }
 
@@ -262,3 +262,15 @@ function resource_node_delete($node) {
 function resource_rdf_extract($uri) {
   // TODO
 }
+
+/**
+ * Wrapper function for tt() if i18nstrings enabled.
+ */
+function resource_tt($name, $string, $langcode = NULL, $update = FALSE) {
+  if (module_exists('i18ncontent')) {
+    return tt($name, $string, $langcode, $update);
+  }
+  else {
+    return $string;
+  }
+}
