Библиотека для cis, online, cms1
This commit is contained in:
commit
3c2e614d87
269 changed files with 39854 additions and 0 deletions
14
core/tools/translit.php
Normal file
14
core/tools/translit.php
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
<?php
|
||||
|
||||
function translit($st) {
|
||||
$st = strtr($st,"àáâãäå¸çèéêëìíîïðñòóôõúûý !¹", "abvgdeeziyklmnoprstufh_ie__#");
|
||||
$st = strtr($st,"ÀÁÂÃÄŨÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÚÛÝ", "ABVGDEEZIYKLMNOPRSTUFH_IE");
|
||||
$st = strtr($st, array(
|
||||
"æ"=>"zh", "ö"=>"ts", "÷"=>"ch", "ø"=>"sh",
|
||||
"ù"=>"shch","ü"=>"", "þ"=>"yu", "ÿ"=>"ya",
|
||||
"Æ"=>"ZH", "Ö"=>"TS", "×"=>"CH", "Ø"=>"SH",
|
||||
"Ù"=>"SHCH","Ü"=>"", "Þ"=>"YU", "ß"=>"YA",
|
||||
"¿"=>"i", "¯"=>"Yi", "º"=>"ie", "ª"=>"Ye"
|
||||
));
|
||||
return $st;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue