J
Jim Royal
Living in Montreal, I am required to produce web content in both
official languages. So, my English sites contain links to French
content, and vice versa.
For database-driven sites, pulling up the content in the right language
is merely part of the query. But for static sites, all I've been able
to do is provide a link to the main page in the alternate language, but
that's a bit awkward for the site visitor.
Is there a way to pick up the URL for the current page, rewrite it on
the fly, and call up the equivalent page in the alternate language? For
example, to change this:
/en/services/general.shtml
into this:
/fr/services/general.shtml
Javascript? PHP?
Any suggestions are welcome.
official languages. So, my English sites contain links to French
content, and vice versa.
For database-driven sites, pulling up the content in the right language
is merely part of the query. But for static sites, all I've been able
to do is provide a link to the main page in the alternate language, but
that's a bit awkward for the site visitor.
Is there a way to pick up the URL for the current page, rewrite it on
the fly, and call up the equivalent page in the alternate language? For
example, to change this:
/en/services/general.shtml
into this:
/fr/services/general.shtml
Javascript? PHP?
Any suggestions are welcome.