Is Localization for RadDocumentPane possible?

12 posts, 0 answers
  1. Marcel
    Marcel avatar
    3 posts
    Member since:
    Apr 2009

    Posted 17 Jun 2009 Link to this post

    Hi,

    We are are creating an application that uses Docking.
    The users have asked me if it was possible to change the descriptions from the docking panel "floating", "docakble" etc. to the local language.

    I have tried to use the LocalizationManager (see the code below) but the GetStringOverride is never fired for the docking panel.

    I hope that someone can help me.

    Kind Regards,
    Marcel

    Sample application I created in order to test the use of the LocalizationManager.
    <UserControl xmlns:telerikDocking="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Docking"  xmlns:telerik="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls"  x:Class="SLLocalisationDockPanel.Page" 
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"   
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"   
        xmlns:radDock="clr-namespace:Telerik.Windows.Controls;assembly=Telerik.Windows.Controls.Docking">  
        <Grid> 
            <radDock:RadDocking x:Name="radDocking1">  
                  
                <radDock:RadSplitContainer radDock:DockingPanel.InitialSize="150,150" MaxWidth="600" 
                        Name="LeftContainer" InitialPosition="DockedLeft">  
                    <radDock:RadPaneGroup x:Name="Group1">  
                        <radDock:RadPane x:Name="Pane1" Header="Server Explorer">  
                            <Image Source="../../Common/Images/RadDock/ServerExplorer.png" 
                                    Stretch="None" HorizontalAlignment="Left" /> 
                        </radDock:RadPane> 
                        <radDock:RadPane x:Name="Pane2" Header="Toolbox">  
                            <Image Source="../../Common/Images/RadDock/Toolbox.png" Stretch="None" 
                                    HorizontalAlignment="Left" /> 
                        </radDock:RadPane> 
                    </radDock:RadPaneGroup> 
                </radDock:RadSplitContainer> 
     
                  
            </radDock:RadDocking> 
        </Grid> 
    </UserControl> 

    Code behind for the page.xaml.
    using System.Globalization;  
    using Telerik.Windows.Controls;  
     
    namespace SLLocalisationDockPanel  
    {  
        public partial class Page : UserControl  
        {  
            public Page()  
            {  
                LocalizationManager.Manager = new MyLocalizationManager();  
                LocalizationManager.Manager.Culture = new CultureInfo("nl-NL");  
                InitializeComponent();  
            }  
        }  

    Simlified class that I have build in order to translate the descriptions from the controls.
    using Telerik.Windows.Controls;  
     
    namespace SLLocalisationDockPanel  
    {  
        public class MyLocalizationManager : LocalizationManager       
        {  
            public override string GetStringOverride(string key)  
            {  
                switch (key)  
                    {  
                        case "GridViewGroupPanelText":  
                            return "Sleep de kolom naar hier om te kunnen groeperen.";  
     
                    }  
                    return base.GetStringOverride(key);  
            }          
        }  
    }  
     


  2. Miroslav Nedyalkov
    Admin
    Miroslav Nedyalkov avatar
    1718 posts

    Posted 19 Jun 2009 Link to this post

    Hi Marcel,

    This is happening, because the menu in the Docking pane doesn't support localization yet. We will add this in our TODO list, but for now I could suggest you to remove the default items and add new items instead of them. The attached example demonstrates a way to do this and shows how to create a simple MenuCommand class and use it to simulate the default commands.

    You will not need this code when the menu commands become localizable.

    Regards,
    Miroslav Nedyalkov
    the Telerik team

    Instantly find answers to your questions on the newTelerik Support Portal.
    Check out the tipsfor optimizing your support resource searches.
  3. DevCraft banner
  4. Marcel
    Marcel avatar
    3 posts
    Member since:
    Apr 2009

    Posted 22 Jun 2009 Link to this post

    Hi Miroslav,

    Many thanks for the fast reply.
    I will use your solution until Localization is fully supported.

    Thanks again
    Marcel

  5. Alan
    Alan avatar
    47 posts
    Member since:
    Jun 2009

    Posted 24 Jun 2009 Link to this post

    I second the request for localization support for the Docking control.  Thanks.
  6. Kaloyan
    Admin
    Kaloyan avatar
    920 posts

    Posted 29 Jun 2009 Link to this post

    Hello Alan,

    Thank you for writing us. We are planning to include RadDocking localization functionality for the SP1 Q2 2009.

    All the best,
    Kaloyan
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  7. Yao
    Yao avatar
    8 posts
    Member since:
    May 2010

    Posted 17 May 2010 Link to this post

     

    I first the request for localization support for the Docking control.  Thanks.
    for example please. 
    Thanks.
  8. Kaloyan
    Admin
    Kaloyan avatar
    920 posts

    Posted 20 May 2010 Link to this post

    Hi y y,

    The localization is yet implemented in the RadCocking control.

    Regards,
    Kaloyan
    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.
  9. Yao
    Yao avatar
    8 posts
    Member since:
    May 2010

    Posted 31 May 2010 Link to this post

    how to implement in the RadCocking control?
    thanks!
  10. Kaloyan
    Admin
    Kaloyan avatar
    920 posts

    Posted 02 Jun 2010 Link to this post

    Hi y y,

    We have a nice article regarding the localization of our control. Please refer to the following blog post.

    Kind regards,
    Kaloyan
    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.
  11. Manuel Felício
    Manuel Felício avatar
    64 posts
    Member since:
    Oct 2009

    Posted 15 Dec 2010 Link to this post

    Hello,

    Has this feature been implemented?


    I have successfully localized other radcontrols with a .resx resource file by setting LocalizationManager.DefaultResourceManager to my own. Unfortunately I can't change the contextmenuitems headers (Floating,Dockable,AutoHide,etc) on RadPane. I have set those keys on my resources file but it doesn't change the headers.

    Any help is appreciated.

     

     

     

     

  12. Kaloyan
    Admin
    Kaloyan avatar
    920 posts

    Posted 16 Dec 2010 Link to this post

    Hello Manuel Felício,

    The localization strings of the RadPane's menu are as follows:

    LocalizationManager.GetString("Hide");
    LocalizationManager.GetString("Auto_hide");
    LocalizationManager.GetString("Floating");
    LocalizationManager.GetString("Dockable");
    LocalizationManager.GetString("Tabbed_document");

    Best wishes,
    Kaloyan
    the Telerik team
    Browse the videos here>> to help you get started with RadControls for Silverlight
  13. vova
    vova avatar
    1 posts
    Member since:
    Mar 2011

    Posted 29 May 2012 Link to this post

    With the help of a file *. Resx localization does not work. I tried to do the localization, as in the example of MenuCommand, but this class does not. How can I locate the inscription Floating, Dockable ... 
Back to Top
DevCraft banner