diff --git a/potx.inc b/potx.inc
index 8aebf14..24bcce5 100644
--- a/potx.inc
+++ b/potx.inc
@@ -290,6 +290,8 @@ function _potx_process_file($file_path, $strip_prefix = 0, $save_callback = '_po
     // This does not support context even in Drupal 7.
     _potx_find_t_calls($file_name, $save_callback, '_locale_import_message', POTX_STRING_BOTH);
   }
+  // dt() in drush does not support context either.
+  _potx_find_t_calls($file_name, $save_callback, 'dt');
 
   if ($api_version > POTX_API_5) {
     // Watchdog calls have both of their arguments translated from Drupal 6.x.
diff --git a/tests/potx.test b/tests/potx.test
index 4583733..d38acd0 100644
--- a/tests/potx.test
+++ b/tests/potx.test
@@ -182,6 +182,9 @@ class PotxTestCase extends DrupalWebTestCase {
     $this->assert(count($this->potx_status) == 2, t('2 error messages found'));
     $this->assert($this->potx_status[0][0] == $this->empty_error, t('First empty error found.'));
     $this->assert($this->potx_status[1][0] == $this->empty_error, t('Second empty error found.'));
+
+    // Drush support.
+    $this->assertMsgID('This could have been in a drush file');
   }
 
   public function testDrupal8LanguageManager() {
diff --git a/tests/potx_test_7.module b/tests/potx_test_7.module
index 377b668..7dd96a8 100644
--- a/tests/potx_test_7.module
+++ b/tests/potx_test_7.module
@@ -50,6 +50,8 @@ function potx_test_7_page() {
 
   st('Installer string in context', array(), array('context' => 'Installer context'));
   $t('Dynamic string in context', array(), array('context' => 'Dynamic context'));
+
+  dt('This could have been in a drush file');
 }
 
 function potx_test_7_perm() {
