解决方案清单 (OIR.config) 文件定义 Microsoft Outlook 声明性解决方案的一些部分。在此步骤中,您了解如何本地化解决方案清单文件中的几个 XML 元素。
上次修改时间: 2010年7月12日
适用范围: SharePoint Server 2010
若要本地化 AdventureWorks2008 声明性 Outlook 解决方案示例中的解决方案清单文件的一部分,请执行以下步骤。
更新解决方案清单 (OIR.config) 文件
在 SolutionSettings 中,使用本地化字符串替换 SolutionDisplayName 属性值。
<SolutionSettings SolutionId="ContosoSalesManager" SolutionDisplayName="yourLocalizedString" SolutionVersion="1.0.0.0"/>在 OfficeItemCustomizations 中,使用本地化字符串替换 ItemTypeDisplayName 属性值。
<OfficeItemCustomizations xsl:type="OutlookItemCustomizations" ItemTypeDisplayName="yourLocalizedString" MessageClass="IPM.Contact.AWWSCustomer">在 OutlookFolder 中,使用本地化字符串替换 FolderDisplayName 属性值。在此元素下面的 FolderViewDefinition 中,使用本地化字符串替换 ViewName 属性值。
<OutlookFolder Name="ContosoCustomers" FolderDisplayName="yourLocalizedString" NativeType="FolderContacts" SubscriptionName="AWWSExampleCustomerSubscription" FolderName="ContosoCustomerFolderID" CanCreate="true" CanUpdate="true" CanDelete="false"> <Views> <FolderViewDefinition Name="ContosoCustomerViewName" ViewName="yourLocalizedString" ViewType="TableView" IsDefault="true" ViewFileName="ContosoCustomerView.ovd" /> </Views> <Associations /> </OutlookFolder>在 Declarative:CodeMethodAction 中,使用本地化字符串替换 Caption 属性值。
<Declarative:Actions> <Declarative:CodeMethodAction MethodType="EditEntity" Name="Edit" Caption="yourLocalizedString" DisplayLocations="ItemContextMenu" DisplayOrder="2" Scope="ItemContext" /> </Declarative:Actions>