Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Drupal core's "Language switcher" block displays no content if there's only one language available (i.e., there's no language to switch to).
Admin Language's "Language switcher (without administration language)" block doesn't follow this pattern — if there are two languages installed (one admin language, one user language), this block still shows the solitary user language, even though there's nothing to switch to.
I think the correct behavior would be to hide the solitary language choice in this case, analogous to Drupal Core's behavior.
Comment | File | Size | Author |
---|---|---|---|
#3 | admin_language-no-alternatives-00-6.x-1.4-01.patch | 394 bytes | smokris |
#2 | admin_language-no-alternatives-00-6.x-1.4.patch | 515 bytes | smokris |
#1 | admin_language-no-alternatives-00.patch | 555 bytes | smokris |
Comments
Comment #1
smokrisPatch attached.
Comment #2
smokrisAlternative patch, against 6.x-1.4.
Comment #3
smokrisBlah. One more try at a 6.x-1.4 patch:
Comment #4
Liam MorlandDrupal 6 is no longer supported. If this issue is relevant for Drupal 7, please re-open and update the version.