We are developing a site in Multilingual and the urls are as follows:
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.
Can you please provide your inputs on how to accomplish this task.
Thanks and regards,Sharath
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!
This should solve it:
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
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/
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.
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/
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".
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.
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.
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.
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?
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.
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: