[SOLVED] Aliases from cyrillic Titles

More
8 years 6 months ago - 8 years 6 months ago #61553 by lipatovroman
Hi!
FC creates aliases based on date



Normally, Joomla creates aliases based on symbol replacement (translit).
Система = sistema

How to make same?
Last edit: 8 years 6 months ago by ggppdk.

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

More
8 years 6 months ago - 8 years 6 months ago #61571 by ggppdk
Replied by ggppdk on topic Aliases from cyrillic Titles
Hello

- Joomla does not do , it does not transliterate
... unless you have a special language PHP file !
transliterate.php
- Do you have such a file in your language package ?


Also in v3.0.14-rc3 we added transliteration for 13 languages
PLEASE scroll to the bottom of this file, and look at the language names, is your language in them
github.com/FLEXIcontent/flexicontent-cck...exicontent_items.php


Testing package (DO NOT install in Joomla 3.4.x only for v3.5.0+)
github.com/FLEXIcontent/flexicontent-cck...ases/tag/v3.0.14-rc3

See the pictures
- inside Joomla article form, i used Russian language and the title is not transliterated, (also see picture of v3.0.14-rc3)





-- 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...
Attachments:
Last edit: 8 years 6 months ago by ggppdk.

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

More
8 years 6 months ago - 8 years 6 months ago #61572 by ggppdk
Replied by ggppdk on topic Aliases from cyrillic Titles
Hello

see my answer above

- also here is the list of language that we added transliteration in v3.0.14-rc3


BULGARIAN
CZECH
CROATIAN
GERMAN
GREEK
HUNGARIAN
POLISH
RUSSIAN
SLOVAK
SLOVENIAN
LITHUANIAN
ICELANDIC
TURKISH

If your language is not there, then note that we need a map like this:
Code:
// LITHUANIAN if ($this->language == 'lt-LT') { $ltLangFrom = array('ą','č','ę','ė','į','š','ų','ū','ž','Ą','Č','Ę','Ė','Į','Š','Ų','Ū','Ž'); $ltLangTo = array('a','c','e','e','i','s','u','u','z','A','C','E','E','I','S','U','U','Z'); $langFrom = array_merge ($langFrom, $ltLangFrom); $langTo = array_merge ($langTo, $ltLangTo); }


-- 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: 8 years 6 months ago by ggppdk.

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

More
8 years 6 months ago #61729 by ggppdk
Replied by ggppdk on topic Aliases from cyrillic Titles
Hello

so have you tested it ?


-- 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
8 years 6 months ago - 8 years 6 months ago #61774 by lipatovroman
Hi!
I have replaced file /administrator/components/com_flexicontent/tables/flexicontent_items.php
with
github.com/FLEXIcontent/flexicontent-cck...exicontent_items.php
And now transliteration works fine.

But it works only if I set russian language in item settings.



Is it possible to set my language as default for all new items?
Thanks.
Last edit: 8 years 6 months ago by lipatovroman.

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

More
8 years 6 months ago - 8 years 6 months ago #61790 by ggppdk
Replied by ggppdk on topic Aliases from cyrillic Titles
So

if the language of the currently edited item is "ALL"

then how would transliteration work:

- use site/administrator default language
Code:
JComponentHelper::getParams('com_languages')->get('site', 'en-GB'); JComponentHelper::getParams('com_languages')->get('administrator', 'en-GB');

- or use User Interface language choosen by current user ?
Code:
JFactory::getLanguage()->getTag()

which of the above options should be used ?


-- 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: 8 years 6 months ago by ggppdk.

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

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