DataGrid doesn't read .resx localization file
I have an issue with localization. Probably something simple but I can't figure out how to make it work. I have seen various articles in docs about this, but they didn't help.
My MainWindow constructor contains this line:
Thread.CurrentThread.CurrentUICulture = CultureInfo.GetCultureInfo("pl-PL");
Then I added a "Resources" folder in my project root, downloaded default Syncfusion.SfGrid.WPF.resx file, renamed it to SyncfusionSfGrid.WPF.pl-PL.resx and translated. But changes don't apply.
SIGN IN To post a reply.
5 Replies
VS
Vijayarasan Sivanandham
Syncfusion Team
March 26, 2020 02:49 PM UTC
Hi Michal,
You can localize the SfDataGrid by adding resource file. Culture of the application can be changed by setting CurrentUICulture before InitializeComponent method. Please refer the following documentation for more details.
UG Link: https://help.syncfusion.com/wpf/datagrid/localization
Regards,
You can localize the SfDataGrid by adding resource file. Culture of the application can be changed by setting CurrentUICulture before InitializeComponent method. Please refer the following documentation for more details.
UG Link: https://help.syncfusion.com/wpf/datagrid/localization
Regards,
Vijayarasan S
MI
Michal
March 27, 2020 10:01 AM UTC
Like I said, I did read this article and done exactly what it says. It still doesn't work. I will look into the sample project, maybe I'll find out something else.
VS
Vijayarasan Sivanandham
Syncfusion Team
March 27, 2020 10:46 AM UTC
Hi Michal,
Thanks for the update.
We will wait to hear from you.
Regards,
Vijayarasan S
FL
Francisco Lopez
January 13, 2021 08:10 PM UTC
Did you find the solution? I am having the same issue with my WPF application
My application is localized and working well. However, synfusion resources are not being loaded..
SA
Saravanan Ayyanar
Syncfusion Team
January 14, 2021 07:48 AM UTC
Hi Francisco Lopez,
You can localize the SfDataGrid by adding the resource file. Culture of the application can be changed by setting CurrentUICulture before InitializeComponent() method.
|
public MainWindow()
{
System.Threading.Thread.CurrentThread.CurrentUICulture = new System.Globalization.CultureInfo("de");
InitializeComponent();
} |
Please refer the below code snippet,
Please refer the following documentation for more details
We have prepared a sample and it is available in the following link for you reference.
Please revert to us if you need any further assistance on this.
Regards,
Saravanan A.
SIGN IN To post a reply.
- 5 Replies
- 4 Participants
-
MI Michal
- Mar 25, 2020 01:21 PM UTC
- Jan 14, 2021 07:48 AM UTC