On second thoughts, don't apply locale to numbers because it may

affect some calculations.   Just strings and times.
This commit is contained in:
moodler
2002-10-29 15:33:09 +00:00
parent fa0c7d6d91
commit 7209909ec9
+5 -2
View File
@@ -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