zoukankan      html  css  js  c++  java
  • SharePOint 翻译界面的UI

    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

  • 相关阅读:
    哈希表
    java读写xml文件
    Java学习之Hessian通信基础
    DevExpress 中 gridView编辑单元格,失去焦点后,内容继而消失
    DevExpress控件的GridControl控件小结
    Spring 架构图
    WebLogic和Tomcat的区别
    EJB到底是什么,真的那么神秘吗??
    C# 枚举类型
    关于C#的Main(String[] args)参数输入问题
  • 原文地址:https://www.cnblogs.com/ahghy/p/2776803.html
Copyright © 2011-2022 走看看