Small width layout Medium width layout Maximum width layout Small text Medium text Large text
     Search
Downloads Downloads Directory Directory Forums Forums Forge Forge Blogs Blogs        Marketplace Marketplace Careers Program Careers
Community › Forums Register  |  

PortalWebHosting
  Ads  
Aspose - The .NET & Java component publisher
 


  Sponsors  

Meet Our Sponsors

The best choice for your web site host, email hosting, and domain registration.
CrystalTech Web Hosting™
Webhost4life, specialists in DNN hosting
Mad Development is a full service interactive agency focusing on the merge of design, technology, e-commerce, and affiliate marketing by providing total website solutions.
AspDotNetStoreFront - E-Commerce by Design - The Leading ASP.NET shopping cart platform for developers!
SteadyRain
 


DotNetNuke Forums
 
  Forum  General DotNetN...  Localize It! (L...  Setting the default language
Previous Previous
 
Next Next
New Post 8/12/2006 9:01 AM
User is offline yoni go
149 posts
9th Ranked


Setting the default language 

Hi,
I have two languages in my portal: English and Hebrew.
I defined in the portal settings the default language to be hebrew.
However, when non logged in users visit the site - the active language is English.
Where can i define that hebrew will be the default language for all users?

Thanks.

 
New Post 8/16/2006 12:17 AM
User is offline Vicenç Masanas
1402 posts
www.disgrafic.com
6th Ranked








Re: Setting the default language 
You cannot do that unless you only have one language on the portal. DNN will read the language settings on the browser and use the list to select the language that best suits the user preferences.
Disgrafic.com
 
New Post 8/16/2006 8:36 AM
User is offline yoni go
149 posts
9th Ranked


Re: Setting the default language 
Thanks for your answer.
Just to be sure:
1. If the user will set (in his preferences) Hebrew as the default language,
DNN will not read the browser settings?

2. Can i disable English and leave one language?
 
New Post 9/12/2006 3:32 PM
User is offline Olivier Dumetz
1 posts
www.evolutis.ca
10th Ranked


Re: Setting the default language 

While DNN reading the browser preference is useful, some of my clients want the site to *always* open first in a given language.

The only workaround I found was to do the following:

Step 1:
Place an .asp (or .aspx page) in the root folder that redirects to http://www.yoursite.com/Home/tabID/36/fr-CA/Default.aspx. As you can see, it is possible to define the locale in your home page link.

ASP example:
<%
response.redirect("http://www.yoursite.com/Home/tabID/36/fr-CA/Default.aspx")
%>

Step 2:
If the file is called index.asp, go to the IIS preferences for the site and change the default document order so that index.asp gets checked first (add it if it's not there, and move it above default.aspx)

And voilà! when people access www.yoursite.com, they will get redirected to the home page in the language you specify in the redirect.

Hope this helps someone...

Olivier
http://www.evolutis.ca/

 
New Post 9/17/2006 2:55 AM
User is offline Lars Lem
40 posts
10th Ranked


Re: Setting the default language 
It helped me and is probably useful to most people without english as their native language. I have never touched my browser language(well, I had to test it), nor do I expect others to do it.

Thank you odumetz.

Lars
 
Previous Previous
 
Next Next
  Forum  General DotNetN...  Localize It! (L...  Setting the default language
 


Forum Policy

These Discussion Forums are dedicated to the discussion of the DotNetNuke Web Application Framework.

For the benefit of the community and to protect the integrity of the project, 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 DotNetNuke.
2. Discussion or promotion of DotNetNuke product releases under a different brand name are strictly prohibited.
3. No Flaming or Trolling.
4. No Profanity, Racism, or Prejudice.
5. Site Moderators have the final word on approving/removing a thread or post or comment.
6. English language posting only, please.

 


AFUEGO!
Looking for Free DNN Hosting?
www.AFUEGO.com
Code 5 Systems, LLC.
The DNN Missing Link: A Form Module. Form Master 1.6 is an intuitive Form Creation Module at a great price. Quality Custom Module development, and DNN consulting services.
www.code5systems.com
SSL Enabled and Amazingly FAST...
SSL enable your DNN web site with SSLRedirect, compress your DNN web site HTTP data flow by up to 75%-90% with HttpCompressionAgent, and monitor your DNN web site's performance with WebKeepAlive...
www.sanibellogic.com

DotNetNuke Corporation   Terms Of Use  Privacy Statement
DotNetNuke®, DNN®, and the DotNetNuke logo are trademarks of DotNetNuke Corporation
Hosted by MaximumASP