This is a migrated thread and some comments may be shown as answers.

Translate my RadMenu

2 Answers 22 Views
Menu
This is a migrated thread and some comments may be shown as answers.
Alexandre
Top achievements
Rank 1
Alexandre asked on 21 Nov 2013, 09:35 AM
Hi,

On my PageMaster i have a RadMenu:

<%@ Master Language="VB" AutoEventWireup="false" CodeBehind="PageMaitre.Master.vb"
    Inherits="LOSCOM.PageMaitre" %>
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <telerik:RadStyleSheetManager ID="RadStyleSheetManager1" runat="server" />
    <title id="WindowTitle" runat="server">Logistique Suivi Commercial</title>
    <link href="~/Styles/Site.css" rel="stylesheet" type="text/css" />
    <link href="Styles/Menu.MetroCustom.css" rel="stylesheet" type="text/css" />
    <asp:ContentPlaceHolder ID="CPH_HTML_HEAD" runat="server">
    </asp:ContentPlaceHolder>
</head>
<body>
    <form id="Form1" runat="server">
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
    </telerik:RadScriptManager>
    <div id="canevas">
        <header>
            <p id="droite">
                <asp:Label ID="lbl_TitrePage" runat="server" Text="titre"></asp:Label>
                  
            </p>
            <p id="gauche">
                 <asp:Image runat="server" ImageUrl="~/Gen_Images/logo.png" /></p>
        </header>
        <div id="nav" visible="true" runat="server">
            <nav>
                <telerik:RadMenu ID="RadMenu1" runat="server" CssClass="RadMenu_Menu" ClickToOpen="True"
                    ExpandAnimation-Type="OutQuart" DefaultGroupSettings-RepeatDirection="Vertical" >
                </telerik:RadMenu>
                <asp:ContentPlaceHolder ID="CPH_Menu" runat="server">
                </asp:ContentPlaceHolder>
            </nav>
        </div>
        <div id="section" visible="true" runat="server">
            <section>
                <asp:ContentPlaceHolder ID="CPH_Page" runat="server" />
                <br />
                <br />
            </section>
        </div>
        <asp:ContentPlaceHolder ID="CPH_Footer" runat="server">
        </asp:ContentPlaceHolder>
        <footer>
            <p id="droitef">
                <asp:Label ID="lbl_UserInfo" runat="server" Text=""></asp:Label>
                 </p>
            <p id="gauchef">
                <asp:Label ID="Lbl_IDApplication" runat="server" Text=""></asp:Label>
                 </p>
        </footer>
    </div>
    </form>
</body>
</html>


And for fed this RadMenu i use a .xml:

<?xml version="1.0" encoding="utf-8"  ?>
 
<Menu>
  <Group>
    <Item runat="server" Text="Accueil" Href="~/Default.aspx" hzbouton="Accueil"
      Title="Accueil" Description="Logistique Suivi Commercial - Accueil" resourceKey="accueil">
    </Item>
 
  </Group>
</Menu>

i want Translate that menu on English but i don't know how make on my .rscx i have use
Name:         Value:
accueil.Text  Accueil
And on my en.rscx:
Name:       Value:
accueil.Text Home Page

But no translation run when I select my language ...

Regards.

2 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 1
answered on 21 Nov 2013, 11:57 AM
Hi Alexandre

In general Telerik provide localization support for controls that have static labels - such controls are RadScheduler, RadAsyncUpload or RadListBox for example (you can click on the respective control and get to its respective demo, please note that when changing between the different languages only these static "labels" change). On the other side, controls like the RadMenu and the RadTabstrip for instance do not have such static labels that can change when setting a different language. Therefore my best suggestion would be to create different data sources and when switching between the languages you will also need to change the data source accordingly.

Thanks
Shinu
0
Alexandre
Top achievements
Rank 1
answered on 21 Nov 2013, 12:27 PM
Ah okay, thank you very much for that Shinu.

Regards
Tags
Menu
Asked by
Alexandre
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 1
Alexandre
Top achievements
Rank 1
Share this question
or