New locale addition request
-
Hey,
thanks for the plugin, it works great. I have a request though:
For the plugin to transliterate everything correctly for the bulgarian language, there are just 4 characters that have to be different from your array. So It’d be awesome if you could add this elseif to your code:elseif($loc == 'bg') {//bulgarian locale $ret = array( 'А'=>'A','а'=>'a','Б'=>'B','б'=>'b','В'=>'V','в'=>'v','Г'=>'G', 'г'=>'g','Д'=>'D','д'=>'d','Е'=>'E','е'=>'e','Ё'=>'Jo','ё'=>'jo', 'Ж'=>'Zh','ж'=>'zh','З'=>'Z','з'=>'z','И'=>'I','и'=>'i','Й'=>'J', 'й'=>'j','К'=>'K','к'=>'k','Л'=>'L','л'=>'l','М'=>'M','м'=>'m', 'Н'=>'N','н'=>'n','О'=>'O','о'=>'o','П'=>'P','п'=>'p','Р'=>'R', 'р'=>'r','С'=>'S','с'=>'s','Т'=>'T','т'=>'t','У'=>'U','у'=>'u', 'Ф'=>'F','ф'=>'f','Х'=>'H','х'=>'h','Ц'=>'C','ц'=>'c','Ч'=>'Ch', 'ч'=>'ch','Ш'=>'Sh','ш'=>'sh','Щ'=>'Sht','щ'=>'sht','Ъ'=>'a', 'ъ'=>'a','Ы'=>'Y','ы'=>'y','Ь'=>'','ь'=>'','Э'=>'Je','э'=>'je', 'Ю'=>'Ju','ю'=>'ju','Я'=>'Ja','я'=>'ja' ); }
It just adds a slightly different character map if the locale is ‘bg’, in the exact same way you’re already doing it for russian and ukranian locales.
Cheers!
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘New locale addition request’ is closed to new replies.