Manage translated domains for Plone
Project description
Introduction
This addon let you manage translated domains and redirect user to correct domain according to negotiated language.
How to install
You can install this addon as any other Plone addons. Please follow official documentation: http://plone.org/documentation/kb/installing-add-ons-quick-how-to
This addon depends on Products.LinguaPlone
How to use
Once the addon is installed you have a controlpanel where you can configure each url for languages. Be warned no redirection happens if the url is not configured.
Example:
http://en.example.be|en http://stagingen.example.be|en http://deven.example.be|en http://nl.example.be|nl http://stagingnl.example.be|nl http://devnl.example.be|nl http://fr.example.be|fr http://stagingfr.example.be|fr http://devfr.example.be|fr
IMPORTANT: The choice is based on the order.
You can also configure using registry.xml in your generic setup profile:
<records interface="collective.linguadomains.interfaces.ISettingsSchema"> <value key="activated">True</value> <value key="mapping"> <element>http://fr.example.be|fr</element> <element>http://stagingfr.example.be|fr</element> <element>http://devfr.example.be|fr</element> <element>http://nl.example.be|nl</element> <element>http://stagingnl.example.be|nl</element> <element>http://devnl.example.be|nl</element> <element>http://en.example.be|en</element> <element>http://stagingen.example.be|en</element> <element>http://deven.example.be|en</element> </value> </records>
Credits
Companies
Contributors
author: JeanMichel FRANCOIS aka toutpt <toutpt@gmail.com>
Changelog
1.1 (2013-01-17)
Use 301 instead of 302 when doing redirect curl -s -w “%{http_code} %{url_effective}\n” “http://localhost:8080/Plone/fr” -o /dev/null
1.0 (2012-12-06)
Fix bugs with many domains on the same URL -> Use ordering of domains
1.0a1 (2012-05-11)
Initial release
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Hashes for collective.linguadomains-1.1.zip
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3f6c7d9dba764af0a9b5d61727e4e4d7eed81c00492f27d94de8c2c694a833f6 |
|
MD5 | 95c5229f2168c50e46c0e89b4c978707 |
|
BLAKE2b-256 | 7b8053ab0e2bd518b6426c419cfbb981a4a4929eaffefe38084ec906c2926572 |