httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Brian Behlendorf <>
Subject Re: Multiple Content Languages
Date Fri, 25 Oct 1996 23:05:48 GMT

I +1 this; I think there's sufficient votes now for Paul to commit it.


On Mon, 21 Oct 1996, Paul Sutton wrote:
> HTTP/1.1 allows each resource to have more than one content-language
> associated with it. Apache currently handles only a single content
> language, so, for example
> would be returned with Content-Language: fr (the fr overrides the en
> because extensions are parsed left-to-right).
> The patch below updates Apache to support more than one language per
> resource. It replaces(*) the request_rec's content_language string
> with an array, content_languages. mod_mime.c is updated to push each
> language from the filename onto this array, and http_protocol.c writes
> out a correct Content-Language response header.
> (* for backwards compatibility, r->content_language is still available
> to modules. It now records the _first_ language encountered in the
> file extensions, since that seemed more logical. The code to output
> the Content-Language header ignores this field though, so if any
> changes a module makes to r->content_language will be ignored. I'll
> update mod_negotiation to handle multiple languages in each variant
> soon).
> Paul


View raw message