[SOLVED] Aliases from cyrillic Titles

More
7 years 11 months ago - 7 years 11 months ago #61826 by lipatovroman
Thank you!
I have downloaded 3.0.14-rc3 and now transliteration works fine for items and categories, and I no need to choose language each time I add new item.

But your array have some errors. Please replace it with fixed array.

// RUSSIAN
if ($language == 'ru-RU') {
$ruLangFrom = array('А', 'а', 'Б', 'б', 'В', 'в', 'Г', 'г', 'Д', 'д', 'Е', 'е', 'Ё', 'ё', 'Ж', 'ж', 'З', 'з', 'И', 'и', 'Й', 'й', 'К', 'к', 'Л', 'л', 'М', 'м', 'Н', 'н', 'О', 'о', 'П', 'п', 'Р', 'р', 'С', 'с', 'Т', 'т', 'У', 'у', 'Ф', 'ф', 'Х', 'х', 'Ц', 'ц', 'Ч', 'ч', 'Ш', 'ш', 'Щ', 'щ', 'Ъ', 'ъ', 'Ы', 'ы', 'Ь', 'ь', 'Э', 'э', 'Ю', 'ю', 'Я', 'я');
$ruLangTo = 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', 'Sch', 'sch', '', '', 'Y', 'y', '', '', 'E', 'e', 'Yu', 'yu', 'Ya', 'ya');
$langFrom = array_merge ($langFrom, $ruLangFrom);
$langTo = array_merge ($langTo, $ruLangTo);
}


Thanks!
Last edit: 7 years 11 months ago by lipatovroman.

Please Log in or Create an account to join the conversation.

More
7 years 11 months ago #61832 by ggppdk
Replied by ggppdk on topic Aliases from cyrillic Titles
Hello

you are changing
'Щ', 'щ', ... 'Э', 'э', 'Ю', 'ю', 'Я', 'я');

Your suggestion:
'Sch', 'sch', ... 'E', 'e', 'Yu', 'yu', 'Ya', 'ya');

Suggested by other users in past:
'Shh', 'shh', ... 'Je', 'je', 'Ju', 'ju', 'Ja', 'ja');

Why did they suggest it differently ? are they wrong ?


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

Please Log in or Create an account to join the conversation.

More
7 years 11 months ago - 7 years 11 months ago #61848 by lipatovroman
Hi!

There are several standarts for this.
I suggested standart replacement, that used in Joomla, K2 and other components.

This is table from wiki

ru.wikipedia.org/wiki/%D0%A2%D1%80%D0%B0...B8%D1%86%D0%B5%D0%B9



It is not critical, but it's more clear, when all components makes same transliteration.







And I made a mistake with replacement for Щ

Correct replacement is Щ = Shch

Thanks. :)
Last edit: 7 years 11 months ago by lipatovroman.

Please Log in or Create an account to join the conversation.

More
7 years 11 months ago #61854 by ggppdk
Replied by ggppdk on topic Aliases from cyrillic Titles
Hello

i will make the suggested changes, and also use this as you suggested:
Щ = Shch
щ= shch

i don't really know what is best, but it seems you are right


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...
The following user(s) said Thank You: lipatovroman

Please Log in or Create an account to join the conversation.

More
7 years 11 months ago #61856 by lipatovroman
We just make same as Joomla and others. :)
Thank you.

Please Log in or Create an account to join the conversation.

More
7 years 11 months ago - 7 years 11 months ago #61944 by ggppdk
Replied by ggppdk on topic Aliases from cyrillic Titles
Hello

i have made a new workaround for Joomla not supporting yet using content item language for doing the transliteration of the alias

- the new workaround will trigger the transliteration method included in EVERY language package

Behaviour of new workaround, should be the same as current workaround
- just the character map will depend on the map included in your language package

Also a Pull Request has been made to fix this in Joomla , fix will probably be in Joomla 3.6.0

Thanks for your contribution i getting this to work properly


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...
Last edit: 7 years 11 months ago by ggppdk.

Please Log in or Create an account to join the conversation.

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.297 seconds
Save
Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Essential
These cookies are needed to make the website work correctly. You can not disable them.
Display
Accept
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline