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

Documentation for Localization appears to be wrong

3 Answers 193 Views
ScheduleView
This is a migrated thread and some comments may be shown as answers.
Frank
Top achievements
Rank 1
Frank asked on 03 Mar 2011, 08:00 PM
Hi,
We need a French version of the ScheduleView, so we translated what was not yet translated in the Strings.fr.resx file. Then, we implemented what's suggested in http://www.telerik.com/help/wpf/radscheduleview-localization.html using the resource manager technique. The documentation says to do the following:
LocalizationManager.Manager = new LocalizationManager()
{
  ResourceManager = ScheduleViewResources.ResourceManager
};
but the ScheduleView was still showing in English. When I did the following:
LocalizationManager.DefaultResourceManager = ScheduleViewResources.ResourceManager;
it all started to work perfectly. That was tested in the most simple sample application.

Is it a bug in the documentation, is there something we're missing?
Thanks,

Francis
p.s. It would be nice if a fully French version of the Telerik's controls would be available as part of the package.

3 Answers, 1 is accepted

Sort by
0
Yana
Telerik team
answered on 09 Mar 2011, 02:11 PM
Hi Francis,

I've attached a simple project which demonstrates how to localize RadScheduleView for Wpf using LocalizationManager, please download it and give it a try.

Hope it helps.

Kind regards,
Yana
the Telerik team
Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
0
Frank
Top achievements
Rank 1
answered on 09 Mar 2011, 04:22 PM
Hi Yana,

Thank you for your sample. After some investigation I found out that the replacement of the LocalizationManager.ResourceManager must be executed after the initialization of the RadScheduleView. We were trying to set globally set the ResourceManager of the LocalizationManager in the application bootstrapper. It would be nice to have a way to set the LocalizationManager for the entire application (something similar to the StyleManager.ApplicationTheme). Also, maybe we miss something, but it was not clear for us that the ScheduleView must have been initialized before setting up the LocalizationManager based on the documentation.

Thanks for your help.
Francis
0
Accepted
Yana
Telerik team
answered on 14 Mar 2011, 05:48 PM
Hello Francis,

In this case you should set DefaultResourceManager property of the LocalizationManager in App.xaml file. I've attached the modified example. Please download it and try it.

You are right that our documentation about localization is not complete, we'll make sure to review it. Thanks

All the best,
Yana
the Telerik team
Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
Tags
ScheduleView
Asked by
Frank
Top achievements
Rank 1
Answers by
Yana
Telerik team
Frank
Top achievements
Rank 1
Share this question
or