diff options
author | Dries Buytaert <dries@buytaert.net> | 2002-04-24 20:55:20 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2002-04-24 20:55:20 +0000 |
commit | 681dfc4ac04a2e2f9f845abc2506cf28354d0c05 (patch) | |
tree | 769daf235eb955f697781d66c729d48af5d4fb1b /includes | |
parent | be5f1d2e9dcb040045826ff5829691cf72daa3dc (diff) | |
download | brdo-681dfc4ac04a2e2f9f845abc2506cf28354d0c05.tar.gz brdo-681dfc4ac04a2e2f9f845abc2506cf28354d0c05.tar.bz2 |
- Bugfix: solve problem with locales being "disabled". Reported by Jerritt,
fixed by Marco.
Diffstat (limited to 'includes')
-rw-r--r-- | includes/common.inc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/includes/common.inc b/includes/common.inc index 881cb06cd..37a999d31 100644 --- a/includes/common.inc +++ b/includes/common.inc @@ -115,6 +115,9 @@ function locale_init() { function t($string, $args = 0) { global $languages; + + $string = ($languages && function_exists("locale") ? locale($string) : $string); + if (!$args) { return $string; } |