SharePOint 翻译界面的UI

本文介绍了如何解决在SharePoint中,自定义的包含中文名称的列表,在切换语言时无法自动翻译的问题。通过导出名称到翻译文件,使用Resx编辑器进行翻译,并导入回系统,可以实现自定义文本如字段名、站点标题等的多语言支持。

SharePoint 自己创建的列表名字如果是中文的在切换英文的时候,是不会自动翻译的。

 

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.

Exporttranslations

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

转载于:https://www.cnblogs.com/ahghy/archive/2012/11/19/2776803.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值