We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Problem with translation using Localization


I am trying to implement SfDataGrid translation, but I am not succeeding. I believe I have correctly followed what is in the documentation, ie https://help.syncfusion.com/wpf/datagrid/localization.

I am doing as follows:

public WindowMain()
     Type typeClass = typeof(WindowMain);
     var space = typeClass.Namespace;

     Thread.CurrentThread.CurrentUICulture = new CultureInfo("pt-BR");
     GridResourceWrapper.SetResources(Assembly.GetExecutingAssembly(), space);

Follow the picture of how it was made.

I await the feedback.

Attachment: erro_localization.fw_212c32b8.rar

3 Replies

FP Farjana Parveen Ayubb Syncfusion Team July 24, 2019 08:47 AM UTC

Hi Tech Shop, 
Thank you for using Syncfusion controls. 
Based on the provided screenshot, we suspect that, you did not add the Syncfusion.SfGrid.WPF.resx file in your application. Please check and add this file in to your application. Please refer the step 2 in following user guide documentation, 
Please let us know, if you need further assistance. 
Farjana Parveen A 

TS Tech Shop July 24, 2019 06:38 PM UTC

Thank you

Problem solved. The point was that the files were in different design within the solution.

FP Farjana Parveen Ayubb Syncfusion Team July 25, 2019 04:52 AM UTC

Hi Tech Shop, 
Thanks for the update. 
We are glad to know that the reported problem has been resolved at your end. Please let us know if you have any further queries on this. We are happy to help you. 
Farjana Parveen A 

Live Chat Icon For mobile
Up arrow icon