summaryrefslogtreecommitdiff
path: root/modules/watchdog
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2005-01-22 09:38:48 +0000
committerDries Buytaert <dries@buytaert.net>2005-01-22 09:38:48 +0000
commitc0814a2072ed9f12b40394da661c003758a75290 (patch)
tree59a77d82fd4a814b096e0a4f66f5dfc8e92f4435 /modules/watchdog
parent42e7e7d5191b8107c8a6c0cd389db0d7e7efdb6e (diff)
downloadbrdo-c0814a2072ed9f12b40394da661c003758a75290.tar.gz
brdo-c0814a2072ed9f12b40394da661c003758a75290.tar.bz2
- Patch #15957 by Goba: reintroduce translateable watchdog types.
Diffstat (limited to 'modules/watchdog')
-rw-r--r--modules/watchdog/watchdog.module6
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/watchdog/watchdog.module b/modules/watchdog/watchdog.module
index 2a20d5e7d..cec70158c 100644
--- a/modules/watchdog/watchdog.module
+++ b/modules/watchdog/watchdog.module
@@ -71,7 +71,7 @@ function watchdog_overview() {
$names['all'] = t('all messages');
$queries['all'] = '';
foreach (_watchdog_get_message_types() as $type) {
- $names[$type] = t('%type messages', array('%type' => $type));
+ $names[$type] = t('%type messages', array('%type' => t($type)));
$queries[$type] = "WHERE type = '". db_escape_string($type) ."'";
}
@@ -103,7 +103,7 @@ function watchdog_overview() {
array(
// Cells
$icons[$watchdog->severity],
- $watchdog->type,
+ t($watchdog->type),
format_date($watchdog->timestamp, 'small'),
truncate_utf8($watchdog->message, 64),
format_name($watchdog),
@@ -139,7 +139,7 @@ function watchdog_event($id) {
$result = db_query('SELECT w.*, u.name, u.uid FROM {watchdog} w INNER JOIN {users} u ON w.uid = u.uid WHERE w.wid = %d', $id);
if ($watchdog = db_fetch_object($result)) {
$output .= '<table border="1" cellpadding="2" cellspacing="2">';
- $output .= ' <tr><th>'. t('Type') ."</th><td>$watchdog->type</td></tr>";
+ $output .= ' <tr><th>'. t('Type') .'</th><td>' . t($watchdog->type) . '</td></tr>';
$output .= ' <tr><th>'. t('Date') .'</th><td>'. format_date($watchdog->timestamp, 'large') .'</td></tr>';
$output .= ' <tr><th>'. t('User') .'</th><td>'. format_name($watchdog) .'</td></tr>';
$output .= ' <tr><th>'. t('Location') ."</th><td>". l($watchdog->location, $watchdog->location) ."</td></tr>";