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

Hello

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);
     InitializeComponent();
}

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 12:47 AM

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. 
  
Regards, 
Farjana Parveen A 



TS Tech Shop July 24, 2019 10:38 AM

Thank you

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


FP Farjana Parveen Ayubb Syncfusion Team July 24, 2019 08:52 PM

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. 
 
Regards, 
Farjana Parveen A 


Loader.
Live Chat Icon For mobile
Up arrow icon