fixed Turkish problems see, Bug #5878 - Teachers can't add blog and blocks; merged from MOODLE_16_STABLE

This commit is contained in:
skodak 2006-06-26 07:23:10 +00:00
parent 4e5e7d54b5
commit 77cf4951b7

View File

@ -5963,7 +5963,7 @@ function moodle_setlocale($locale='') {
if ($CFG->ostype != 'WINDOWS') {
setlocale (LC_MESSAGES, $messages);
}
if ($CFG->locale == 'tr_TR') { // To workaround a well-known PHP bug with Turkish
if ($CFG->locale == 'tr_TR' or $CFG->locale == 'tr_TR.UTF-8') { // To workaround a well-known PHP bug with Turkish
setlocale (LC_CTYPE, $ctype);
}
}