Russian language

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.

Quote · 21 Jan 2010

Try to comment the following string:


$s = get_mb_replace ('/([^\d^\w]+)/', '-', $s);

and un-comment another one:


//$s = get_mb_replace ('/[^\pL^\pN]+/u', '-', $s); // unicode characters

in inc\utils.inc.php file

The reason it is commented by default because many servers do not support unicode characters in regular expressions, make sure that your host does.

Rules → http://www.boonex.com/terms
Quote · 22 Jan 2010

Related problem: http://www.boonex.com/unity/forums/topic/Dolphin-7-Can-t-support-chinese-name-.htm

Rules → http://www.boonex.com/terms
Quote · 22 Jan 2010

Try to comment the following string:


$s = get_mb_replace ('/([^\d^\w]+)/', '-', $s);

and un-comment another one:


//$s = get_mb_replace ('/[^\pL^\pN]+/u', '-', $s); // unicode characters

in inc\utils.inc.php file

The reason it is commented by default because many servers do not support unicode characters in regular expressions, make sure that your host does.

Done. But friendly links are not friendly - see it: http://www.go2life.net/blogs/entry/%D0%93%D0%BB%D0%BE%D0%B1%D0%B0%D0%BB%D0%B8%D0%B7%D0%B0%D1%86%D0%B8%D1%8F-%D0%9A%D1%82%D0%BE-%D0%B8-%D1%87%D1%82%D0%BE-%D1%82%D0%B0%D0%BA%D0%BE%D0%B5-%D1%87%D0%B5%D0%BB%D0%BE%D0%B2%D0%B5%D0%BA


And where .html at the end of links? All russian users need TRANSLITERAL FRIENDLY LINKS ( .html )

Quote · 22 Jan 2010

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.

Quote · 22 Jan 2010

Try to comment the following string:


$s = get_mb_replace ('/([^\d^\w]+)/', '-', $s);

and un-comment another one:


//$s = get_mb_replace ('/[^\pL^\pN]+/u', '-', $s); // unicode characters

in inc\utils.inc.php file

The reason it is commented by default because many servers do not support unicode characters in regular expressions, make sure that your host does.

Done. But friendly links are not friendly - see it: http://www.go2life.net/blogs/entry/%D0%93%D0%BB%D0%BE%D0%B1%D0%B0%D0%BB%D0%B8%D0%B7%D0%B0%D1%86%D0%B8%D1%8F-%D0%9A%D1%82%D0%BE-%D0%B8-%D1%87%D1%82%D0%BE-%D1%82%D0%B0%D0%BA%D0%BE%D0%B5-%D1%87%D0%B5%D0%BB%D0%BE%D0%B2%D0%B5%D0%BA


And where .html at the end of links? All russian users need TRANSLITERAL FRIENDLY LINKS ( .html )

It looks like only IE transforms all Russian symbols such way. Other browsers do not have such problem. Also search engines don't have such problem too.

Translit is not universal.. it works for Russian language only. You can do it for your site only, but it is impossible to include this to Dolphin.

Rules → http://www.boonex.com/terms
Quote · 25 Jan 2010

It looks like only IE transforms all Russian symbols such way. Other browsers do not have such problem. Also search engines don't have such problem too.

Translit is not universal.. it works for Russian language only. You can do it for your site only, but it is impossible to include this to Dolphin.

That is what we need - http://www.boonex.com/unity/forums/?action=goto&my_threads=1#topic/Permalinks-for-Russian.htm

Quote · 26 Jan 2010
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.