I'm building a multi-language site and I want to put buttons so you can go the the equivalent of the other language, if you don't like your current language.
so if I'm on www.mydomain.com/nl/page1 I would like to go to www.mydomain/en/page1
Instead of always changing the path to /en/page1 , /en/page2 or /en/page3 etc. I wondered if it's possible to change the language by just stating to look into another subdomain for the same file so I could just copy the same code on every page without having to customise every single button.
Is there a way so I can just say something like this:
<a href="/en/..."></a>
BTW: I hope this is the right place of posting. Just joined this board a couple of minutes ago
so if I'm on www.mydomain.com/nl/page1 I would like to go to www.mydomain/en/page1
Instead of always changing the path to /en/page1 , /en/page2 or /en/page3 etc. I wondered if it's possible to change the language by just stating to look into another subdomain for the same file so I could just copy the same code on every page without having to customise every single button.
Is there a way so I can just say something like this:
<a href="/en/..."></a>
BTW: I hope this is the right place of posting. Just joined this board a couple of minutes ago
Last edited: