Did 15 mins of Google searching, nothing useful. As the thread location suggests, I am working in HTML. No switching for me at this point in time.
So here's what I want. I have a Dutch section (/nl/) and an English section (/en/)of my website. In my navigation bar I have 2 flags representing each language. Is it possible to link the user to the same file but in a different directory if they click one of the flags? So if they are on /nl/about.html, and they click on the English flag, they are linked to /en/about.html.
By the way I am using dwt's (Dreamweaver Templates), so that's why I would want one piece of code and be done with it.
I found this useful script on the www which returns the basename of your web page's current url.
If you set the suffix argument to an empty string you get the full base name including filename extension.
If you set a suffix like '.htm', you get the basename minus the suffix, assuming your url ends in .htm
You then only need to append it to the directory path to the alternate language folder on your site and then redirect your browser using JS to the new url.
I'm not a Dreamweaver user so I don't know how to integrate this script into your code. Maybe someone else can help or offer a better solution.
So if anyone wants to help me with this it would be freakin great.