in

SharePoint Blogs

The Best Place for SharePoint-related Blogs

Mirjam's blog

Blogging about SharePoint related stuff

Changing the language of an existing SharePoint site

Recently we had a problem with a (pretty large) site. The problem was that the site was created in English, while it should have been created in Dutch.  All content was in Dutch of course, but for instance the Site Actions button still said Site Actions, and when adding a document the buttons were "New", "Upload" and "Actions".

In order to solve this a couple of possible solutions were explored:

  • Saving the site as template didn't work, because you can only see the saved site when you create a site in the original language of the site
  • Using backup and restore didn't work, the site kept it's original language
  • Changing the language through the object model didn't work, because the Language property of the SPWeb object is read-only

This last attempt did trigger me to think that the language of a site is stored at SPWeb level. It is also stored in the database in the Webs table. So I decided to do a little test with changing the language in de database. And it worked like a charm!

Now I know you're not supposed to change data in the database, but this was a very simple solution. And the best thing was that it only took me 30 seconds to write the query and about 0.02 seconds to run it. Everything in the site is now Dutch, except of course for already created lists and libraries. So the name of the Pages library is still Pages and does not change to Pagina's. But the Site Actions button calls itself Siteacties, the Master Pages are Hoofdpagina's and View All Site Content is called Alle site-inhoud weergeven. You get the picture.. ;-) 

For changing the language of all sites in the content database to Dutch the query would be:
UPDATE dbo.Webs SET Language = 1043

Changing the language of one site collection can be done with:
UPDATE dbo.Webs SET Language = 1043 WHERE SiteId = [[SiteCollectionId]]

And for changing the language of a single web or subsite you can use:
UPDATE dbo.Webs SET Language = 1043 WHERE Id = [[WebId]]

Comments

 

Anders said:

And how do the query look like?? Example?

May 2, 2008 2:23 AM
 

Matthias said:

Hi,

can you please provide us with the query you used?

Hartelijk bedankt

Matthias

May 4, 2008 9:37 AM
 

Alex blog about Microsoft said:

Mirjam van Olst did a great post about changing the language of an existing SharePoint Site. She tried

May 5, 2008 8:26 AM
 

SharePoint, SharePoint and stuff said:

ToppTipp Microsoft SharePoint Administration Toolkit 1.0 ( WhitePaper ) x64: www.microsoft.com/.../details.aspx

May 5, 2008 8:46 AM
 

Mirrored Blogs said:

ToppTipp Microsoft SharePoint Administration Toolkit 1.0 ( WhitePaper ) x64: http://www.microsoft.com

May 5, 2008 9:56 AM
 

Rene said:

Great article. Do not forget first to be sure having first the Dutch LanguagePack for Moss 2007 already installed...

May 6, 2008 7:14 AM
 

Joost Smit said:

I think that official Microsoft Support might be dropped for your complete server farm. This is an interesting question. Do you have experience on certain simple fixes through a SQL Query and the impact on the support by Microsoft?

May 6, 2008 2:31 PM
 

Ivar said:

Thank you Mirjam

You are brilliant.

:-)

May 21, 2008 7:04 AM
 

Julio Casal said:

Mientras creaba una solución MOSS 2007 para un cliente local cometí un error de principiante. Creé el sitio de SharePoint usando la plantilla Team Site, en lugar de usar la plantilla en Español. Como sabrán, esa es una muy mala elección, puesto que no

May 26, 2008 2:03 AM
 

Robert Graauw said:

3 woorden

GE

WEL

DIG

June 6, 2008 3:11 AM
 

Julio Casal said:

Mientras creaba una solución MOSS 2007 para un cliente local cometí un error de principiante. Creé el

June 7, 2008 8:44 PM
 

Felipe Vallejo said:

Hi Mirjam, I did that but when i try to create a new page i'm getting the following error "There are no page layout files available in the master page library of the top-level site. Add one or more page layouts to this library before you create a page or set page properties.". The problem seems to be because SharePoint can't query the master and layouts library, but i can still using the site settings link to see the masters and layouts pages.

do you know what the problem can be?

Thanks in advance.

June 9, 2008 5:10 PM
 

Gonçalo said:

Hi,

how can i know the codes for other languages?

(  especially portugal.. :P   )

June 19, 2008 9:27 AM
 

??????sharepoint???????????? : Jecoso’ Blog said:

Pingback from  ??????sharepoint???????????? : Jecoso’ Blog

June 23, 2008 8:58 AM
 

Steven said:

Thank you Mirjam

This post was a good help to me

June 24, 2008 6:18 AM
 

jecoso said:

好不容易把项目都按照需求做好了,这个时候用户突然说站点是英文的不好操作,要求改成中文的,怎么办总不能都重建吧,上网搜索了一下,找到了Mirjam

July 1, 2008 12:11 AM
 

robinjlm said:

Thank you Mirjam!

I fllowed under your advice. But when I set language to 2052, the web page report error:

The website cannot display the page

HTTP 500  

  Most likely causes:

The website is under maintenance.

The website has a programming error.

Would you please help me?

thanks

July 10, 2008 12:38 AM

Leave a Comment

(required )  
(optional )
(required )  
Add

About Mirjam

Mirjam van Olst works as a lead SharePoint developer at Macaw in the Netherlands. She started working for Macaw in April 2004. Before that she had her own company (Van Olst Websolutions) with which she build web applications. Mirjam has specialized in SharePoint development since June 2004. She started working with the 2007 Office system in may 2006. She has implemented several world-wide intranet environments based on SharePoint. She also gives presentations about MOSS 2007 on a regular basis and occasionally writes articles about MOSS related subjects.

Need SharePoint Training? Attend a SharePoint Bootcamp!

Posts (c) their respective authors. Everything else (c) 2007 SharePoint Experts