Guest Posted August 2, 2008 Posted August 2, 2008 Hi! A new contribution: Language Redirect V1.0 :) Downloadable here: The purpose of this contribution is to redirect the Net surfer according to the language used by its browser: It makes it permit to detect the language of the web browser (tested under IE, Firefox, Netscape and safari) and to redirect the Home Page according to the aforementioned. All the languages are possible, But I tested it with the French, Spaniard and English… For the others, it is necessary to add cases. A default choice is also provided when the language of the browser does not correspond to the provided cases. Tested under osCMAX v2.0 RC3; OsCommerce Milestone 2.2; ZenCart Under Windows environment, Linux and Mac with the browser according to: IE, Firefox, Netscape and safari. If you have questions, remarks or improvement you can the post here! Quote
Guest Posted August 2, 2008 Posted August 2, 2008 Ouups ! I forgoten the link to download the contribution ! :blush: It is : http://addons.oscommerce.com/info/6121 Tks Stephane Quote
Guest Posted June 12, 2009 Posted June 12, 2009 I found out that enabeling it prevent search engines to crawl site. They dont have locale information I think. It work ok with browsers. So it is needed to add something to code when locale is not set. Can anyone help with this. Header validation shows error: Header Info HTTP/1.1 500 Internal Server Error Date: Fri, 12 Jun 2009 09:39:52 GMT Server: Apache/2.0.63 (Unix) mod_ssl/2.0.63 OpenSSL/0.9.8e-fips-rhel5 mod_python/3.3.1 Python/2.4.3 mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635 mod_perl/2.0.4 Perl/v5.8.8 Content-Length: 666 Connection: close Content-Type: text/html; charset=iso-8859-1 Quote
Guest Posted June 12, 2009 Posted June 12, 2009 deleting next part solved problem default: $_SESSION["ch_langue"] = "en"; header ("index.php?language=en"); break; Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.