FORUM IS CLOSED. PLEASE USE QUESTIONS / ANSWERS PAGE INSTEAD
Login  |  Forum  |  Search   

Board index » Development » Feature requests




Post new topic Reply to topic  [ 17 posts ]  Go to page 1, 2  Next
 
Author Message
 Post subject: Language detection and redirection
 Post Posted: Thu Jan 05, 2012 12:01 pm 
Offline

Joined: Wed Jul 27, 2011 10:12 am
Posts: 330
Location: Hong-Kong
Hello,

Just an idea to help non-php/javascript users.

Would be nice to have an integrated language detection/redirection tool.
In the mean time, lots are available in php, javascript... that can be added to main.php.

Some ideas:
- default language to use if not available
- group of languages sent to one language, (sp,de,nl) to fr
- offer google? auto-translation

Thanks,


Top 
 Profile  
 
 Post subject: Re: Language detection and redirection
 Post Posted: Thu Jan 05, 2012 8:43 pm 
Offline
Project Developer

Joined: Tue Apr 28, 2009 9:43 am
Posts: 1720
Could you explain what do you mean by "default language to use if not available"?


Top 
 Profile  
 
 Post subject: Re: Language detection and redirection
 Post Posted: Fri Jan 06, 2012 5:47 am 
Offline

Joined: Wed Jul 27, 2011 10:12 am
Posts: 330
Location: Hong-Kong
If the site is in EN, FR an SP.
FR is defined as default language in the config.

The visitor preference is DE.

DE is not available on the site, that visitor will see the FR first.


Top 
 Profile  
 
 Post subject: Re: Language detection and redirection
 Post Posted: Fri Jan 06, 2012 10:24 am 
Offline
Project Developer

Joined: Tue Apr 28, 2009 9:43 am
Posts: 1720
If you are talking about browser setting, you can turn on this option in configuration tab: Languages -> Options -> detect browser language.

if website has required language, it will be set by default. If not, the default language will be shown.


Top 
 Profile  
 
 Post subject: Re: Language detection and redirection
 Post Posted: Fri Jan 06, 2012 10:26 am 
Offline

Joined: Wed Jul 27, 2011 10:12 am
Posts: 330
Location: Hong-Kong
No, the goal is to go to the correct language, I have french set in my browser but it goes to english, always the first language in IP.


Top 
 Profile  
 
 Post subject: Re: Language detection and redirection
 Post Posted: Fri Jan 06, 2012 10:37 am 
Offline
Project Developer

Joined: Tue Apr 28, 2009 9:43 am
Posts: 1720
If detect browser language option is turned on it should work. Try to use fresh computer that has not been used to visit your website. ImpressPages remembers that you have chosen language manually and disables automatic language detection for your computer.


Top 
 Profile  
 
 Post subject: Re: Language detection and redirection
 Post Posted: Fri Jan 06, 2012 11:48 am 
Offline

Joined: Wed Jul 27, 2011 10:12 am
Posts: 330
Location: Hong-Kong
Thanks for your help.
The switch in Developer-Modules Config-Languages-Options-Detect browser language was Off.
Strange it was off... I do not think I turn it off.

Turning both checkboxes on, does not change the situation.

I did not yet try to use another computer... all have been used :-)

Thanks.


Last edited by Stf on Fri Jan 06, 2012 12:19 pm, edited 1 time in total.

Top 
 Profile  
 
 Post subject: Re: Language detection and redirection
 Post Posted: Fri Jan 06, 2012 12:10 pm 
Offline

Joined: Wed Jul 27, 2011 10:12 am
Posts: 330
Location: Hong-Kong
It seems there is some testing problems.
My site has the following menus EN-FR-ZH, the order in the Menu Mgt.

With Mac-Safari, deleting the cookie, cache, history, quit... mix all these actions...
It always shows the English page.
The languages preferences are defined in the System Preferences - Languages and Text.


With Mac-Firefox, after deleting the cookie, it goes to page with the language chosed in its preferences, normal, it is ok.
Firefox does not use Mac System Language Prefs... baaaddd ;-).

With Firefox, if you do not clean the cookie and change its language prefs it is still going to the same language page than the first time, normal, it is ok.

Delete the cookie in Firefox.
Set for example 'Fr' in its prefs, it goes to French page. Normal.
Then change it to 'Fr-France' without deleting the cookie.

Normally it must also go to the French page but it goes to English page!
The contrary is the same, changing from 'Fr-France' to 'Fr', it always goes to English page.
Cookie must be deleted each time to act correctly if a change occurs.

The test seems too strict, 'Fr-France', 'Fr-Canada',... and 'Fr' must go to the French page.

No big deal, switching from one language to/from a sub-group does not occur very often...

Thanks.


Top 
 Profile  
 
 Post subject: Re: Language detection and redirection
 Post Posted: Fri Jan 06, 2012 10:03 pm 
Offline
Project Developer

Joined: Tue Apr 28, 2009 9:43 am
Posts: 1720
fr-canada should default to fr if there is no such language on the website. Will take a look.


Top 
 Profile  
 
 Post subject: Re: Language detection and redirection
 Post Posted: Fri Jan 06, 2012 10:07 pm 
Offline
Project Developer

Joined: Tue Apr 28, 2009 9:43 am
Posts: 1720
By the way. Auto detect language is turned off by default. In non English countries default browser language often is English. And often their websites has local and English versions of website. So they will experience strange switch to English. To avoid that confusion it is turned off by default.


Top 
 Profile  
 
Display posts from previous:  Sort by  
 
Post new topic Reply to topic  [ 17 posts ]  Go to page 1, 2  Next

Board index » Development » Feature requests


 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron