Elxis CMS Forum
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: IOS Reservations online hotel booking system for Elxis CMS.
 
Poll
Question: Would you like to add a feature that will redirect the user to the proper language?
Yes
No
I dont know

Pages: [1]
  Print  
Author Topic: Redirect based on browser's language  (Read 3463 times)
datahell
Elxis Team
Hero Member
*****
Offline Offline

Posts: 7601



WWW
« on: October 28, 2008, 11:49:02 »

Elxis 2008.1 stores permanently the language information in the URL.
If you visit an Elxis 2008.1 web site like this: http://www.mysite.com then you will see the site's content in the default language. You have to switch language to change the site's language.
A new feature could redirect the user during his first visit (session) on the site to the proper language (if is a published language).

Example:
Site A has 3 languages published: english (default), italian and german.
A visitor from germany visits site A http://www.sitea.com
He will see the site in english.

With the redirect I propose he will be redirected to http://www.sitea.com/de/

Afterwards he can freely switch language back to english if he does nt like the german stuff.
This redirect is based on the user's browser default language.

If a visitor from spain visit siteA no redirect will happen as spanish language does not exist for siteA, so he will see the site in the default language, which in our example is english.
Logged

Farhad Sakhaei
Elxis Community
Hero Member
*****
Offline Offline

Posts: 1188


I know nothing , Should know more & more


WWW
« Reply #1 on: October 28, 2008, 12:30:33 »

Yes, It will be very nice ,
Also I love the Elxis intro welcome page Wink With choosing language in that welcome page ... Smiley If it can be implement in both ways , It will be very nice , The user can decide to select every these ways ...
Logged

Pages: [1]
  Print  
 
Jump to: