Multi-language

More
4 years 11 months ago #8417 by Kian W Nowrouzian
To whom it may concern:
I uploaded JLSitemap extension for my joomla 4alpha12 based site, it is fixed for English and Russian Language.
So easily you may extend this remarkable extension to any language as for my site French language .
In models/sitemap.php line:No 470 I added
$lang = Factory::getLanguage();
$l = $lang->getTag();
if(pregmatch('/fr-FR/'), $l)
$defaultLanguage =ComponentHelper::getParams('com_language')->get('site', 'fr-FR');
else
if(pregmatch('/en-GB/'), $l)
$defaultLanguage =ComponentHelper::getParams('com_language')->get('site', 'en-GB');
else
...
//any language your developers would like to add or all in a switch case.

Then in layout so easily based on the language tag or code you may print only links belong to related active language
I used a layout override so that in the next update of your extension changes remain .
Thanks again and good luck
K W Nowrouzian
Senior Manager
kwproductions121.com

Please Log in to join the conversation.

More
4 years 11 months ago #8421 by JoomLine
Replied by JoomLine on topic Multi-language
Hello. Joomla 4 is still in beta. It will be possible to judge exactly the performance of the functions of the components for it and the system itself, only after the RC release. Prior to the release of the stable version, you can not use joomla 4 to create sites.

Please Log in to join the conversation.

More
4 years 11 months ago - 4 years 11 months ago #8426 by Kian W Nowrouzian
Replied by Kian W Nowrouzian on topic Multi-language
I did not judge, quite the contrary I admire your extension that is why I used it in most sites of mine. The reason I am employing Joomla 4 alpha is the fact that in JED I observed many extensions have been fixed for this version of Joomla. Yet you are completely right, Joomla 4 both alpha and beta are in process of being developed, Next to my site in J4 I have already developed in J3 the same site, just wanted to have more experience. By the way, would you like to exchange link with my site?
Kian W Nowrouzian
S. Manager
kwproductions121.com
Last edit: 4 years 11 months ago by Kian W Nowrouzian.

Please Log in to join the conversation.

Powered by Kunena Forum

Last from the forum

    • Карта сайта для компонента JoomMedia
    • Здравствуйте. Уже 2 года не могу создать карту сайта для компонента JoomMedia, который покупал: 1. В компоненте JSitemap нет такого источника данных, а сам не могу создать SQL запрос карты сайта для JoomMedia 2. В компоненте JL Sitemap нет плагина JoomMedia. Сможете помочь по любому из 2-х пунктов, могу оплатит расходы, компонент JoomMedia находится по ссылке drive.google.com/file/d/1xg4oQzcmYhJ1NGP...sw2/view?usp=sharing Компонент в работе: 4in.ru/sport.html  
    • In Component / JL Sitemap
    • чет не работает
    • You may have heard about the for a while now, but you still don't dare to visit them. It is time for you to lose your fear of these prostitute websites. Take your mobile phone, and visit it now. The escorts are local prostitutes you can access for a minimum amount.
    • In Component / Yandex Market XML
    • JL Content Fields Filter в настройках полей нет та...
    •   Здравствуйте. joomline.ru/rasshirenija/moduli/jlconten...=m4vw1l4vab486665406 отсюда с гитхаба скачал и установил на джумла версии 4.1.5 со страницы установка расширений. После установки появилась ошибка " Class "Joomla\Plugin\Jlcontentfieldsfilter\Extension\Jlcontentfieldsfilter" not found" Зашел на фтп по пути /plugins/system/ и перенес папку в /plugins сменив namespace. Дальше все по инструкции - в системе активировал плагин. В модулях включил. Захожу в созданное поле - есть стандартные вкладки, вкладки "Параметры фильтрации" нет. Что делать? >>>>>>>>>>>>>>>>>>>>> Hello. joomline.ru/rasshirenija/moduli/jlconten...=m4vw1l4vab486665406 I downloaded version 4.1.5 from GitHub and installed it on Joomla from the extension installation page. After installation, an error occurred: "Class "Joomla\Plugin\Jlcontentfieldsfilter\Extension\Jlcontentfieldsfilter" not found." I went to ftp at /plugins/system/ and moved the link to /plugins, changing the namespace. Then everything according to the instructions - the plugin was activated in the system. It is enabled in the modules. I go to the created field - there are standard tabs, but there is no "Filter parameters" tab. What should I do?  
    • In Modules Joomline / JL Content Fields Filter
© 2010- JoomLine
The Joomla!® name is used under a limited license from Open Source Matters in the United States and other countries. joomline.net is not affiliated with or endorsed by Open Source Matters or the Joomla! Project.

email: This email address is being protected from spambots. You need JavaScript enabled to view it.