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

Is Localization for RadDocumentPane possible?

11 Answers 162 Views
Docking
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Marcel
Top achievements
Rank 1
Marcel asked on 17 Jun 2009, 07:30 AM
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);  
        }          
    }  
}  
 


11 Answers, 1 is accepted

Sort by
0
Miroslav Nedyalkov
Telerik team
answered on 19 Jun 2009, 03:53 PM
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.
0
Marcel
Top achievements
Rank 1
answered on 22 Jun 2009, 06:42 AM
Hi Miroslav,

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

Thanks again
Marcel

0
Alan
Top achievements
Rank 2
answered on 24 Jun 2009, 06:20 PM
I second the request for localization support for the Docking control.  Thanks.
0
Kaloyan
Telerik team
answered on 29 Jun 2009, 01:32 PM
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.
0
Yao
Top achievements
Rank 1
answered on 17 May 2010, 10:16 AM

 

I first the request for localization support for the Docking control.  Thanks.
for example please. 
Thanks.
0
Kaloyan
Telerik team
answered on 20 May 2010, 09:50 AM
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.
0
Yao
Top achievements
Rank 1
answered on 01 Jun 2010, 03:26 AM
how to implement in the RadCocking control?
thanks!
0
Kaloyan
Telerik team
answered on 02 Jun 2010, 10:10 AM
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.
0
Manuel Felício
Top achievements
Rank 1
answered on 15 Dec 2010, 12:27 PM
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.

 

 

 

 

0
Kaloyan
Telerik team
answered on 16 Dec 2010, 12:25 PM
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
0
vova
Top achievements
Rank 1
answered on 29 May 2012, 01:50 PM
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 ... 
Tags
Docking
Asked by
Marcel
Top achievements
Rank 1
Answers by
Miroslav Nedyalkov
Telerik team
Marcel
Top achievements
Rank 1
Alan
Top achievements
Rank 2
Kaloyan
Telerik team
Yao
Top achievements
Rank 1
Manuel Felício
Top achievements
Rank 1
vova
Top achievements
Rank 1
Share this question
or