Permalink
Browse files

Use the locale to set everything (eg string conversions, comparisons,

money numbers etc instead of just the time)
  • Loading branch information...
1 parent 024172b commit fa0c7d6d91e5c57223cac7f2c88f5d241e6304c0 moodler committed Oct 29, 2002
Showing with 3 additions and 3 deletions.
  1. +3 −3 lib/setup.php
View
@@ -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.

0 comments on commit fa0c7d6

Please sign in to comment.