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

Dynamic change of resources not working fully

1 Answer 132 Views
Map
This is a migrated thread and some comments may be shown as answers.
Patrick
Top achievements
Rank 2
Iron
Iron
Iron
Patrick asked on 21 Nov 2019, 01:45 PM

Hello,

I'm trying to dynamically change the resources of the control, in order to change the language of the application without restarting.

First, it's a shame that not all of your controls work with just setting "UseDynamicLocalization = True" and changing the "LocalizationManager.Manager.Culture" property. It complicates the work of application developer...

 

Back to the RadMap. I've implemented code to reload the template of the control after changing the resources and it doesn't work correctly. Almost all of the control changes the texts, excepted for the "layout/mode selection" of all the providers, as you can see with the screenshots: after changing the texts, these ones remains in English.

My code for the loading of the resources is correct because it works for all the other part of the application (and of the map). If I close the application and then starts it again, the texts are in French.

 

My application is using a custom localization manager, so the texts can be loaded from text files.

1 Answer, 1 is accepted

Sort by
0
Vladimir Stoyanov
Telerik team
answered on 26 Nov 2019, 09:52 AM

Hello Patrick,

The commands for the providers are localized when the corresponding provider is created. With this in mind, in order to localize them dynamically, you can create a new provider and assign it to the Provider property of the RadMap. Please, give this approach a try and let me know how it goes. 

Regards,
Vladimir Stoyanov
Progress Telerik

Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
Map
Asked by
Patrick
Top achievements
Rank 2
Iron
Iron
Iron
Answers by
Vladimir Stoyanov
Telerik team
Share this question
or