Translate my RadMenu

3 posts, 0 answers
  1. Alexandre
    Alexandre avatar
    18 posts
    Member since:
    Sep 2013

    Posted 21 Nov 2013 Link to this post


    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" "">
    <html xmlns="" 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">
        <form id="Form1" runat="server">
        <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
        <div id="canevas">
                <p id="droite">
                    <asp:Label ID="lbl_TitrePage" runat="server" Text="titre"></asp:Label>
                <p id="gauche">
                     <asp:Image runat="server" ImageUrl="~/Gen_Images/logo.png" /></p>
            <div id="nav" visible="true" runat="server">
                    <telerik:RadMenu ID="RadMenu1" runat="server" CssClass="RadMenu_Menu" ClickToOpen="True"
                        ExpandAnimation-Type="OutQuart" DefaultGroupSettings-RepeatDirection="Vertical" >
                    <asp:ContentPlaceHolder ID="CPH_Menu" runat="server">
            <div id="section" visible="true" runat="server">
                    <asp:ContentPlaceHolder ID="CPH_Page" runat="server" />
                    <br />
                    <br />
            <asp:ContentPlaceHolder ID="CPH_Footer" runat="server">
                <p id="droitef">
                    <asp:Label ID="lbl_UserInfo" runat="server" Text=""></asp:Label>
                <p id="gauchef">
                    <asp:Label ID="Lbl_IDApplication" runat="server" Text=""></asp:Label>

    And for fed this RadMenu i use a .xml:

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

    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 ...

  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 21 Nov 2013 Link to this post

    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.

  3. Alexandre
    Alexandre avatar
    18 posts
    Member since:
    Sep 2013

    Posted 21 Nov 2013 Link to this post

    Ah okay, thank you very much for that Shinu.

Back to Top