Language switcher - link changes URL
I am using the Transposh Wordpress plugin to make a site bilingual.

The plugin comes with a dropdown language selector, but I would like to instead place a link in the navigation that toggles the site between the two languages.

The default site is in English, and an example page might be xxx.com/page

The other language is Portuguese, with the translated page at xxx.com/pt/page 

So I would like the link to toggle between these two values:

    <a href="xxx.com/pt/page">Português</a>

and

    <a href="xxx.com/page">English</a>

Would jQuery be best to do this?

Thanks in advance!



Language switcher - link changes URL
===

I am using the Transposh Wordpress plugin to make a site bilingual.

The plugin comes with a dropdown language selector, but I would like to instead place a link in the navigation that toggles the site between the two languages.

The default site is in English, and an example page might be xxx.com/page

The other language is Portuguese, with the translated page at xxx.com/pt/page 

So I would like the link to toggle between these two values:

    <a href="xxx.com/pt/page">Português</a>

and

    <a href="xxx.com/page">English</a>

Would jQuery be best to do this?

Thanks in advance!


