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

  • 相关阅读:
    Actor
    spring mybatis circular reference
    MyBatis实现SaveOrUpdate
    Java SpringMVC实现国际化整合案例分析(i18n) 专题
    Spring Boot MyBatis 通用Mapper插件集成
    Spring Boot Servlet
    Android WebView 开发详解(二)
    Android与设计模式——观察者(Observer)模式
    Android系统设置— android.provider.Settings
    Android PNG渐变背景图片失真问题 getWindow().setFormat(PixelFormat.RGBA_8888);
  • 原文地址:https://www.cnblogs.com/ahghy/p/2776803.html
Copyright © 2011-2022 走看看