Provides a block using the Dropbutton element to switch site language. Rather than the Language Switcher (Language modules basic block) that is an unordered list of links.
- Block will 'appear' when more than one language is active. Otherwise content is empty.
- Current Language appears at top of list. Otherwise by Language Weight
- Each list item has a class for it's language allowing for background image (flag) attached via theme level. For a great base of icons try: flag-icon-css.
- Options to display language link titles by:
- Language Name (translation UI)
- Language ID
- Native Name
- Custom Labels (per block instance)
- SEO Feature: Option to hide links to untranslated Entities. Sub-option: keep block render in place if no other translation path is available
- Is friends with Bootstrap! v3.8+ #2901106. Bootstrap themes will switch Drupal's native Dropbutton element with Bootstrap Dropdown
A Few Mentions:
-
About 'hreflang' and Language Blocks: @SEO
The hreflang attribute is used with all links within the language block, unlike other 'menu' blocks. This is why dead links to other non-published, or relinking/redirecting to the frontpage: is bad!
-
Panels, Views & Other Route Controlling Things
These such contrib tools do not conform to building pages that connect as Translated Nodes (or other such Content Entities) do. °This is why they do not have 'translation links'. (*Also possibly the next version of Drupal/Symfony routing may have better translation routing support and such tools could then adopt said tools..). Now that Drupal has it's own Layout tool built ontop of Nodes -- Nodes remain the way to produce such landing pages and attach field/blocks via Layouts while keeping ready for translation.
° See this project Plan Issues as related possible plugins.
* In Theory...
-
Language Icons...
- flagsarenotlanguages Design vs Communication.
- languageicon.org
Dependencies:
- Language (core)
- Block (core)
- Node (core)
Soft Dependencies:
Summary Reminder
Nodes (Content Entities) are the base of determining translation children: Views, Panels, Custom Routes have no ability to 'find a translation of'.
Config path:
- /admin/config/regional/dropdown-language-switcher
- /admin/config/regional/language — General Language Setup (core)
Similar As (yet better than):
- Language Switcher Dropdown
- Toolbar Language Switcher
- Language Switcher Extended
- Language Switcher Enhanced
- Language Switch Links
- Language Switcher Dialog
Drupal 11.0→11.2 Releases Footnote:
'Project page' can not show both subversions of support. Refer to https://www.drupal.org/project/dropdown_language/releases/4.1.1 for Drupal 11.0→11.2 specific support without the new core caching tool used in 4.1.2 for Drupal11.3+.
Project information
- Project categories: Content display, Content editing experience, Multilingual
- chart icon10,338 sites report using this module
- Created by skaught on , updated
- shieldStable releases for this project are covered by the security advisory policy.
Look for the shield icon below.