1 (edited by rs324 2010-08-30 15:13)

Topic: changing the SEF urls to support multi-language

or at least to support your own language

this modification is at you own risk

go to include/functions.php , find the function

function sef_friendly($str) - line 747

find

$str = strtr($str, $lang_url_replace);
$str = strtolower(utf8_decode($str));

replace with :

$str = strtr($str, $lang_url_replace);
$str = strtolower($str);

and here comes the tricky part :

find (is the next line)

$str = forum_trim(preg_replace(array('/[^a-z0-9\s]/', '/[\s]+/'), array('', '-'), $str), '-');

replace with (and read the coment after the code block):

$str = forum_trim(preg_replace(array('/[^a-z0-9א-ת\s]/', '/[\s]+/'), array('', '-'), $str), '-');

important !

after 0-9 i added א-ת which are the valid latter in hebrew
א = first letter (like A in english)
ת = last letter (like Z in english)

now here you need to enter you own language latters for that to work own your own language.

enjoy.