For lack of a better name: blog

26Sep/101

Translate the SharePoint UI

In a previous post I showed the possibility to set another language for the UI and how to export the names of list, content types, etc to translate these to a target language.

If we want to translate not only the default UI elements (done with language packs) or content (done with variations) but also user-specified text such as field names, site name, etc. we can export these terms to a translation file.

In this screenshot we want to change the Site title and some of the document library names.

Export translations

image

By clicking export we get a xml file with the strings that need to be translated. A simple tool translators can use is the Resx Editor (link).

image

There are lots of empty fields, this is because these fields are actually empty, the description of a content type for example can be empty in Dutch while it is filled in in English.

After we saved our changes you can import the resx file from the site settings:

image 

Result:

image 
 

Site title and navigation items

When we change the name of the document library “project documenten” to project documents we only change the title of the list. This won’t change the navigation title in the quick launch or top navigation.

To change this or the site title we must simply have to set the current language to the target language and change the field we want to change, e.g. the site title or navigation. When we switch back to the source language we will see that the page is translated.

When we make an export after this translation in the UI we will see that SharePoint added the following row to the resx file:

image

It isn’t possible to add a string with the key 00000000000000000000000000000000_WebTitle to a resx file and fill the translated site title as value without changing it in the UI first.

On request some sample XML:

<data name="00000000000000000000000000000000_WebTitle">
<value>Archive</value>
<comment>Single line of text</comment>
</data>

more info about the resx xml schema click here

Posted by Alexander Ketelaar

Comments (1) Trackbacks (0)
  1. Thanks Alexander for sharing!

    I have just tried the MUI export functionnality. It works well but doesn’t export every text on the site (example : webpart name). I was able to workaround this problem using a small codeplex webpart called MUIExt (http://muiext.codeplex.com/).

    Elena


Cancel reply

(required)

No trackbacks yet.