+1-888-365-2779
Try Now
More in this section

Forums / General Discussions / Arabic menu in CMS

Arabic menu in CMS

7 posts, 0 answered
  1. Hydo L
    Hydo L avatar
    98 posts
    Registered:
    31 Mar 2010
    09 Feb 2011
    Link to this post
    Hi,
    My Sitefinity site is a bilingual (EN/AR) and my client needs to display the CMS main menu (Dashboard, Pages, File, Module, Administration .. etc) should be in Arabic when I select Arabic from CMS. Is that possible?

    Thanks,
    Hydo
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    09 Dec 2016
    09 Feb 2011
    Link to this post
    Hi Hydo L,

    If you want just to change the MainMenu tabs you can easily do this from Sitefinity/Admin/Admin.master.cs. There is an event MainMenu_DataBound where you can access all Tabs and change the default text.

    Greetings,
    Ivan Dimitrov
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. Hydo L
    Hydo L avatar
    98 posts
    Registered:
    31 Mar 2010
    10 Feb 2011
    Link to this post
    Thanks for your reply.
    Actually i need localisation of menu. Is that possible. Can you give me an example how to do this.

    Many thanks,
    Hydo
  4. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    09 Dec 2016
    10 Feb 2011
    Link to this post
    Hi Hydo L,

    Here is a sample code

           IList<RadTab> tabsCollection = MainMenu.GetAllTabs();
            foreach (RadTab t in tabsCollection)
            {

                if (t.Text == "News")
                {
                    t.Text = "something";
                }
             
            }

    Best wishes,
    Ivan Dimitrov
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  5. Hydo L
    Hydo L avatar
    98 posts
    Registered:
    31 Mar 2010
    10 Feb 2011
    Link to this post
    Thanks Ivan, I will try this.
    Hydo
  6. Hydo L
    Hydo L avatar
    98 posts
    Registered:
    31 Mar 2010
    17 Feb 2011
    Link to this post
    I added it like this and getting the attached error

    protected void MainMenu_DataBound(object sender, EventArgs e)
        {
            if (!String.IsNullOrEmpty(this.currentTab))
                SetCurrentTab(this.MainMenu.Tabs, this.currentTab);
            List <RadTab> tabsCollection = MainMenu.GetAllTabs();
            foreach (RadTab t in tabsCollection)
            {


                if (t.Text == "News")
                {
                    t.Text = "something";
                }


            }
        }
  7. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    09 Dec 2016
    17 Feb 2011
    Link to this post
    Hi Hydo L,

    Please add reference to List Class

    Best wishes,
    Ivan Dimitrov
    the Telerik team
Register for webinar
7 posts, 0 answered