Step 5: Localize the Custom Ribbon XML File

The custom ribbon XML file defines a custom ribbon that contains custom actions. In this step, you learn how to localize the custom ribbon XML file.

Applies to: SharePoint Server 2010

In the AdventureWorks2008 Declarative Outlook Solution Sample, this file is OutlookContactRibbon.xml. In this file, you must localize the labels of several XML elements such as buttons and tabs.

To localize the custom ribbon XML file

  • Use the following example of a custom ribbon XML file. This example contains placeholders, which appear as "yourLocalizedString" string constants, and that correspond to the label values you must replace with localized text.

    <tab id="tabID" label="yourLocalizedString" 
               getVisible="GetVisible" tag="Solution">
        <group id="CustomerSalesGroupID" label="yourLocalizedString" 
               getVisible="GetVisible" tag="Context[OutlookContactCustomer.CustomerSalesGroupID]">
           <button id="relatedOrderHeaderButton"
                          size="large"
                          label="yourLocalizedString"
                          onAction="OnAction"
                          image="Arrow.jpg"
                        getEnabled ="GetEnabled"
                        tag="Action[OutlookContactCustomer.RelatedOrderHeaderAction]"
                      />
         </group>
         <group id="CustomerActionsGroupID" label="yourLocalizedString" getVisible="GetVisible" tag="Context[OutlookContactCustomer.CustomerActionsGroupID]">
             <button id="SearchCustomerByPhoneButton"
                         size="large"
                         label="yourLocalizedString"
                         onAction="OnAction"
                         image="MagGlass.png"
                       getEnabled ="GetEnabled"
                       tag="Action[OutlookContactCustomer.SearchCustomerByPhoneAction]"
                      />
         </group>
     </tab>
    

Next Steps

Step 6: Localize the Layout XML File