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:
parent
58e9a56011
commit
ff640799f7
1 changed files with 2 additions and 0 deletions
|
@ -250,8 +250,10 @@ function set_up_language($sm_language, $do_search = false, $default = false) {
|
||||||
putenv( "LC_ALL=$longlocale" );
|
putenv( "LC_ALL=$longlocale" );
|
||||||
putenv( "LANG=$longlocale" );
|
putenv( "LANG=$longlocale" );
|
||||||
putenv( "LANGUAGE=$longlocale" );
|
putenv( "LANGUAGE=$longlocale" );
|
||||||
|
if ($sm_notAlias=='tr_TR') putenv( "LC_CTYPE=C" );
|
||||||
}
|
}
|
||||||
setlocale(LC_ALL, $longlocale);
|
setlocale(LC_ALL, $longlocale);
|
||||||
|
if ($sm_notAlias=='tr_TR') setlocale(LC_CTYPE,'C');
|
||||||
|
|
||||||
// Set text direction/alignment variables
|
// Set text direction/alignment variables
|
||||||
if (isset($languages[$sm_notAlias]['DIR']) &&
|
if (isset($languages[$sm_notAlias]['DIR']) &&
|
||||||
|
|
Loading…
Add table
Reference in a new issue