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基础】——Java IO流
    黑马程序员——【Java基础】——泛型、Utilities工具类、其他对象API
    黑马程序员——【Java基础】——集合框架
    nodeJs与elementUI实现上图片
    NodeJS连接mysql数据库
    nodeJs实现跨域
    将Express生成器下的pug修改为html
    git使用总结
    使用vue+elementUI组件实现表格自动完成
    nginx配置thinkphp5
  • 原文地址:https://www.cnblogs.com/ahghy/p/2776803.html
Copyright © 2011-2022 走看看