Refactoring translit function

Signed-off-by: Aleksey Snisar <osni@isd.dp.ua>
Some changes

Signed-off-by: Aleksey Snisar <osni@isd.dp.ua>