diff options
author | Dries Buytaert <dries@buytaert.net> | 2005-01-09 09:22:40 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2005-01-09 09:22:40 +0000 |
commit | 64b100d19ace2c9b82ced4438036a64a69eda3c3 (patch) | |
tree | 36a433e7cd27810edb315c2fc79e764742019b54 /includes/locale.inc | |
parent | 0830efe9a6c056d20a286880733fedcbd28b62fa (diff) | |
download | brdo-64b100d19ace2c9b82ced4438036a64a69eda3c3.tar.gz brdo-64b100d19ace2c9b82ced4438036a64a69eda3c3.tar.bz2 |
- Patch #13260 by UnConeD: watchdog module improvements.
We added a 'severity' column to watchdog():
watchdog($type, $message, $link) --> watchdog($type, $message, $severity, $link);
* Specify a severity in case you are reporting a warning or error.
* The $link-parameter is now the fourth parameter instead of the third.
TODO: document this in the upgrade guide.
Diffstat (limited to 'includes/locale.inc')
-rw-r--r-- | includes/locale.inc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/includes/locale.inc b/includes/locale.inc index b68d38a13..03e6dd098 100644 --- a/includes/locale.inc +++ b/includes/locale.inc @@ -30,7 +30,7 @@ function _locale_add_language($code, $name, $onlylanguage = TRUE) { } drupal_set_message($message); - watchdog('special', t('%language language (%locale) added.', array('%language' => "<em>$name</em>", '%locale' => "<em>$code</em>"))); + watchdog('locale', t('%language language (%locale) added.', array('%language' => "<em>$name</em>", '%locale' => "<em>$code</em>"))); } /** @@ -257,7 +257,7 @@ function _locale_import_po($file, $lang, $mode) { menu_rebuild(); drupal_set_message(t('Translation successfully imported. %number translated strings added to language, %update strings updated.', array('%number' => $additions, '%update' => $updates))); - watchdog('special', t('Imported %file into %locale: %number new strings added and %update updated.', array('%file' => "<em>$file->filename</em>", '%locale' => "<em>$lang</em>", '%number' => $additions, '%update' => $updates))); + watchdog('locale', t('Imported %file into %locale: %number new strings added and %update updated.', array('%file' => "<em>$file->filename</em>", '%locale' => "<em>$lang</em>", '%number' => $additions, '%update' => $updates))); return TRUE; } @@ -768,7 +768,7 @@ function _locale_export_po($language) { $header .= "\"Plural-Forms: nplurals=". $meta->plurals ."; plural=". strtr($meta->formula, '$', '') .";\\n\"\n"; } $header .= "\n"; - watchdog('special', t('Exported %locale translation file: %filename.', array('%locale' => "<em>$meta->name</em>", '%filename' => "<em>$filename</em>"))); + watchdog('locale', t('Exported %locale translation file: %filename.', array('%locale' => "<em>$meta->name</em>", '%filename' => "<em>$filename</em>"))); } // Generating Portable Object Template @@ -789,7 +789,7 @@ function _locale_export_po($language) { $header .= "\"Content-Transfer-Encoding: 8bit\\n\"\n"; $header .= "\"Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\\n\"\n"; $header .= "\n"; - watchdog('special', t('Exported translation file: %filename.', array('%filename' => "<em>$filename</em>"))); + watchdog('locale', t('Exported translation file: %filename.', array('%filename' => "<em>$filename</em>"))); } // Start download process |