hi everyone,
i'm working on an international website & am looking for a way to have a "choose your language" link on every page which would load the same page that you're currently on in the chosen language. i've worked out language selection on the home page w/ a cookie set based on this post -
http://www.dynamicdrive.com/forums/s...tion%22&page=4
the english site is in the root & the translated sites are in subdirectories.
examples
mysite.com/index.php (english home page)
mysite.com/fr/index.php (french home page)
is there a script that would look at the page you're currently on & jump to the subdirectory & load that current page?
so if you're at, say,
mysite.com/contact.php
& click the link to show Spanish, it would jump you to
mysite.com/sp/contact.php
I'm looking for a way to do this dynamically & not have to manually add the links to every page. please let me know if you know of any options. i'm more of a designer & not much of a developer, but do know some basic js & php.
THANKS!
-bm



Reply With Quote

Bookmarks