From 7209909ec97127d616c36f3fe5e2db67140281ac Mon Sep 17 00:00:00 2001 From: moodler Date: Tue, 29 Oct 2002 15:33:09 +0000 Subject: [PATCH] On second thoughts, don't apply locale to numbers because it may affect some calculations. Just strings and times. --- lib/setup.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/lib/setup.php b/lib/setup.php index 47bd46d555..033c888dea 100644 --- a/lib/setup.php +++ b/lib/setup.php @@ -63,9 +63,12 @@ /// Set language/locale of printed times etc (must be supported by OS) - if (! setlocale ("LC_ALL", $CFG->locale)) { - setlocale ("LC_ALL", $CFG->lang); // Might work + if (!$CFG->locale) { + $CFG->locale = $CFG->lang; // Might work } + setlocale ("LC_TIME", $CFG->locale); + setlocale ("LC_CTYPE", $CFG->locale); + setlocale ("LC_COLLATE", $CFG->locale); /// Reference code to remove magic quotes from everything ... just in case. /// If you have problems with slashes everywhere then you might want to -- 2.39.5