More in this section

Forums / Developing with Sitefinity / Sitefinity in dashboard in dutch

Sitefinity in dashboard in dutch

12 posts, 0 answered
  1. Mart
    Mart avatar
    66 posts
    Registered:
    10 Aug 2006
    11 Oct 2009
    Link to this post
    Hello,

    I'm localizing my sitefinity page to dutch language and german.
    I almost fixed it for dutch language but i can not get it for the admin parts (radstrip on default page)
    I've read all your forum posts but not get a solution either.
    as far as i examined the localresources are in sitefinity/admin/cmsadmin but i can not find a reference in

    Telerik.Sitefinity.Configuration.ControlsConfig.xml

    How can I translate the admin in dutch and german?

    Please help
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    12 Sep 2017
    12 Oct 2009
    Link to this post
    Hi Mart,

    By default we use localization resources for the backend. They are compiled, we have dutch resources  translated(culture name - nl) for version 3.7 SP1. We could send this resources if you want.

    You can access the tabs from RadTabStrip control programmatically as shown below:

    ~/Sitefinity/Admin/Admin.master.cs

    protected void MainMenu_DataBound(object sender, EventArgs e)
     {
         IList<Telerik.Web.UI.RadTab> tabList = MainMenu.GetAllTabs();
         if (tabList.Count > 0 && CultureInfo.CurrentUICulture == CultureInfo.GetCultureInfo("bg"))
         {
             foreach (RadTab tab in tabList)
             {
                 switch (tab.Text)
                 {
                     case "Pages":
                         tab.Text = "NewPages";
                         break;
                     case "Files":
                         tab.Text = "NewFiles";
                         break;
                 }
             }
         }
     
         if (!String.IsNullOrEmpty(this.currentTab))
             SetCurrentTab(this.MainMenu.Tabs, this.currentTab);
       
     }

    I hope this helps.


    Best wishes,
    Ivan Dimitrov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  3. Mart
    Mart avatar
    66 posts
    Registered:
    10 Aug 2006
    12 Oct 2009
    Link to this post
    Hello Ivan,

    Thank you for your response,
    I have a few questions about your solution

    1. my culturename is nl-NL as i use allowSpecificCultures="true"
        Can you plase send me the compiled code for this specific culture?

    2. Now My problem is that I want to use sitefinity in a company where administrators use several languages.
        For this moment German and dutch. Is ite possible to use the local resources in sitefinity/admin/cmsadmin
        by referencing to these files in Telerik.Sitefinity.Configuration.ControlsConfig.xml

    3. Can i use 2 compiled version of the resources in one sitefinitysite  
  4. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    12 Sep 2017
    12 Oct 2009
    Link to this post
    Hello Mart,

    1. You need to modify the following row  as shown below:

    if (tabList.Count > 0 && CultureInfo.CurrentUICulture == CultureInfo.GetCultureInfo("nl-NL"))

    2. You can use the local resx files and only the resources translated in them.

    3. You can use only compiled resources that have the same version as your Sitefinity website, because the compiled resources are embedded into dlls. You can have several language version. At this stage we have translated - es, fr, fr, hu, it, ru, nl.

    Best wishes,
    Ivan Dimitrov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  5. Mart
    Mart avatar
    66 posts
    Registered:
    10 Aug 2006
    12 Oct 2009
    Link to this post
    Hello Ivan,

    1. When using code i get message: 
        Error 102 De niet-generieke type System.Collections.IList can not be used with typearguments.
    What do i do wrong?

    2 please sent compiled resources for nl-NL

    Yours,

    M. Bollen


    i use sitefinity 3.7.2022.220
  6. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    12 Sep 2017
    13 Oct 2009
    Link to this post
    Hello Mart,

    1. When using code i get message:


    You are getting the error because you are using incorrect namespace for IList. Use the line below:

    System.Collections.Generic.IList<Telerik.Web.UI.RadTab> tabList = MainMenu.GetAllTabs();

    2 please sent compiled resources for nl-NL
    The resources are only for nl culture - Dutch.

    Kind regards,
    Ivan Dimitrov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  7. Mart
    Mart avatar
    66 posts
    Registered:
    10 Aug 2006
    13 Oct 2009
    Link to this post

    Hello Ivan,

    Thanks for you reaction.

    Now I have a new error
    CultureInfo does not exist in this context?

    I'm sorry but please help again

    Mart

  8. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    12 Sep 2017
    13 Oct 2009
    Link to this post
    Hello Mart,

    Add reference to System.Globalization. You should have IntelliSence in your Visual Studio that shows this.

    Sincerely yours,
    Ivan Dimitrov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  9. Mart
    Mart avatar
    66 posts
    Registered:
    10 Aug 2006
    13 Oct 2009
    Link to this post
    Ivan,

    Thanks that works fine.
    But how to change the subtabsstips of Dashboard, Pages, Files and Administration

  10. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    12 Sep 2017
    13 Oct 2009
    Link to this post
    Hello Mart,

    There are not child tabs of the Roottabs with text - Dashboard and files. You have child tabs only for level one of Pages root tab. You can access the child tabs by checking the tab level in the code I sent you using tab.Level property which accepts integer value.

    Sincerely yours,
    Ivan Dimitrov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
  11. Mart
    Mart avatar
    66 posts
    Registered:
    10 Aug 2006
    13 Oct 2009
    Link to this post
    Ivan,

    I do not understand weel.
    Do you have a samle?

  12. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    12 Sep 2017
    14 Oct 2009
    Link to this post
    Hello Mart,

    You can take a lool at the following article which describes how to access RadTabStrip tabs. Use tab.Level property which accepts integer value as suggested.

    Kind regards,
    Ivan Dimitrov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Register for webinar
12 posts, 0 answered