httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nick Kew <>
Subject Re: [users@httpd] Language Negotiation and language specification in HTML files
Date Sun, 09 May 2004 17:56:01 GMT
On Sun, 9 May 2004, Stefan Müller wrote:

> Hi,
> I try to do the following:
> 1) Based on the user preferences in the browser a user gets the language
> of her or his choice.
> 2) In the page alternative languages are offered.
> 3) Once the user decided to read the pages in a particular language (by
> selecting, all links give pages in this language, i.e.

Good so far.

Organise your files into directories for each language - eg

/en/foo.html	(english)
/de/foo.html	(german)

When a user is in a /de/ or /en/ hierarchy, they have selected a language
and all links remain within the same language.

Now link or symlink the files to a default directory - e.g.

/en/foo.html	->	/default/foo.html.en
/de/foo.html	->	/default/

Users in the default directory will get language-negotiation.

The language links in foo.html then look like
<a href="../en/foo.html">English</a>
<a href="../de/foo.html">Deutsch</a>

while another link <a href="bar.html"> will preserve hierarchy and
therefore language, regardless of where it is selected from.

Nick Kew

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message