From: moodler Date: Tue, 29 Oct 2002 15:25:22 +0000 (+0000) Subject: Use the locale to set everything (eg string conversions, comparisons, X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=fa0c7d6d91e5c57223cac7f2c88f5d241e6304c0;p=moodle.git Use the locale to set everything (eg string conversions, comparisons, money numbers etc instead of just the time) --- 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.