|
@@ -55,7 +55,8 @@ class RouteMap extends Base |
|
@@ -55,7 +55,8 @@ class RouteMap extends Base |
|
55
|
public static function generateRoute($title, $source, $source_id, $project_id){
|
55
|
public static function generateRoute($title, $source, $source_id, $project_id){
|
|
56
|
if(preg_match('/[\x{4e00}-\x{9fa5}]/u', $title)){
|
56
|
if(preg_match('/[\x{4e00}-\x{9fa5}]/u', $title)){
|
|
57
|
$title = Translate::tran($title, 'en');
|
57
|
$title = Translate::tran($title, 'en');
|
|
58
|
- }elseif (preg_match('/[а-яА-Я]/u', $title)) {
|
58
|
+ }
|
|
|
|
59
|
+ if (preg_match('/[а-яА-Я]/u', $title) || mb_ereg('[а-яА-Я]', $title)) {
|
|
59
|
$title = Translate::tran($title, 'en');
|
60
|
$title = Translate::tran($title, 'en');
|
|
60
|
}
|
61
|
}
|
|
61
|
$i=1;
|
62
|
$i=1;
|