Sitecore set/change default language from 'en'

喜你入骨 提交于 2019-12-04 16:52:19
Zooking

I don't think that changing anything about the en-language is a good idea. A lot of internal Sitecore objects are based on that language and you could risk loosing labels and help texts in the Sitecore UI.

We usually create all templates, renderings and layouts in the en-language and then create the content items for each language.

Instead you should set the language property in web.config for your site.

Here is an example that we are using from one of our multi-language solutions:

<site name="website_no" hostName="www.site.no|site.no" language="no" />
<site name="website_en" hostName="www.site.com|site.com" language="en" />
<site name="website" language="sv" />

The last line catches all requests not caught by the two first ones.

Couldn't get a site to use Danish as default language for backend UI based on value language="da" in <site...> tag. Changed it to da-DK, which made it work. Don't know if this is expected behaviour, but one might use the fully qualified ISO code to make sure, things are good.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!