]> git.mjollnir.org Git - moodle.git/commitdiff
Use the locale to set everything (eg string conversions, comparisons,
authormoodler <moodler>
Tue, 29 Oct 2002 15:25:22 +0000 (15:25 +0000)
committermoodler <moodler>
Tue, 29 Oct 2002 15:25:22 +0000 (15:25 +0000)
money numbers etc instead of just the time)

lib/setup.php

index a7b85a9d016f05878cea22ddcec5b8f7137be1b9..47bd46d5554d9b390fb8028fa2b40dac3303e86b 100644 (file)
     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.