Developers! Please attension.
When the Title: of any uploading
media, including blogs are written in Russian language (Ukrainian),
system is not Enable friendly Permalinks!!! Instead of that system is
output that title just like "-"
Here:
http://www.go2life.net/blogs/entry/- and
http://www.go2life.net/m/videos/view/- ...
Please do transliteral
functions, to be real friendly Permalinks for Russian.
You can see how russian developer (but not for Dolphin) is write - function totranslit:
function totranslit($var, $lower = true, $punkt = true) {
if ( is_array($var) ) return "";
$NpjLettersFrom = "абвгдезиклмнопрстуфцыі";
$NpjLettersTo = "abvgdeziklmnoprstufcyi";
$NpjBiLetters = array ("й" => "y", "ё" => "e", "ж" => "j", "х" => "h", "ч" => "ch", "ш" => "sh", "щ" => "sh", "э" => "e", "ю" => "u", "я" => "ya", "ъ" => "", "ь" => "", "ї" => "i", "є" => "e" );
$NpjCaps = "АБВГДЕЁЖЗИЙКЛМНОПРСТУФХЦЧШЩЬЪЫЭЮЯЇЄІ";
$NpjSmall = "абвгдеёжзийклмнопрстуфхцчшщьъыэюяїєі";
$var = str_replace( ".php", "", $var );
$var = trim( strip_tags( $var ) );
$var = preg_replace( "/\s+/ms", "-", $var );
$var = strtr( $var, $NpjCaps, $NpjSmall );
$var = strtr( $var, $NpjLettersFrom, $NpjLettersTo );
$var = strtr( $var, $NpjBiLetters );
if ( $punkt ) $var = preg_replace( "/[^a-z0-9\_\-.]+/mi", "", $var );
else $var = preg_replace( "/[^a-z0-9\_\-]+/mi", "", $var );
$var = preg_replace( '#[\-]+#i', '-', $var );
if ( $lower ) $var = strtolower( $var );
if( strlen( $var ) > 200 ) {
$var = substr( $var, 0, 200 );
if( ($temp_max = strrpos( $var, '-' )) ) $var = substr( $var, 0, $temp_max );
}
return $var;
}
CAN ANYONE DO LIKE THIS FOR DOLPHIN ? Please help.