Hi,
I made up a multilingual site under Modx Revolution and all my links or the same exept the 2 letters of the language :
example 1 in French :
http://subran.be/fr/services-informatique/a-distance/securisation-wifi.html
example 2 in Dutch :
http://subran.be/nl/services-informatique/a-distance/securisation-wifi.html
With a snippet php :
echo substr(strrchr($_SERVER['REQUEST_URI'], '/'), 1);
I can get the last part of the link : in this example "securisation-wifi.html" but it's not enough to change easily from one language to another
For example with this link it works fine:
http://subran.be/fr/formations.html because it's at the root of folder /fr and it and in .html but for all other links it's not working.
I also used this
but it takes all the like so in this example :
nl/services-informatique/a-distance/securisation-wifi.html
And I'd like to have a link on the French part like :
but until now it gives :
nl/fr/services-informatique/a-distance/securisation-wifi.html and I only want fr/services-informatique/a-distance/securisation-wifi.html to appear
Is there a way I can get this work fine ?
Thanks for your help,
Suby
[ed. note: subran last edited this post 12 years, 7 months ago.]