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  |  

AppTheory specializes in solutions based on the DotNetNuke platform and has 2 employees on the DotNetNuke Core Team.
  Ads  
Webhost4Life - $4.95 Windows Hosting
 


  Sponsors  

Meet Our Sponsors

Portal Webhosting - Hosting For Developers
Red-Gate Software
MaximumASP
SourceGear - Tools for Developers
.: CounterSoft :.
telerik
 


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.

 


AppTheory
Professional development for medium to large projects based on the DotNetNuke platform.
www.apptheory.com
OnyakTech
Modules for Help Desks, Live Chat, Project Management, CRM, Charting, Reporting, Scrolling Text/Images, Portal Community tools and much more.
www.OnyakTech.com
IHostASP.NET Provides the Ideal DNN Hosting
We will help you with the installation, configuration, and troubleshooting of your DNN portal, no task is too big or small for us. Unlike other companies we are not just providing a reliable hosting service, but we are also focused on providing the best DotNetNuke hosting service on the internet.
www.ihostasp.net

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