advanced_language_negotiation
51 sites
Security covered
Advanced Language Negotiation
Introduction
Advanced Language Negotiation enhances Drupal’s multilingual capabilities by allowing both domain-based and path-prefix-based language detection simultaneously. It provides a hybrid approach for sites needing flexible multilingual setups. This module is ideal for websites that serve different language versions based on both domain structure and URL path prefixes.
Example Setup
This module is ideal for websites using different domains and paths to represent various language versions. Example configurations:
- www.example.com - US English site
- www.example.co.uk - UK English site
- www.example.de - Germany German site
- www.example.de/en - Germany English site
Features
- Enables both domain-based and path-prefix-based language negotiation at the same time.
- Provides an easy-to-use configuration page for defining language mappings.
- Fully integrates with Drupal’s core language negotiation system.
- Automatically determines the correct language from the domain and/or path.
- Fallback mechanism to the site's default language when no match is found.
- Useful for multilingual websites using country-specific domains or subdirectories for different languages.
Post-Installation
- Install and enable the module via Extend or run:
- Navigate to Configuration > Regional and language > Language negotiation.
- Select Advanced Language Negotiation as an active negotiation method.
- Configure domain-language mappings under the Advanced Language Negotiation settings:
- Save the configuration and test language negotiation by accessing different domains or paths.
drush en advanced_language_negotiation -ySimilar Projects
- Drupal Core Language Negotiation – Provides either domain-based or path-prefix-based negotiation, but not both at the same time.
- Internationalization (i18n) – Offers additional translation tools but does not focus on language negotiation.
This module provides a powerful and flexible multilingual solution for Drupal, perfect for websites needing advanced language detection across multiple domains and URL structures.