Use C character conversion rules if Turkish translation is used. Breaks

some case insensitive searches in Turkish translations, but stops breaking
any strtoupper/strtolower functions, that assume English character case
conversion rules.
This commit is contained in:
tokul 2004-09-07 15:59:32 +00:00
parent 58e9a56011
commit ff640799f7

View file

@ -250,8 +250,10 @@ function set_up_language($sm_language, $do_search = false, $default = false) {
putenv( "LC_ALL=$longlocale" );
putenv( "LANG=$longlocale" );
putenv( "LANGUAGE=$longlocale" );
if ($sm_notAlias=='tr_TR') putenv( "LC_CTYPE=C" );
}
setlocale(LC_ALL, $longlocale);
if ($sm_notAlias=='tr_TR') setlocale(LC_CTYPE,'C');
// Set text direction/alignment variables
if (isset($languages[$sm_notAlias]['DIR']) &&