This project is not covered by Drupal’s security advisory policy.
Domain Locale allows to customize language sets per domain for Drupal installs using Domain Access and core Locale module. This module also offers drush integration.
You need this module if:
For example:
If you have multiple domains such as:
- http://usa.example.com - using English (default), and Spanish;
- http://mex.example.com - using Spanish only
- http://che.example.com - using German as default, French, and Italian
- http://bra.example.com - using Portuguese Brazilian only.
A link is added to domain management section to administer domain specific languages. You can choose one or more from the enabled languages, change the weight they appear in for that domain and set default language for the domain. Updating this form will also keep language_default variable in Domain Conf in sync.
Things to keep in mind:
Set language negotiation to "Path prefix only" (URL
in Drupal 7). We are overriding $language in bootstrap hence overwriting any changes that might of been user's preferred language specific. Also user's preferred language might not exist all domains. You can leave the setting to "Path prefix with language fallback" but the language fallback will be overwritten.
Optional:
1. make sure all languages have a prefix (by default English does not). This gives unique urls for all languages on all domains.
Drush commands (D7):
Syntax:
drush domain-locale-set domain_machine_name
'list of language codes
' --defalt=language code
Eg.: drush domain-locale-set usa.example.com 'en es' --default=en
Dependencies
Recommended
- Drush Language - add new languanges to Drupal via drush. This module makes your life easier because you need a language already on the system in order to be enabled in a domain using Domain Locale.
CREDITS
- This project was originally developed by:
Katrin Silvius nonsie
- D7 port:
released by Mac_Weber after clen up, fix and code standardization of a code provided by emilkarl and other developers from the great Drupal community
#1124726: Domain Locale: D7 port
Thank you everyone contributing!
Project information
- 420 sites report using this module
- Created by nonsie on , updated
- This project is not covered by the security advisory policy.
Use at your own risk! It may have publicly disclosed vulnerabilities.
Releases
Some old bug fixes that got tested.
Development version: 7.x-1.x-dev updated 11 Jul 2017 at 06:04 UTC