Just go to Language Filter plugin, configuration. Once english is active, the links should be without /en/. We opened the file modules/mod_languages/helper. So for changing languages, you need to explicitely tell Joomla that you want to switch to english. That meant that our little module would not be as easy as we originally thought (and it’ll be like re-inventing the wheel), so we decided to take another look to see why Joomla’s built in language switcher module does not work. You are viewing a list of pages and/or additional subcategories under the category called Languages. But there was more to that, as we needed to make sure that the menu items match when switching from one language to another, for example, if we are on this page, then when switching to French, the link should automatically switch to. Once we have the language, we would be able to display the right link to the other language (or languages). $currentLanguageTag= $currentLanguage->getTag() $currentLanguage= & JFactory::getLanguage() Click the New button and click on Language Switcher in the modal popup window. We thought that it we could just re-write the module from scratch as it’s just an easy module, all we had to do was to detect the current language using the following code: The language switcher appeared for one language, but did not appear for the other.įor example, when the website was in French, then we were able to see the language switcher on the top right, but if it was in English, then the language switcher just wasn’t there.
But then also go to each menu and make the page 1 language and. Found that You need to set a default homepage that can be in hidden menu (and redirect from later) to Language 'All'. If not, the corresponding language does not show in the language switcher. We were working on a bilingual project today and we added the language switcher module to the top right of the website. One thing to check is also that you have marked the default menu item for each language.