From fa0c7d6d91e5c57223cac7f2c88f5d241e6304c0 Mon Sep 17 00:00:00 2001 From: moodler Date: Tue, 29 Oct 2002 15:25:22 +0000 Subject: [PATCH] Use the locale to set everything (eg string conversions, comparisons, money numbers etc instead of just the time) --- lib/setup.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/setup.php b/lib/setup.php index a7b85a9d01..47bd46d555 100644 --- a/lib/setup.php +++ b/lib/setup.php @@ -61,10 +61,10 @@ require("$CFG->dirroot/theme/$CFG->theme/config.php"); -/// Set language/locale of printed times (must be supported by OS) +/// Set language/locale of printed times etc (must be supported by OS) - if (! setlocale ("LC_TIME", $CFG->locale)) { - setlocale ("LC_TIME", $CFG->lang); // Might work + if (! setlocale ("LC_ALL", $CFG->locale)) { + setlocale ("LC_ALL", $CFG->lang); // Might work } /// Reference code to remove magic quotes from everything ... just in case. -- 2.39.5