Try our conversational search powered by Generative AI!

Default language on site


I'm developing a site with multilanguage (sv and en). How do I decide what language should be default, for example, when i go to http://MYDOMAIN/ i would like the swedish to be default language. For some reason I always get english as default here. How do I change that?

Dec 17, 2012 14:25

That would be the EPiServerFramework.config:



    <siteHosts siteId="mySite">
      <add name="*" language="sv" />




Edited, Dec 17, 2012 14:46

Thanks, that works half way. I'll get to the swedish startpage, but links in menues etc are english. When looking at PageData-objects when debugging, I can see that LanguageID and LanguageBranch are both set to "sv", which is correct, but LinkURL are all set to "&epslanguage=en", which even appear for pages that are not even published in english.

Dec 17, 2012 15:24

Are you upgrading a site from CMS 6 to 7 or is this a brand new site?

How do you render the menus? Is your master languagebranch for the startpage swedish?


Edited, Dec 17, 2012 15:33

This is a brand new site

Dec 17, 2012 15:50

Regarding to tha db-table "tblContent", the master language branch is English for most pages. Is there any way I can change this?

Dec 17, 2012 16:41

There is no official, supported way to change master language through the API but there are tools that help you tweak the database for EPiServer 5-6. (

I have not seen anyone do this for EPiServer CMS 7 yet...

Dec 17, 2012 17:04

What is your globalization node in web.config file?

<globalization culture="en-US" uiCulture="en" requestEncoding="utf-8" responseEncoding="utf-8" resourceProviderFactoryType="EPiServer.Framework.Localization.LocalizationServiceResourceProviderFactory, EPiServer.Framework" />

If this changed, when you go to http://MYDOMAIN/, you get the correct branch (that's how it works for me).

Dec 18, 2012 11:08

Tried globalization-settings too, no change at all

Dec 18, 2012 13:54
This thread is locked and should be used for reference only. Please use the Episerver CMS 7 and earlier versions forum to open new discussions.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.