Step 5: Localize the Custom Ribbon XML File

Step 5: Localize the Custom Ribbon XML File

SharePoint 2010

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.

Last modified: July 12, 2010

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>
    
Show:
© 2016 Microsoft