diff options
author | Dries Buytaert <dries@buytaert.net> | 2004-06-02 19:01:40 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2004-06-02 19:01:40 +0000 |
commit | c0b85a5721be04cec2f5e0d4a61200e43f2a9d92 (patch) | |
tree | d2ae2f9b01fa39fc0ad26f4821e033865dc51dd9 /modules/throttle | |
parent | dfef5164b49fc79af58ab6e7a595add1b6dc7592 (diff) | |
download | brdo-c0b85a5721be04cec2f5e0d4a61200e43f2a9d92.tar.gz brdo-c0b85a5721be04cec2f5e0d4a61200e43f2a9d92.tar.bz2 |
- Patch #4950 by Stefan (and Morbus): made watchdog messages translatable.
Diffstat (limited to 'modules/throttle')
-rw-r--r-- | modules/throttle/throttle.module | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/throttle/throttle.module b/modules/throttle/throttle.module index 7af30a89a..1dd8f0ed9 100644 --- a/modules/throttle/throttle.module +++ b/modules/throttle/throttle.module @@ -175,11 +175,11 @@ function _throttle_update($hits) { // log the change if ($throttle_new < $throttle) { variable_set('throttle_level', $throttle - 1); - watchdog($type, 'throttle: $hits hits in past minute; throttle decreased to level '. ($throttle - 1)); + watchdog($type, t('throttle: %hits hits in past minute; throttle decreased to level %level', array('%hits' => $hits, '%level' => ($throttle - 1)))); } if ($throttle_new > $throttle) { variable_set('throttle_level', $throttle + 1); - watchdog($type, 'throttle: $hits hits in past minute; throttle increased to level '. ($throttle + 1)); + watchdog($type, t('throttle: %hits hits in past minute; throttle increased to level %level', array('%hits' => $hits, '%level' => ($throttle + 1)))); } } |