Menü schliessen
Created: December 5th 2011
Last updated: May 1st 2020
Categories: Joomla
Author: Marcus Fleuti

Joomla :: Language Switcher always shows all languages

Tags:  Joomla,  Language
Donation Section: Background
Monero Badge: QR-Code
Monero Badge: Logo Icon Donate with Monero Badge: Logo Text
82uymVXLkvVbB4c4JpTd1tYm1yj1cKPKR2wqmw3XF8YXKTmY7JrTriP4pVwp2EJYBnCFdXhLq4zfFA6ic7VAWCFX5wfQbCC

In order to be able to just hide the language switcher icon we have changed the default.php (/modules/mod_languages/tmpl/default.php) template file a bit.

Replace the file with this one: default.php

How it works:

  1. Added the variable $setLanguageCodesOffline where you can set the language code for those languages that shall not be displayed as an array
  2. Example: $setLanguageCodesOffline = array('fr-FR');
  3. More information can be found directly in the code