Skip to main content
  Monday, July 11 2022
  1 Replies
  252 Visits
  Subscribe
Hello. In the /administrator/components/com_dropfiles/helpers/files.php file, after about line 500 you have a character substitution. Please add Russian language:

'А' => 'a', 'а' => 'a',
'Б' => 'b', 'б' => 'b',
'В' => 'v', 'В' => 'v',
'Г' => 'g', 'г' => 'g',
'Д' => 'd', 'д' => 'd',
'Е' => 'e', 'е' => 'e',
'Ё' => 'yo', 'ё' => 'yo',
'Ж' => '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',
'Х' => 'x', 'х' => 'x',
'Ц' => 'cz', 'ц' => 'cz',
'Ч' => 'ch', 'ч' => 'ch',
'Ш' => 'sh', 'ш' => 'sh',
'Щ' => 'shh', 'щ' => 'shh',
'Ъ' => '', 'ъ' => '',
'Ы' => 'y', 'ы' => 'y',
'Ь' => '', 'ь' => '',
'Э' => 'e', 'э' => 'e',
'Ю' => 'yu', 'ю' => 'yu',
'Я' => 'ya', 'я' => 'ya',

Basically I used GOST 7.79-2000(B) https://en.wikipedia.org/wiki/Romanization_of_Russian

Please also add the Ukrainian language (these are differences compared to Russian):

'Ґ' => 'g', 'ґ' => 'g',
'Є' => 'ie', 'є' => 'ie',
'І' => 'i', 'і' => 'i',
'Ї' => 'i', 'ї' => 'i',

Basically I used LC without diacritics https://en.wikipedia.org/wiki/Romanization_of_Russian

For myself, I also used the replacement of all uppercase letters of English with lowercase. I think that this is better for the formation of legal URL addresses.

'A' => 'a',
'B' => 'b',
'C' => 'c',
'D' => 'd',
'E' => 'e',
'F' => 'f',
'G' => 'g',
'H' => 'h',
'I' => 'i',
'J' => 'j',
'K' => 'k',
'L' => 'l',
'M' => 'm',
'N' => 'n',
'O' => 'o',
'P' => 'p',
'Q' => 'q',
'R' => 'r',
'S' => 's',
'T' => 't',
'U' => 'u',
'V' => 'v',
'W' => 'w',
'X' => 'x',
'Y' => 'y',
'Z' => 'z'

Thanks in advance.
A
1 year ago
Hi,

Thanks for adding your feature request here.

This feature is not implemented yet, but I'll add it to our feature request list and keep that in mind for a future release.

Thanks a lot!
Best Regards,
  • Page :
  • 1
There are no replies made for this post yet.