步骤 3:本地化解决方案清单 (OIR.config) 文件

解决方案清单 (OIR.config) 文件定义 Microsoft Outlook 声明性解决方案的一些部分。在此步骤中,您了解如何本地化解决方案清单文件中的几个 XML 元素。

上次修改时间: 2010年7月12日

适用范围: SharePoint Server 2010

若要本地化 AdventureWorks2008 声明性 Outlook 解决方案示例中的解决方案清单文件的一部分,请执行以下步骤。

更新解决方案清单 (OIR.config) 文件

  1. 在 SolutionSettings 中,使用本地化字符串替换 SolutionDisplayName 属性值。

    <SolutionSettings SolutionId="ContosoSalesManager" SolutionDisplayName="yourLocalizedString" SolutionVersion="1.0.0.0"/>
    
  2. 在 OfficeItemCustomizations 中,使用本地化字符串替换 ItemTypeDisplayName 属性值。

    <OfficeItemCustomizations xsl:type="OutlookItemCustomizations" ItemTypeDisplayName="yourLocalizedString" MessageClass="IPM.Contact.AWWSCustomer">
    
  3. 在 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>
    
  4. 在 Declarative:CodeMethodAction 中,使用本地化字符串替换 Caption 属性值。

    <Declarative:Actions>          
      <Declarative:CodeMethodAction MethodType="EditEntity" Name="Edit" Caption="yourLocalizedString" DisplayLocations="ItemContextMenu" DisplayOrder="2" Scope="ItemContext" /> 
    </Declarative:Actions>
    

后续步骤

步骤 4:本地化 InfoPath 表单模板 (*.xsn) 文件