[drupal-devel] [drupal:unconed] /includes common.inc

Stefan Nagtegaal Drupal-Devel at iStyledThis.nl
Fri May 27 08:15:24 UTC 2005


Op 27-mei-2005, om 1:39 heeft drupal-devel at drupal.org het volgende  
geschreven:
> User: unconed    Branch: HEAD    Date: Thu, 26 May 2005 23:39:25 +0000
>
> Modified files:
>   /includes common.inc
>
> Log message:
>   - #23700: Fix some broken t()'s in common.inc
>
> Links:
>   http://cvs.drupal.org/diff.php?path=drupal/includes/ 
> common.inc&old=1.448&new=1.449
>
> -- 
> [ Drupal cvs list | http://list.drupal.org/ ]

Ehmmm.... Maybe it is me, but didn't we agreed that we use  
meaningfull variable names?
So:
-      watchdog('php', t("Could not convert XML encoding '%s' to  
UTF-8.", $encoding), WATCHDOG_WARNING);
+      watchdog('php', t("Could not convert XML encoding '%s' to  
UTF-8.", array('%s' => $encoding)), WATCHDOG_WARNING);

and:
-    watchdog('php', t("Unsupported encoding '%s'. Please install  
iconv, GNU recode or mbstring for PHP.", $encoding), WATCHDOG_ERROR);
+    watchdog('php', t("Unsupported encoding '%s'. Please install  
iconv, GNU recode or mbstring for PHP.", array('%s' => $encoding)),  
WATCHDOG_ERROR);


Had to be something like:

-      watchdog('php', t("Could not convert XML encoding '%s' to  
UTF-8.", $encoding), WATCHDOG_WARNING);
+      watchdog('php', t("Could not convert XML encoding '%encoding'  
to UTF-8.", array('%encoding' => $encoding)), WATCHDOG_WARNING);

-    watchdog('php', t("Unsupported encoding '%s'. Please install  
iconv, GNU recode or mbstring for PHP.", $encoding), WATCHDOG_ERROR);
+    watchdog('php', t("Unsupported encoding '%encoding'. Please  
install iconv, GNU recode or mbstring for PHP.", array('%encoding' =>  
$encoding)), WATCHDOG_ERROR);


If yes, I'll provide a patch to correct this..


Stefan..



More information about the drupal-devel mailing list