首页 > 代码库 > Multilingual User Interface (MUI) In SharePoint 2013

Multilingual User Interface (MUI) In SharePoint 2013

1.Language Architecture

  

2.User Interface Elements That Consume User Resources

The SharePoint Foundation object model has six classes that have properties that return an SPUserResource object:

  • SPContentType

  • SPField

  • SPList

  • SPNavigationNode

  • SPUserCustomAction

  • SPWeb

The following table lists the properties that return SPUserResource objects and describes where the resources are consumed.

 

Property

Description

SPContentType.DescriptionResource

The source for the string returned by the SPContentType.Description property, which provides text that describes the content type.

SPContentType.NameResource

The source for the string returned by the SPContentType.Name property, which provides the display name for a content type.

SPField.DescriptionResource

The source for the string returned by the SPField.Description property, which provides text that describes the column.

SPField.TitleResource

The source for the string returned by the SPField.Title property, which provides the display name of the column.

SPList.DescriptionResource

The source for the string returned by the SPList.Description property, which provides text that describes the list.

SPList.TitleResource

The source for the string returned by the SPList.Title property, which provides the display name of the list.

SPNavigationNode.TitleResource

The source for the string returned by the SPNavigationNode.Title property, which provides the display name of a navigation node.

SPUserCustomAction.CommandUIExtensionResource

The source for the string returned by the SPUserCustomAction.CommandUIExtension property, which provides an XML representation of a custom action used on the ribbon.

SPUserCustomAction.DescriptionResource

The source for the string returned by the SPUserCustomAction.Description property, which provides text that describes a site, web, or list-scoped custom control.

SPUserCustomAction.TitleResource

The source for the string returned by the SPUserCustomAction.Title property, which provides display text that describes a site, web, or list-scoped custom control.

SPWeb.DescriptionResource

The source for the string returned by the SPWeb.Description property, which provides the text that describes a website.

SPWeb.TitleResource

The source for the string returned by the SPWeb.Title property, which provides the display name for a website.

Two additional properties return collections of user resources in an SPUserResourceCollection object. The SPList class has a UserResources property that contains SPUserResource objects that have localizable resources that are used by the list and also by fields, content types, and user custom actions that are associated with the list. If none of the display text for these objects has been customized, the UserResources property returns an empty collection. Typically, display text for standard lists such as Announcements and Shared Documents is not customized, and so the UserResources properties for those lists often return empty collections.

The UserResources property of the SPWeb class performs a similar function by returning a collection of SPUserResource objects that have localizable resources that are used by the website and by site columns, content types, navigation nodes, and user custom actions that are associated with the website. The objects that are returned in the collection represent only the display text that has been customized by users (including developers and administrators) of the website.

 

3.Export/Import Translations

  By my testing,it works well at root web,if it‘s a sub-web,just translating List Title and Navogator

Multilingual User Interface (MUI) In SharePoint 2013