The "locale select" component allows visitors to switch between the configured language/currency combinations. It generates menus for the available languages visitors can choose from and for the dependent currencies that are available.
In the locale select component implementation, two sections are available that can be controlled via the select subpart configuration: The language client for the language menu and the currency client for the currency menu. Each of these sections can contain further subparts and they can be configured by the language subpart and currency subpart settings.
It's possible to pass options to the URL generator when the URLs for the menus are created:
The target, controller and action will stay the same after the page reload when visitors click on the links for changing the language or currency.
You can adapt the templates for the locale select component and their subparts by overwriting the templates in your own extension or configuring alternative template names:
- template body for the select component
- template header for the select component
- template body for the language menu
- template body for the currency menu
If you want to change the HTML structure of one of the templates, please have a look at the original versions to ensure that you don't loose essential functionality.