W3C home > Mailing lists > Public > w3c-wai-ig@w3.org > January to March 2004

Re: [WAI-IG] Serving my page in the right language

From: Jesper Tverskov <jesper.tverskov@mail.tele.dk>
Date: Mon, 15 Mar 2004 16:57:37 +0100
To: <w3c-wai-ig@w3.org>
Message-ID: <000601c40aa6$3d28cef0$440bc650@tversdata>

I'am not sure that language detection is a good thing. When I use an
English browser (I do) I want a French web site, a Russian website, etc.
to be in the original language when arriving. Then I can change language
if I need to. If I am in Spain and start looking at Danish web sites in
some local browser, I would hate if they were suddenly not in Danish.

I have a two language website in Danish and English, and I use almost
your setup for the files, but I normally only have one file if generated
dynamically and two language files if they are already generated. I use
both systems for different parts of the site just to test pro et cons.

I have two domain names, one for the Danish version (klapmusen.dk) and
one for the English version (SmackTheMouse.com), and I detect which one
is used and serve the appropriate page. On the surface a translation of
an article has the same name as the original like 20040108, but
depending on the domain name detected I transfer to files with names
like 20040108_en.html and 20040108_en.html but 20040108 is still in the
browser's address line.

Instead of your third file just do detect (you need a lot), I use a
special setup file in asp.net called global.asax, and I am sure that php
has something similar, to detect domain name, and then I do a so-called
server transfer to the right page. 

Jesper Tverskov

-----Oprindelig meddelelse-----
Fra: w3c-wai-ig-request@w3.org [mailto:w3c-wai-ig-request@w3.org] På
vegne af Jeroen Budts
Sendt: 14. marts 2004 22:43
Emne: [WAI-IG] Serving my page in the right language

Hash: SHA1
I'm considering of creating an english version of my website (currently
there's only a dutch version), but I have never done something like this
before. ~ My idea about it was to create a page like 'index.php' (i'll
call this the languageselector) which uses the http-request to decide
wether to serve the dutch or the english version, using a redirect, for
the english version to index.en.php and for the dutch to index.nl.php. I
would create a languageselector for every page, so that i would have
three files for every page: 'page.php', 'page.en.php', 'page.nl.php'. Is
this a good idea or are there better/other ways for doing this? Are
there maybe some 'ready made' solutions for this? (I use PHP on an
Apache server)

Kind regards and thanks,
Jeroen Budts

- --

- -------
<Person xmlns="http://xmlns.com/foaf/0.1/"
~  name="Jeroen Budts"
~  mbox="jeroen@lightyear.be"
~  homepage="http://www.lightyear.be"
~  weblog="http://www.budts.be"
~  icqChatID="103911636"

NO SoftwarePatents in Europe!
Sign the petition: http://petition.eurolinux.org/

Version: GnuPG v1.2.4 (MingW32)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
Received on Monday, 15 March 2004 10:49:31 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 13 October 2015 16:21:27 UTC