Wait wait ..
And now v6 is available but character problems are available too.
I have 6 different characters in Turkish;
ı , İ , ş , Ş , ü , Ü , ö , Ö , ç , Ç , ğ , Ğ
I want to change these charactes
in the url with;
i , I , s , S , u , U , o , O , c , C , g , G
Is this code ok in
lib/misc.lib.php ???
$string = str_replace('ı', 'i', $string);
$string = str_replace('İ', 'I', $string);
$string = str_replace('ş', 's', $string);
$string = str_replace('Ş', 'S', $string);
$string = str_replace('ü', 'u', $string);
$string = str_replace('Ü', 'U', $string);
$string = str_replace('ö', 'o', $string);
$string = str_replace('Ö', 'O', $string);
$string = str_replace('ç', 'C', $string);
$string = str_replace('Ç', 'C', $string);
$string = str_replace('ğ', 'g', $string);
$string = str_replace('Ğ', 'G', $string);
I think, this is not enough. I've tried that but no action.
Example: Code:
Content visible to registered users only. Please register at http://www.nicecoder.com/community/register.php
It must be;
Code:
Content visible to registered users only. Please register at http://www.nicecoder.com/community/register.php
My lib/misc.lib.php
.
.
.
// replace western chars with latin
$string = str_replace(GetWestern('a'), 'a', $string);
$string = str_replace(GetWestern('i'), 'i', $string);
$string = str_replace(GetWestern('u'), 'u', $string);
$string = str_replace(GetWestern('e'), 'e', $string);
$string = str_replace(GetWestern('o'), 'o', $string);
$string = str_replace(GetWestern('c'), 'c', $string);
$string = str_replace(GetWestern('d'), 'd', $string);
$string = str_replace(GetWestern('y'), 'y', $string);
$string = str_replace(GetWestern('n'), 'n', $string);
$string = str_replace('ı', 'i', $string);
$string = str_replace('İ', 'I', $string);
$string = str_replace('ş', 's', $string);
$string = str_replace('Ş', 'S', $string);
$string = str_replace('ü', 'u', $string);
$string = str_replace('Ü', 'U', $string);
$string = str_replace('ö', 'o', $string);
$string = str_replace('Ö', 'O', $string);
$string = str_replace('ç', 'C', $string);
$string = str_replace('Ç', 'C', $string);
$string = str_replace('ğ', 'g', $string);
$string = str_replace('Ğ', 'G', $string);
.
.
.
.