in

SharePoint Blogs

The Best Place for SharePoint-related Blogs

Mirjam's blog

Blogging about SharePoint related stuff

April 2008 - Posts

  • 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]]

  • I'm tagged for the blogging Meme

    Bart Wessels was probably curious about whether I have a life next to SharePoint development, when he tagged me for Blogging Meme. It's a funny concept that let's bloggers share random stuff about themselves that you would otherwise never know about.
    Although the original post said you need to come up with eight facts and eight other bloggers, I agree with Bart that five will do.

    These are the  'Meme rules':

    • Each player starts with five random facts/habits about themselves.
    • People who are tagged need to write a post on their own blog (about their eight things) and post these rules.
    • At the end of your blog, you need to choose five people to get tagged and list their names.
    • Don’t forget to leave them a comment telling them they’re tagged, and to read your blog.

    So here we go...five random facts about me:

    1. The first time I presented in public was at the SharePoint Conference in Berlin in 2007 with Bart Wessels for about 400 people
    2. I have a CBR 600 F and I love to ride it!
    3. The more sports the better, I play tennis, do rock climbing, running, bikram yoga and snowboarding.
    4. I love laying jigsaw puzzles
    5. My favourite event of the year (apart from vacations) is Lowlands

    And the five lucky bloggers that I tag for meme are:

    Serge van den Oever
    Sander de Koning
    Edwin Vriethoff
    Teun Duynstee
    Marianne van Wanrooij


Need SharePoint Training? Attend a SharePoint Bootcamp!

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