diff --git a/includes/batch.inc b/includes/batch.inc
index dd4adc9..6d59c1c 100644
--- a/includes/batch.inc
+++ b/includes/batch.inc
@@ -35,11 +35,13 @@
  */
 class DrushBatchContext extends ArrayObject {
   function offsetSet($name, $value) {
-    if ($name == 'message') {
-      drush_log(strip_tags($value), 'ok');
-    }
-    elseif ($name == 'error_message') {
-      drush_set_error('DRUSH_BATCH_ERROR', strip_tags($value));
+    switch ($name) {
+      case 'message':
+        drush_log(dt($value), 'ok');
+        break;
+      case 'error_message':
+        drush_set_error('DRUSH_BATCH_ERROR', dt($value));
+        break;
     }
     parent::offsetSet($name, $value);
   }
diff --git a/includes/output.inc b/includes/output.inc
index f036e34..fa505e6 100644
--- a/includes/output.inc
+++ b/includes/output.inc
@@ -135,17 +135,14 @@ function drush_format($input, $label = NULL, $format = NULL) {
  * @see t()
  */
 function dt($string, $args = array()) {
+  $output = NULL;
   if (function_exists('t') && (drush_drupal_version() >= 7 || function_exists('theme'))) {
-    return t($string, $args);
+    $output = t($string, $args);
   }
   else {
-    if (!empty($args)) {
-      return strtr($string, $args);
-    }
-    else {
-      return $string;
-    }
+    $output = empty($args) ? $string : strtr($string, $args);
   }
+  return strip_tags($output);
 }
 
 /**
