maxicep
Active member
Hello everyone, specially to xenforo team
We are using the forum in Turkish language. When i enable the "enable romanizer" in xenforo settings then URL's are not fine for us. Some Turkish special characters can't replace exactly. (Like "ü", "ö")
Then we had a solution for that it is ;
Edit xenforo/Link.php
$title = strtr($title, array('´' => '', '"' => '', "'" => '', "Ö" => "o", "ö" => "o", "C" => "c", "c" => "c", "Ğ" => "g", "ğ" => "g", "Ş" => "s", "ş" => "s", "Ü" => "u", "ü" => "u", "İ" => "i", "ı" => "i", "Ç" => "c", "ç" => "c", "é" => "i", "â" => "a", "Ê" => "e", "Â" => "a", "?" => "_", "*" => "_", "." => "_", "," => "_", ";" => "_", ")" => "_", "(" => "_", "{" => "_", "}" => "_", "[" => "_", "]" => "_", "!" => "_", "+" => "_", "%" => "_", "&" => "_", "#" => "_", "$" => "_", "=" => "_", "ê" => "e", "." => "-" ));
So, these lines converting some Turkish character to suitable English characters. We are using the Xenforo for about 2.5 years.
But now, we have upgraded the xenforo 1.5 so added the new tag system. And this process which above, doesn't work on Tag URL's.
For example;
Tag: maxicep rütbe sistemi
Url: http://www.maxicep.com/forum/etiket/maxicep-ruetbe-sistemi/
But it should be
http://www.maxicep.com/forum/etiket/maxicep-rutbe-sistemi/
So, "ü" char should be "u". But it doesn't. It converts like "romanizer enabled urls" (ü => ue)
So, with our way which edited the Link.php file in xenforo, forum hreads and forum titles working well so converting "ü" => "u"
So, How we apply that same process on tag url's too?
Any ideas ?
P.S: I' m so sorry that Xenforo doesn't support still the Turkish Language completely.
Thanks.
We are using the forum in Turkish language. When i enable the "enable romanizer" in xenforo settings then URL's are not fine for us. Some Turkish special characters can't replace exactly. (Like "ü", "ö")
Then we had a solution for that it is ;
Edit xenforo/Link.php
$title = strtr($title, array('´' => '', '"' => '', "'" => '', "Ö" => "o", "ö" => "o", "C" => "c", "c" => "c", "Ğ" => "g", "ğ" => "g", "Ş" => "s", "ş" => "s", "Ü" => "u", "ü" => "u", "İ" => "i", "ı" => "i", "Ç" => "c", "ç" => "c", "é" => "i", "â" => "a", "Ê" => "e", "Â" => "a", "?" => "_", "*" => "_", "." => "_", "," => "_", ";" => "_", ")" => "_", "(" => "_", "{" => "_", "}" => "_", "[" => "_", "]" => "_", "!" => "_", "+" => "_", "%" => "_", "&" => "_", "#" => "_", "$" => "_", "=" => "_", "ê" => "e", "." => "-" ));
So, these lines converting some Turkish character to suitable English characters. We are using the Xenforo for about 2.5 years.
But now, we have upgraded the xenforo 1.5 so added the new tag system. And this process which above, doesn't work on Tag URL's.
For example;
Tag: maxicep rütbe sistemi
Url: http://www.maxicep.com/forum/etiket/maxicep-ruetbe-sistemi/
But it should be
http://www.maxicep.com/forum/etiket/maxicep-rutbe-sistemi/
So, "ü" char should be "u". But it doesn't. It converts like "romanizer enabled urls" (ü => ue)
So, with our way which edited the Link.php file in xenforo, forum hreads and forum titles working well so converting "ü" => "u"
So, How we apply that same process on tag url's too?
Any ideas ?
P.S: I' m so sorry that Xenforo doesn't support still the Turkish Language completely.
Thanks.