Preferred Language Prompt
Categories
Component ID
2912561
Component name
Preferred Language Prompt
Component type
module
Maintenance status
Development status
Component security advisory coverage
not-covered
Downloads
59
Component created
Component changed
Component body
Preferred Language Prompt (PLP) provides a way to funnel users from content in a non-preferred language to the translation of that content that matches their preferred language.
Prerequisites
This module only works with the URL Language negotiation method. Within that, it should work with both path prefix and subdomain.
How it works
- PLP is primarily a browser side solution:
- PLP uses window.navigator.languages or window.navigator.language to detect the visitor's preferred language.
- If necessary, it presents a "prompt" message in the visitor's preferred language that contains a link to the preferred-language translation of the current content.
- The visitor may follow or dismiss this message. If they dismiss it, it uses a cookie to track that the language prompt has been dismissed and it will not show the prompt again.
Limitations
- Only supports pages that have both "canonical" and "alt" link metatags. The metatags are how it knows which pages are possible link targets.