[SOLVED] Aliases from cyrillic Titles

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

i think it should be frontend site default (UI) language
since the above is the most common case by far


-- 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 #61792 by lipatovroman
If the language of the currently edited item is "ALL" - transliteration does not work.
I configured russian language as default Joomla admin panel and front end.
But when I create new item in FC - I always need to set russian language manualy,
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 #61804 by ggppdk
Replied by ggppdk on topic Aliases from cyrillic Titles

If the language of the currently edited item is "ALL" - transliteration does not work.


yes, i understood this (see my answer above)
and it is because of course we do not know which language to use,
- every language as a different character map

anyway added transliteration for language all,
- by considering it to be the FRONTEND site default language (you can select it in the joomla language manager at "Installed" languages)

and added transliteration for category alias too:
github.com/FLEXIcontent/flexicontent-cck...2a5792b81251943de4ca


-- 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 #61805 by ggppdk
Replied by ggppdk on topic Aliases from cyrillic Titles
Hello

to test it (if you have Joomla 3.5.x):
(do not install in J3.4.x, because a PHP 7 related change that we made needs fixing to work in J3.4.x, will fix in official release)

download from this link:
github.com/FLEXIcontent/flexicontent-cck/tree/3.0.x-stable

click "Download zip" and install via Joomla extension manager


-- 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 #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.

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.300 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