Language settings in Sitecore

There are a myriad of language settings in Sitecore (both on .config and in the core db) – I sat down and worked out what you edit where; question in red, if anyone’s got a minute to do a bit of research. 🙂

Site language as seen by visitors

To determine what the default language is for visitors accessing your site, change the language attribute on the appropriate site node in web config:

<site name="website" language="en-US" ... >

Sitecore client language

When we say client language, we mean the actual text used in the Sitecore interface – e.g. the word ‘Template Manager’ in the Sitecore menu, or the word ‘Edit’. Client translation files are available here: http://sdn.sitecore.net/Resources/Client_Translations/CMS%20Client%20Translations.aspx

<setting name="ClientLanguage" value="en-US" />

Default content language for author logging into Sitecore

You can determine what language should be selected by default on a per user basis – open the User Manager, edit the user, and change the Default Content Language – e.g. Sven might want Swedish to be his default selection, Maria might want Turkish to be her default selection.

If you have a multi-site instance and want your location in the tree to determine what language is selected, have a look at this blog post: http://blog.boro2g.co.uk/automatically-set-the-language-of-the-content-editor/

You can set a default content language by changing the language attribute on shell:

<site name="shell" ... language="en-US" ... />

There is a per-site attribute called contentLanguage, but that does not seem to affect the default – if anyone has made it work, let me know.

Restricting access to languages

To restrict what languages a user can view, use the Security Editor to deny access to the language items under /System/Languages like you would with any other Sitecore item.

6 comments

  1. Hi Martina. I am using Sitecore 8.1. When I set the Default Content Language on some user to Swedish and log in with that user, the default selected language on the items in the Content Editor is always English. Did you find that this actually works in SC 8.1? Anything else I need to do?

      1. I have the same settings as you and have tried clearing cache, but it still defaults to English instead of Swedish, which is what I selected in my Default Content Language setting.

  2. What do you have in config? I have language=”en” on the “shell” site. Do you have language fallback enabled? Is the user in question an admin?

    1. I found that the sitecore\client\Applications\Launchpad\PageSettings\Buttons\ContentEditing\ContentEditor item in the core database contained the following link: /sitecore/shell/Applications/Content Editor.aspx?sc_bw=1&la=en&fo={97B1DD7A-68F2-4D8C-8752-CC83FE9E0293}. The “la=en” will overwrite the user settings, so when I removed “la=en”, it started working for me.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s