Localization

The localization support allows to customize the display of text within the Ribbon in a user-specific culture and locale. The Ribbon control can be localized in specific culture using the common API Localealong with the collection of localized words defined for that culture using the ej.Ribbon.Locale [culture-code].Please find the table with list of properties and its value in locale object.

Locale key words Text
CustomizeQuickAccess Customize Quick Access Toolbar
RemoveFromQuickAccessToolbar Remove from Quick Access Toolbar
AddToQuickAccessToolbar Add to Quick Access Toolbar
ShowAboveTheRibbon Show Above the Ribbon
ShowBelowTheRibbon Show Below the Ribbon
MoreCommands More Commands...

NOTE

By default, the Ribbon control is localized in en-US culture.

For further information on – how to refer the required culture scripts into your application, refer here.

  • html
  • <ej:Ribbon ID="defaultRibbon1" runat="server" Width="500" ShowQAT="true" Locale="es-ES">
    		<ApplicationTab MenuItemID="ribbonmenu" Type="Menu">
    			<MenuSettings OpenOnClick="false"></MenuSettings>
    		</ApplicationTab>
    		<RibbonTabs>
    			<ej:RibbonTab Id="home1" Text="HOME">
    				<TabGroupCollection>
    					<ej:TabGroup Text="Clipboard" AlignType="Columns">
    						<ContentCollection>
    							<ej:TabContent>
    								<ContentDefaults Width="50" Height="75" Type="SplitButton" />
    								<ContentGroupCollection>
    									<ej:ContentGroup Id="paste" ToolTip="Paste" QuickAccessMode="ToolBar" Text="paste">
    										<SplitButtonSettings ButtonMode="Dropdown" ArrowPosition="Bottom" TargetID="pasteul" ContentType="ImageOnly" PrefixIcon="e-icon e-ribbon e-ribbonpaste" />
    									</ej:ContentGroup>
    								</ContentGroupCollection>
    							</ej:TabContent>
    						</ContentCollection>
    					</ej:TabGroup>
    				</TabGroupCollection>
    			</ej:RibbonTab>
    		</RibbonTabs>
    	</ej:Ribbon>
    	<ul id="ribbonmenu">
    		<li><a>FILE</a>
    			<ul>
    				<li><a>New</a></li>
    				<li><a>Open</a></li>
    			</ul>
    		</li>
    	</ul>
    	<ul id="pasteul">
    		<li><a>Paste</a></li>
    	</ul>
    	<script>
    		ej.Ribbon.Locale["es-ES"] = {
    			CustomizeQuickAccess: "Agordu Rapida Aliro",
    			RemoveFromQuickAccessToolbar: "Forigu de Rapida Aliro Ilobreto",
    			AddToQuickAccessToolbar: "Aldoni al Rapida Aliro Ilobreto",
    			ShowAboveTheRibbon: "Montru Super la Ribbona",
    			ShowBelowTheRibbon: "Montru Sube la Ribbon",
    			MoreCommands: "pli Komando"
    		};
    	</script>