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

Custom localization doesn't work

1 Answer 169 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Ubaldo
Top achievements
Rank 1
Ubaldo asked on 13 Jan 2011, 06:00 PM
Following the rules and procedures stated on your documentation, I've localized a RadGridView using ResourceManager, in this way:
created the local resource files (see attached Capture01.png for resx file for italian language)
created a setting "ChosenCulture" in Settings for defining the startup default culture, set to "it-IT"
on the Window_Loaded event, set the localization with the following code:
LocalizationManager.DefaultResourceManager = ContiACasa.My.Resources.LocalResources.ResourceManager
LocalizationManager.DefaultCulture = Nothing
Thread.CurrentThread.CurrentUICulture = New CultureInfo(My.Settings.ChosenCulture)
Thread.CurrentThread.CurrentCulture = New CultureInfo(My.Settings.ChosenCulture)
The GridView is localized, but the following elements (at least the ones I've found till now) don't change their text, as you can see in the atteched picture:
GridViewGroupPanelText, GridViewGroupPanelTopTextGrouped, GridViewFilterMatchCase

TIA
Ubaldo

1 Answer, 1 is accepted

Sort by
0
Maya
Telerik team
answered on 13 Jan 2011, 06:08 PM
Hi Ubaldo,

You may try to set the DefaultResourceManger before the initialization:

public MainWindow()
{
    LocalizationManager.DefaultResourceManager = DE.ResourceManager;   
    InitializeComponent();
     
}
 

Greetings,
Maya
the Telerik team
Let us know about your Windows Phone 7 application built with RadControls and we will help you promote it. Learn more>>
Tags
GridView
Asked by
Ubaldo
Top achievements
Rank 1
Answers by
Maya
Telerik team
Share this question
or