forked from joomla/Component-Builder
Transliteration of cyrillic characters
This commit is contained in:
parent
66c4a87cfc
commit
dd457ee571
@ -4982,7 +4982,6 @@ abstract class ComponentbuilderHelper
|
|||||||
// http://stackoverflow.com/a/2021729/1429677
|
// http://stackoverflow.com/a/2021729/1429677
|
||||||
return preg_replace('/\s+/', ' ', $string);
|
return preg_replace('/\s+/', ' ', $string);
|
||||||
}
|
}
|
||||||
|
|
||||||
// transliterate cyrillic characters
|
// transliterate cyrillic characters
|
||||||
$transliterationTable = array(
|
$transliterationTable = array(
|
||||||
'а' => 'a', 'б' => 'b', 'в' => 'v',
|
'а' => 'a', 'б' => 'b', 'в' => 'v',
|
||||||
@ -4996,7 +4995,6 @@ abstract class ComponentbuilderHelper
|
|||||||
'ч' => 'ch', 'ш' => 'sh', 'щ' => 'sch',
|
'ч' => 'ch', 'ш' => 'sh', 'щ' => 'sch',
|
||||||
'ь' => '', 'ы' => 'y', 'ъ' => '',
|
'ь' => '', 'ы' => 'y', 'ъ' => '',
|
||||||
'э' => 'e', 'ю' => 'yu', 'я' => 'ya',
|
'э' => 'e', 'ю' => 'yu', 'я' => 'ya',
|
||||||
|
|
||||||
'А' => 'A', 'Б' => 'B', 'В' => 'V',
|
'А' => 'A', 'Б' => 'B', 'В' => 'V',
|
||||||
'Г' => 'G', 'Д' => 'D', 'Е' => 'E',
|
'Г' => 'G', 'Д' => 'D', 'Е' => 'E',
|
||||||
'Ё' => 'E', 'Ж' => 'Zh', 'З' => 'Z',
|
'Ё' => 'E', 'Ж' => 'Zh', 'З' => 'Z',
|
||||||
|
Loading…
Reference in New Issue
Block a user