diff --git a/includes/output.inc b/includes/output.inc
index f036e34..1007104 100644
--- a/includes/output.inc
+++ b/includes/output.inc
@@ -135,7 +135,7 @@ function drush_format($input, $label = NULL, $format = NULL) {
  * @see t()
  */
 function dt($string, $args = array()) {
-  if (function_exists('t') && (drush_drupal_version() >= 7 || function_exists('theme'))) {
+  if (function_exists('t') && (drush_drupal_version() >= 7 && drupal_bootstrap() >= DRUPAL_BOOTSTRAP_LANGUAGE)) {
     return t($string, $args);
   }
   else {
