Multi-language

More
2 years 2 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 or Create an account to join the conversation.

More
2 years 2 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 or Create an account to join the conversation.

More
2 years 2 months ago - 2 years 2 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: 2 years 2 months ago by Kian W Nowrouzian.

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

Powered by Kunena Forum

Last from the forum

    • Issue with Kunena Plugin
    • I am on Joomla 4.2.2 and Kunena 6, but when I enable the sitemap plugin for Kunena I keep getting this error:  So I have to keep the plugin disabled to be able to generate sitemaps. 
    • In Component / JL Sitemap
    • Фильтрация Без jQuery - Нет/Да работает по-разному...
    • В Дополнительных параметрах - Без jQuery - Нет  - сброс фильтра работает только если вручную указывается число в range-sliders. И при этом работает автоматическая фильтрация в range-sliders, но Не работает фильтрация чек-боксов или радиокнопок. Если опцию перекключить на Без jQuery - ДА - то сброс фильтра работает только на чек-боксы. И автоматическая фильтрация range-sliders Не работает уже. Что за закономерность такая. Ошибок в консоли браузера по прежнему нет. 
    • In Modules Joomline / JL Content Fields Filter
    • Не работает Сбросить фильтр в Jommla 4
    • В Joomla 4 чек боксы и радиокнопки работают нормально, фильтр срабатывает при каждом переключении. Но нажатие на Сбросить фильтр ничего на дает. Ошибок никаких нет при этом. Так же пробовал отключить Авто отравка. Все равно. При нажании на Сбросить фильтр сбрасываются только чек боксы, но фильтр не сбрасывается.
    • 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.