Please i need help,
I want when i do search in City field and i write latin - english characters to replace with greek ones.
Example: when i type "volos" to replace with "βολος".
So i where i have to include the Latin Transliteration..
i found this on the forum that is for Russian alfabet
https://forums.osclass.org/development/bug-with-ads-please-help<?php
function cust_cyrillic_to_latin($textcyr) {
$cyr = array('а','б','в','г','д','e','ж','з','и','й','к','л','м','н','о','п','р','с','т','у',
'ф','х','ц','ч','ш','щ','ъ','ь', 'ю','я','А','Б','В','Г','Д','Е','Ж','З','И','Й','К','Л','М','Н','О','П','Р','С','Т','У',
'Ф','Х','Ц','Ч','Ш','Щ','Ъ','Ь', 'Ю','Я' );
$lat = array( 'a','b','v','g','d','e','zh','z','i','y','k','l','m','n','o','p','r','s','t','u',
'f' ,'h' ,'ts' ,'ch','sh' ,'sht' ,'a' ,'y' ,'yu' ,'ya','A','B','V','G','D','E','Zh',
'Z','I','Y','K','L','M','N','O','P','R','S','T','U',
'F' ,'H' ,'Ts' ,'Ch','Sh' ,'Sht' ,'A' ,'Y' ,'Yu' ,'Ya' );
return str_replace($cyr, $lat, $textcyr);
}
?>
Do i need keep $cyr and $lat or need greek other code??
Can someone please inform how do that?
need put in functions.php of theme or inc.search.php ?