Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Browser Language Detection no longer worksBrowser Language Detection no longer works
Previous
 
Next
New Post
5/11/2016 12:11 PM
 

Hi, does anybody has notice that the browser language detection for a multi language site stopped working in latest 2 DNN versions?

It was working in DNN 7.4.2, but with the new one, DNN always provides default language (i.e. en-US) even if a second language is installed, enabled and corresponding pages have been localized, translated, activated and published.

So if one navigates to www.test.com (two languages en-US [default] / it-IT and the browser preferred language is it-IT), the site starts on www.test.com/en-us/ instead of www.test.com/it-it/.

Thanks.

 
New Post
5/12/2016 5:28 AM
 
please make sure, you are having a primary site alias for each language (in Admin > Site Settings, 2nd tab)

Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
5/12/2016 5:44 AM
 

Hi Sebastian,
thank you for replying to my post.

 

I confirm there is a primary alias for each language in Admin->Site Settings->Advanced Settings->Portal Aliases:

 

Primary Site Alias     Language code
v  www.dnn080001.com    
v  www.dnn080001.com/en-us  en-US    Current Alias
v  www.dnn080001.com/it-it  it-IT  

 
New Post
5/19/2016 11:42 AM
 

This is to share my findings on this subject for the benefit of others struggling for a functionality that should be relied on.

In DNN 7.4.2 Browser Language Detection was working like a charm, in DNN 8.01 and 8.0.2 it no longer works.

For example, if in FireFox I set it-IT as preferred language and I try to access www.test.com, DNN redirects to www.text.com/en-us (which is not the expected result).

I found a workaround (for IIS) that works only if the home page has the same name in all languages (i.e. Home) by adding a redirect rule to IIS so that if one writes www.test.com it gets redirected to www.test.com/Home.

In this way, once the preferred language of the browser is set to it-IT, the result is the home page of the site in Italian (although the URL remains www.test.com/Home without the locale in it).

On the contrary, once the preferred language is set to en-US, the result is the home page in English (URL being in this case www.test.com/en-us, how weird!).

I hope this helps while waiting for a definitive fix to this issue.

Cheers

 
New Post
5/19/2016 11:48 AM
 
thanks for sharing your findings.

Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Browser Language Detection no longer worksBrowser Language Detection no longer works


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out