Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

A patch to get PloneLanguageTool's contentnegotiator work in virtual hosting environment

Project Description


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 ============



  • Change name to cs.plt.contentnegotiator [erral]


  • Fix ConflictError import [erral]

1.1 -

  • Remove path logging [erral]
  • Add zcml and initialize method [erral]

1.0 -

  • Initial release [erral]
Release History

Release History

This version
History Node


Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date (14.5 kB) Copy SHA256 Checksum SHA256 Source Jul 18, 2013

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting