? modr8.patch
Index: modr8.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/modr8/modr8.module,v
retrieving revision 1.26
diff -u -p -r1.26 modr8.module
--- modr8.module	17 May 2009 02:35:53 -0000	1.26
+++ modr8.module	16 Oct 2009 21:03:00 -0000
@@ -170,7 +170,7 @@ function modr8_form_alter(&$form, $form_
       '#title' => t('In moderation queue'),
       '#default_value' => $form['#node']->moderate,
       '#weight' => 24,
-      '#description' => t('This %type will be placed in moderation if the %moderate checkbox is selected.', array('%type' => node_get_types('name', $form['#node']), '%moderate' => t('In moderation queue'))),
+      '#description' => t('This %type will be placed in moderation if the %moderate checkbox is selected.', array('%type' => modr8_tt('nodetype:type:'. $form['#node'] .':name', node_get_types('name', $form['#node'])), '%moderate' => t('In moderation queue'))),
     );
     if (user_access('administer nodes')) {
       $form['options']['moderate'] = $moderate_checkbox;
@@ -292,10 +292,22 @@ function theme_modr8_message($teaser = F
         drupal_set_message(t("The post has been submitted for moderation and won't be listed publicly until it has been approved."), 'warning');
         break;
       case 'node_form':
-        drupal_set_message(t('This %type will be submitted for moderation and will not be accessible to other users until it has been approved.', array('%type' => node_get_types('name', $nodetype))));
+        drupal_set_message(t('This %type will be submitted for moderation and will not be accessible to other users until it has been approved.', array('%type' => modr8_tt("nodetype:type:$nodetype:name", node_get_types('name', $nodetype)))));
         break;
     }
     return '';
   }
   $already_messaged = TRUE;
 }
+
+/**
+ * Wrapper function for tt() if i18nstrings enabled.
+ */
+function modr8_tt($name, $string, $langcode = NULL, $update = FALSE) {
+  if (module_exists('18nstrings')) {
+    return tt($name, $string, $langcode, $update);
+  }
+  else {
+    return $string;
+  }
+} 
