summaryrefslogtreecommitdiff
path: root/modules/drupal
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2004-06-02 19:01:40 +0000
committerDries Buytaert <dries@buytaert.net>2004-06-02 19:01:40 +0000
commitc0b85a5721be04cec2f5e0d4a61200e43f2a9d92 (patch)
treed2ae2f9b01fa39fc0ad26f4821e033865dc51dd9 /modules/drupal
parentdfef5164b49fc79af58ab6e7a595add1b6dc7592 (diff)
downloadbrdo-c0b85a5721be04cec2f5e0d4a61200e43f2a9d92.tar.gz
brdo-c0b85a5721be04cec2f5e0d4a61200e43f2a9d92.tar.bz2
- Patch #4950 by Stefan (and Morbus): made watchdog messages translatable.
Diffstat (limited to 'modules/drupal')
-rw-r--r--modules/drupal/drupal.module4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/drupal/drupal.module b/modules/drupal/drupal.module
index 526e9aefa..9c05beaca 100644
--- a/modules/drupal/drupal.module
+++ b/modules/drupal/drupal.module
@@ -90,7 +90,7 @@ function drupal_directory_ping($arguments) {
db_query("DELETE FROM {directory} WHERE link = '%s' OR mail = '%s'", $link, $mail);
db_query("INSERT INTO {directory} (link, name, mail, slogan, mission, timestamp) VALUES ('%s', '%s', '%s', '%s', '%s', %d)", $link, $name, $mail, $slogan, $mission, time());
- watchdog('regular', "directory: ping from \"$name\" ($link)");
+ watchdog('regular', t('directory: ping from "%name" (%link)', array('%name' => $name, '%link' => $link)));
return new xmlrpcresp(new xmlrpcval(1, 'int'));
}
@@ -138,7 +138,7 @@ function drupal_notify($server) {
$result = $client->send($message, 5);
if (!$result || $result->faultCode()) {
- watchdog('error', 'failed to notify "'. $url['host'] .'" at "'. $url['path'] .'": '. $result->faultString());
+ watchdog('error', t('failed to notify "%url" at "%path": %error', array('%url' => $url["host"], '%path' => $url["path"], '%error' => $result->faultString())));
}
}