Set a default language for Multilingual site

Vote:
 

Hi,

We are developing a site in Multilingual and the urls are as follows:

http://www.examplesite.com/fr/testpage/

http://www.examplesite.com/en-fr/testpage/

http://www.examplesite.com/ae-fr/testpage/

when user types http://www.examplesite.com/ in browser and unless mentioned any language in the url then the default language should point to http://www.examplesite.com/en-fr/.

If user enters http://www.examplesite.com/ae-fr/ then it should point to ae-fr culture only and if he changed language then site should be displayed in the corresponding language.

I have tried with the following configuration but the it doesn't seems to work.

 <siteHosts>

         http://www.examplesite.com/en-fr/

<siteHosts>

Can you please provide your inputs on how to accomplish this task.

 Thanks and regards,
Sharath

 

#41882
Aug 02, 2010 14:47
Vote:
 

Hi,

Which CMS version are you using?

If you are using CMS 5, please take a look at CMS 5 Globalization Tech-note: http://world.episerver.com/Documentation/Items/Tech-Notes/EPiServer-CMS-5/EPiServer-CMS-5-R2-SP2/Globalization/

Hope this could help you!

#41896
Aug 03, 2010 8:11
Vote:
 

This should solve it:

<siteHosts>
         <add name="www.examplesite.com" language="en-fr" />
         <add name="*" />      
</siteHosts>
<siteHosts>
        <add name="www.examplesite.com" language="en-fr" />        
        <add name="*" />      
</siteHosts>
#41897
Edited, Aug 03, 2010 10:12
Vote:
 

Hi,

Thanks for the reply. We are using Epi server 6.0.

I have tried with given below tags but not find the solution.

<siteHosts>
        <add name="www.examplesite.com" language="en-fr" />        
        <add name="*" />      
</siteHosts>

Any idea where iam going wrong?

Thanks and regards,
Sharath

#41898
Aug 03, 2010 11:31
Vote:
 

Hi, 

Which file did you place the <siteHosts> Section?

The new EPiServerFramework is delivered with EPiServer CMS 6. This file contains mapping between host header name and site and default language. This information was previously located configuration/episerver/sites/site/siteHosts tag in the web config

You should place this section in  configuration/episerver/sites/site/siteHosts

Please take a look at here for more detail: http://world.episerver.com/Documentation/Items/Tech-Notes/EPiServer-CMS-6/EPiServer-CMS-60/Globalization/

#41899
Aug 03, 2010 11:40
Vote:
 

Hi,

Thanks for the info.

I have tried both in Epi server 5.0 and 6.0 and in the corresponding files as mentioned  by Nguyen and at the corresponding nodes.

But it not displaying the expected language.

 

Thanks in advance.

 

Regards,
Sharath

 

 

#41908
Aug 03, 2010 14:19
Vote:
 

Hi,

We don't know why it does not work for you. That way is the official way to configure Globalization in EPiServer.

Maybe you should try Ted Nyberg's article about Using a single domain strategy with multiple languages in EPiServer: http://labs.episerver.com/en/Blogs/Ted-Nyberg/Dates/112276/4/Using-a-single-domain-strategy-with-multiple-languages-in-EPiServer/

#41921
Aug 04, 2010 4:43
Vote:
 

I have an idea. Try editing the uiCulture in the globalization node. You'll find it in the web.config. Set it to whatever language should be default. For example "fr-en".

#41970
Edited, Aug 05, 2010 11:20
Vote:
 

I have an idea. Try editing the uiCulture in the globalization node. You'll find it in the web.config. Set it to whatever language should be default. For example "fr-en".

#41978
Aug 05, 2010 11:47
Vote:
 

Hi,

Yes Nilson , you are correct. We can change the uiCulture in globalization node but we can give only one language. My projects supports mulltiple sites from a single web.config and i want to assign different languages to each ste. When I set two different languages with extra globalization node then .net is throwing the exception. Is there any possibilty to have multiple globalization nodes.

Thanks and regards,
Sharath

#41983
Aug 05, 2010 13:23
Vote:
 

Yes, that setting is for the default language. You can try to change languages in Admin mode/Config/Site Information then click on your web site.

There you can set up different host names with their respective languages I think.

#41988
Edited, Aug 05, 2010 13:42
Vote:
 

Hi Nilsson,

Can you explain in details about the mentioned steps in previus post. I couldn't locate Site information in admin mode. Please provide your suggestion to achieve the functionality.

Thanks and regards,
Sharath

#42165
Aug 11, 2010 11:02
Vote:
 

Hi Sharath,

This step only makes sense if you have EPiServer CMS 6. If you have CMS 6 you'll find it under Admin mode -> Config tab -> System Configuration -> Site Information.

And as a side note: What license do you have?

#42169
Edited, Aug 11, 2010 12:10
Vote:
 

Hi,

Thanks for your suggestion.

Our existing solution is in Epi server 5.0 and now we are migrating the solution to 6.0.

In Epi server 5.0 we have developed Multiple sites for same base code based on Enterprise licenses.

Can you please suggest what kind of license we need to go for developing Multiple sites in multilingual languages using same base code in Episerver 6.0.

Thanks once again.

Sharath.

 

#42173
Aug 11, 2010 13:33
Vote:
 

If you want several sites in CMS 6 you'll need a Enterprise license. Then for each web site you'll need to download a new enterprise license.

Read more about it here:

http://world.episerver.com/Articles/Items/Enterprise-Functionality-in-EPiServer-CMS-6/

#42175
Aug 11, 2010 13:59