diff options
author | Dries Buytaert <dries@buytaert.net> | 2002-11-01 10:47:20 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2002-11-01 10:47:20 +0000 |
commit | cc381c14613b4c4539d74f38ec58196f6dfcdaa0 (patch) | |
tree | 34c44d95ed24402bca4736765ba7a0d53e458ac5 /modules/watchdog.module | |
parent | 74c722502bf274cc59b3b6fd871db9d96defba4f (diff) | |
download | brdo-cc381c14613b4c4539d74f38ec58196f6dfcdaa0.tar.gz brdo-cc381c14613b4c4539d74f38ec58196f6dfcdaa0.tar.bz2 |
- Fixed glitch in block module: the admin links were not composed
correctly. Patch by Stefan.
- Added missing t() functions and improved the %x directives for
better readability and to ease the process of translating your
site. Patches by Stefan.
- Made two small additions to the 'code-clean.sh' script; it will
now remove patch related junk.
NOTES:
- I removed the · related bits. Let's tackle these later on
in a separate patch after we got some sort of consensus.
- I removed the 'module_exist("drupal")' check in the user module;
I *think* it is incomplete and therefore incorrect.
- Stefan, try using quotes in your translations and check whether
everything still works. Example: translate the "Create account"
button to "Create \"haha\" account \'hihi\'" and see if you can
still create new accounts. Maybe automate this using a quick
hack in the locale module ...
Diffstat (limited to 'modules/watchdog.module')
-rw-r--r-- | modules/watchdog.module | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/modules/watchdog.module b/modules/watchdog.module index d4e7b654e..ff2473dda 100644 --- a/modules/watchdog.module +++ b/modules/watchdog.module @@ -26,8 +26,8 @@ function watchdog_link($type) { } function watchdog_conf_options() { - $period = array(3600 => format_interval(3600), 10800 => format_interval(10800), 21600 => format_interval(21600), 32400 => format_interval(32400), 43200 => format_interval(43200), 86400 => format_interval(86400), 172800 => format_interval(172800), 259200 => format_interval(259200), 604800 => format_interval(604800), 1209600 => format_interval(1209600), 2419200 => format_interval(2419200), 1000000000 => "Never"); - $output .= form_select("Discard entries older than", "watchdog_clear", variable_get("watchdog_clear", 604800), $period, "The time watchdog entries should be kept. Older entries will be automatically discarded. Requires crontab."); + $period = array(3600 => format_interval(3600), 10800 => format_interval(10800), 21600 => format_interval(21600), 32400 => format_interval(32400), 43200 => format_interval(43200), 86400 => format_interval(86400), 172800 => format_interval(172800), 259200 => format_interval(259200), 604800 => format_interval(604800), 1209600 => format_interval(1209600), 2419200 => format_interval(2419200), 1000000000 => t("Never")); + $output .= form_select(t("Discard entries older than"), "watchdog_clear", variable_get("watchdog_clear", 604800), $period, t("The time watchdog entries should be kept. Older entries will be automatically discarded. Requires crontab.")); return $output; } @@ -42,7 +42,7 @@ function watchdog_overview($type) { $result = db_query("SELECT w.*, u.name, u.uid FROM watchdog w LEFT JOIN users u ON w.uid = u.uid ". ($type ? $query[$type] : "") ." ORDER BY timestamp DESC LIMIT 1000"); $output .= "<table border=\"1\" cellpadding=\"2\" cellspacing=\"2\">"; - $output .= " <tr><th>date</th><th>message</th><th>user</th><th>operations</th></tr>"; + $output .= " <tr><th>" . t("date") . "</th><th>" . t("message") . "</th><th>" . t("user") . "</th><th>" . t("operations") . "</th></tr>"; while ($watchdog = db_fetch_object($result)) { if ($background = $color[$watchdog->type]) { $output .= " <tr bgcolor=\"$background\"><td>". format_date($watchdog->timestamp, "small") ."</td><td>". substr(check_output($watchdog->message), 0, 64) ."</td><td align=\"center\">". format_name($watchdog) ."</a></td><td align=\"center\">". la(t("details"), array("mod" => "watchdog", "op" => "view", "id" => $watchdog->wid)) ."</td></tr>"; @@ -58,12 +58,12 @@ function watchdog_view($id) { if ($watchdog = db_fetch_object($result)) { $output .= "<table border=\"1\" cellpadding=\"2\" cellspacing=\"2\">"; - $output .= " <tr><th>Type:</th><td>". check_output($watchdog->type) ."</td></tr>"; - $output .= " <tr><th>Date:</th><td>". format_date($watchdog->timestamp, "large") ."</td></tr>"; - $output .= " <tr><th>User:</th><td>". format_name($watchdog) ."</td></tr>"; - $output .= " <tr><th>Location:</th><td>". check_output($watchdog->location) ."</td></tr>"; - $output .= " <tr><th>Message:</th><td>". check_output($watchdog->message) ."</td></tr>"; - $output .= " <tr><th>Hostname:</th><td>". check_output($watchdog->hostname) ."</td></tr>"; + $output .= " <tr><th>" . t("Type") . ":" . "</th><td>". check_output($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>". check_output($watchdog->location) ."</td></tr>"; + $output .= " <tr><th>" . t("Message") . ":" . "</th><td>". check_output($watchdog->message) ."</td></tr>"; + $output .= " <tr><th>" . t("Hostname") . ":" . "</th><td>". check_output($watchdog->hostname) ."</td></tr>"; $output .= "</table>"; return $output; |