Localization of Farm Solutions in SharePoint 2010

This topic provides some general information about the process of localizing a 服务器场解决方案.

上次修改时间: 2011年2月2日

适用范围: SharePoint Foundation 2010

备注

For information about localizing a 沙盒解决方案, see 沙盒解决方案的本地化.

Localization and the SharePoint Packaging System

Strictly speaking, a Microsoft SharePoint Foundation solution package (.wsp file) is not a language-relative file. A given solution package can be installed and deployed on any farm regardless of the languages that are being used on the farm.

However, the various components within the solution, including application pages, site definitions (webtemp*.xml files) strings in assemblies, and the various components within Features can all be localized. The process is not fundamentally different from the process of localizing any Microsoft ASP.NET or Windows-based application. You can include localized versions of images, CSS files, .aspx files, and any other files that have localizable content. In almost all scenarios, you will use .resx files for the languages into which you are localizing your solution. These can be deployed globally, for a specific web application, for a specific Feature, or for a specific Web Part.

All of these resources are included in the solution package file and are deployed to the appropriate places when the solution is deployed from a farm's solution store. The Microsoft Visual Studio 2010 中的 SharePoint 开发工具 make this a simple process.

For two detailed examples, see 演练:本地化列、内容类型和列表 and 演练:本地化 Web 部件.

Localizing a Solution that has Already Been Distributed

Frequently, you must release a SharePoint Foundation solution before it is localized into all the languages you intend. In such cases, one option is to distribute a new version of the solution after support for one or more additional languages is added to it. (For more information about upgrading a 服务器场解决方案, see 升级场解决方案.) But there is an alternative strategy. You can package the resources for each additional language into its own 服务器场解决方案 that has the same Solution ID as the original solution but is designated to be a language pack. This language pack solution can then be distributed and farm administrators can install it on farms where the original solution is installed. The effect is that the original solution is localized into the new language. For more information about creating and installing language packs, see 使用语言包场解决方案.

请参阅

概念

在 SharePoint 2010 中安装和部署场解决方案

使用语言包场解决方案

其他资源

沙盒解决方案的本地化

场解决方案