https://github.com/codesyntax/cs.plt.contentnegotiator
https://github.com/codesyntax/cs.plt.contentnegotiator
Last synced: over 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/codesyntax/cs.plt.contentnegotiator
- Owner: codesyntax
- Created: 2013-07-18T15:10:23.000Z (almost 13 years ago)
- Default Branch: master
- Last Pushed: 2013-07-18T15:11:00.000Z (almost 13 years ago)
- Last Synced: 2025-01-25T07:27:31.803Z (over 1 year ago)
- Language: Python
- Size: 113 KB
- Stars: 0
- Watchers: 7
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.txt
Awesome Lists containing this project
README
Introduction
============
This module patches PloneLanguageTool's getContentLanguage method
to work in a virtual hosting environment such as Plone served by Zope.
The original code uses the variable PATH_TRANSLATED from the request
but that variable has all the VirtualHostBase and domain keywords
used when virtualhosting your Plone site, so this small patch looks
at the request and if the application is run in a virtual hosted
environment, looks at VIRTUAL_URL_PARTS variable and if not at
PATH_TRANSLATED as usual.
This error has been reported to plone-users but has no fix yet.
You'll need PloneLanguageTool 2.1 to have this patch working
Introduction
============