? 248510_relatedcontent_proper_t.patch
? relatedcontent.module_0.patch
Index: relatedcontent.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/relatedcontent/relatedcontent.module,v
retrieving revision 1.16.2.12
diff -u -p -r1.16.2.12 relatedcontent.module
--- relatedcontent.module	2 Mar 2008 09:07:38 -0000	1.16.2.12
+++ relatedcontent.module	21 Aug 2008 19:11:40 -0000
@@ -562,8 +562,8 @@ function _relatedcontent_form_alter_node
     '#type' => 'fieldset',
     '#title' => t('RelatedContent configuration'),
     '#description' => t(
-      'Configure how RelatedContent should work on nodes of the type <em>'. $type .'</em>. For more information, see the !help.',
-      array('!help' => l(t('help page'), 'admin/help/relatedcontent'))
+      'Configure how RelatedContent should work on nodes of the type %type. For more information, see the !help.',
+      array('!type' => $type, '!help' => l(t('help page'), 'admin/help/relatedcontent'))
     ),
     '#collapsible' => true, 
     '#collapsed' => !relatedcontent_variable_enabled($type),
@@ -866,7 +866,7 @@ function _relatedcontent_form_get_view($
   // No view was given, or the named view didn't exist. Log and display
   // an error message.
   $message = t(
-    'RelatedContent uses <a href="!views-url">views</a> as its source of nodes. The specified view <em>@view-name</em> doesn\'t exist any more. Please, go to the <a href="!settings-url">settings of the content type "@content-type"</a> and select another view.',
+    'RelatedContent uses <a href="!views-url">views</a> as its source of nodes. The specified view %view-name doesn\'t exist any more. Please, go to the <a href="!settings-url">settings of the content type "@content-type"</a> and select another view.',
     array(
       '!views-url' => url('admin/build/views'),
       '!settings-url' => url("admin/content/types/$type"),
@@ -915,8 +915,8 @@ function _relatedcontent_form_get_max_pa
 function _relatedcontent_form_view_introduction(&$form, $type) {
   $form['intro'] = array(
     '#value' => t(
-      "Select nodes to be added to this <em>$type</em>. For more information, see the !help.",
-      array('!help' => l(t('help page'), 'admin/help/relatedcontent'))
+      "Select nodes to be added to this %type. For more information, see the !help.",
+      array('!type' => $type, '!help' => l(t('help page'), 'admin/help/relatedcontent'))
     ),
   );
 }
@@ -1484,7 +1484,7 @@ function _relatedcontent_db_query($query
     $db = $db_type == 'mysqli' ? 'mysql' : $db_type;
     $db_file = "relatedcontent.$db.inc";
     if (!is_file(drupal_get_path('module', 'relatedcontent') ."/$db_file")) {
-      $msg = t("RelatedContent doesn't support $db_type.");
+      $msg = t("RelatedContent doesn't support !db_type.", array('!db_type' => $db_type));
       drupal_set_message($msg, 'error');
       return false;
     }
@@ -1502,7 +1502,7 @@ function _relatedcontent_db_query($query
   // Get the query, and new arguments, if any.
   $query_function = $query_name .'_query';
   if (!function_exists($query_function)) {
-    $msg = t("RelatedContent can't find the '$query_name' query for $db_type.");
+    $msg = t("RelatedContent can't find the !query_name query for !db_type.", array('!query_name' => $query_name, '!db_type' => $db_type));
     drupal_set_message($msg, 'error');
     return false;
   }
