To reproduce: 1.Add a RadGridView with one column. 2.Select the form and in the Properties window, set the form's Localizable property to true. 3.Specify the column's HeaderText for the default language. 4.Set the form's Language property to French (France). 5.Specify the column's HeaderText for French (France). 6.Set the CurrentUICulture before the InitializeComponent method to "fr-FR". If you run the application, the column is localized as expected. 7.If you get back to the designer and change the form's Language property back to Default you will notice that the column's HeaderText disappears. Workaround: set the HeaderText programmatically according to the current language.
Hi,
The issue is not related to the Telerik controls. We made a thorough investigation and we concluded that it is caused by the Microsoft logic inside Visual Studio which updates the localized resource files.
The problem is that not all of the resource files are updated when changing the language. Changing the language also results in serializing the components and the serialization logic may sometimes generate wrong child names. As the resource files are not updated and/or the children - the grid columns in this case, have different names, the localized properties are not read correctly. There is an item logged on the Visual Studio Feedback portal: VisualStudio doesn't update all the localizable Form's resx files when localizable properties are changed.
We tried hard to find a fix or provide a workaround within our codebase but that was not possible. In this respect there are two options:
- We found that saving all of the designers and closing them prior to changing the language of the form helps. So you can consider reopening the designer every time you want to change the language.
- Localize the HeaderText at run-time
Regards,
Dimitar
Progress Telerik
Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.