When i have installed drush & coder and i want install another module with drush i have this problem:

$ drush real_name

Fatal error: Call to undefined function t() in drupal/sites/all/modules/coder/coder.drush.inc on line 10
Drush command could not be completed. [error]

This patch fix the problem:

--- coder.drush.inc.orig        2009-07-03 10:01:05.000000000 +0200
+++ coder.drush.inc     2009-07-03 10:01:13.000000000 +0200
@@ -7,7 +7,7 @@
 function coder_drush_command() {
   $items['coder'] = array(
     'callback' => 'coder_drush_review',
-    'description' => t('Run code reviews'),
+    'description' => 'Run code reviews',
   );
   return $items;
 }

tschüss!!!

Comments

stella’s picture

Status: Active » Closed (duplicate)
starbow’s picture

Status: Closed (duplicate) » Active

#455722: use of t() in coder.drush.inc line 10 should be replaced with dt() is marked as fixed for the 5.x branch, but this bug is alive an well in 6.x-1.0, and just ate up a couple hours of my day tracking it down. Can we get the fix in the 6.x branch? Think of the children.

stella’s picture

Status: Active » Closed (duplicate)

It should be fixed in the 6.x dev branches (1.x and 2.x) too. Please follow up in #455722: use of t() in coder.drush.inc line 10 should be replaced with dt() if there is still an issue, re-marking this as a duplicate.