You are here

README.txt in Domain Locale 7

Same filename and directory in other branches
  1. 6 README.txt
Requirements:
- set language negotiation to "Path prefix only". 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.

Recommended:
- Use the module Drush Language Commands to add/remove languages:
  https://www.drupal.org/project/drush_language

Optional:
- make sure all languages have a prefix (by default English does not). This
  gives unique URLS for all languages.

Configuration:
- Add/Remove languages:
  - via the UI:
    /admin/config/regional/language
  - or using the module drush_language
    https://www.drupal.org/project/drush_language
- Edit the available languages for a domain:
    - via the UI:
        /admin/structure/domain/view/[domain_id]/language
    - via drush:
        domain-locale-set [domain_machine_name] '[list of language codes]' --defalt=[language_code]
        Eg.: domain-locale-set usa.example.com 'en es' --default=en

File

README.txt
View source
  1. Requirements:
  2. - set language negotiation to "Path prefix only". We are overriding $language in
  3. bootstrap hence overwriting any changes that might of been user's preferred
  4. language specific. Also user's preferred language might not exist all domains.
  5. You can leave the setting to "Path prefix with language fallback" but the
  6. language fallback will be overwritten.
  7. Recommended:
  8. - Use the module Drush Language Commands to add/remove languages:
  9. https://www.drupal.org/project/drush_language
  10. Optional:
  11. - make sure all languages have a prefix (by default English does not). This
  12. gives unique URLS for all languages.
  13. Configuration:
  14. - Add/Remove languages:
  15. - via the UI:
  16. /admin/config/regional/language
  17. - or using the module drush_language
  18. https://www.drupal.org/project/drush_language
  19. - Edit the available languages for a domain:
  20. - via the UI:
  21. /admin/structure/domain/view/[domain_id]/language
  22. - via drush:
  23. domain-locale-set [domain_machine_name] '[list of language codes]' --defalt=[language_code]
  24. Eg.: domain-locale-set usa.example.com 'en es' --default=en