Multi-language

More
4 years 4 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
4 years 4 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
4 years 3 months ago - 4 years 3 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 3 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

    • After searching the house and finding nothing, Sam...
    • One day, a curious boy named Sam moved into the house with his family. As he explored the property, he noticed a rusty, old key lying under a bush. Sam picked it up, wondering what it might unlock. After searching the house and finding nothing, Sam decided to try the key on the garden gate. To his surprise, the key fit perfectly. With a turn of the key and a creak of the hinges, the gate slowly swung open. Inside the garden, Sam was greeted by a sight of wonder. The garden was overgrown but full of vibrant flowers, exotic plants, and a small, sparkling pond. In the middle of the garden stood a beautiful stone statue of a unicorn. As Sam explored further, he discovered a small plaque next to the statue. It read: "To whoever finds this garden, may you always find joy in the beauty of nature and the magic of discovery." Sam spent hours in the garden, exploring every corner and marveling at the hidden beauty. The garden seemed to have a magical quality that made Sam feel at peace and incredibly happy. From that day on, Sam made it a habit to visit the garden every day, taking care of it and sharing its beauty with his friends and family. The once-forgotten garden became a place of joy and wonder for everyone who visited. And so, Sam learned that sometimes, the greatest treasures are not just the secrets we uncover but the beauty and joy we find in them.
    • In Component / Afisha Joomla
    • how to get sponsored for running
    • <!--td {border: 1px solid #cccccc;}br {mso-data-placement:same-cell;}-->I think this is an informative post and it is very useful and knowledgeable. therefore, I would like to thank you for the efforts you have made in writing this article. <!--td {border: 1px solid #cccccc;}br {mso-data-placement:same-cell;}-->
    • In Component / JL Weather
    • One day, a curious boy named Sam moved i
    • One day, a curious boy named Sam moved into the house with his family. As he explored the property, he noticed a rusty, old key lying under a bush. Sam picked it up, wondering what it might unlock. After searching the house and finding nothing, Sam decided to try the key on the garden gate. To his surprise, the key fit perfectly. With a turn of the key and a creak of the hinges, the gate slowly swung open. Inside the garden, Sam was greeted by a sight of wonder. The garden was overgrown but full of vibrant flowers, exotic plants, and a small, sparkling pond. In the middle of the garden stood a beautiful stone statue of a unicorn. As Sam explored further, he discovered a small plaque next to the statue. It read: "To whoever finds this garden, may you always find joy in the beauty of nature and the magic of discovery." Sam spent hours in the garden, exploring every corner and marveling at the hidden beauty. The garden seemed to have a magical quality that made Sam feel at peace and incredibly happy. From that day on, Sam made it a habit to visit the garden every day, taking care of it and sharing its beauty with his friends and family. The once-forgotten garden became a place of joy and wonder for everyone who visited. And so, Sam learned that sometimes, the greatest treasures are not just the secrets we uncover but the beauty and joy we find in them.  
    • In Component / JL TV
© 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.