Color Palette Picker not localizing inside of pdf viewer or outside of it

Hi!

So I have been adding translations ok so far. I have two translations files

Syncfusion.PdfViewer.WPF.fi.resx

Syncfusion.Shared.Wpf.fi.resx

PdfViewer part translates everything ok but this color palette picker looks like getting values under shared but it's still not translating them.

I have used this

Thread.CurrentThread.CurrentUICulture = new System.Globalization.CultureInfo("fi");


But for some reason what ever I do it's not changing this color palette pickers. How I could get translations for those a well?

Näyttökuva 2024-03-29 081550.png

Same happens if I add same color picker to toolbar

Image_9690_1711693695786


All nuget packages are up to date in 25.1.37 version



5 Replies

RS Raghavendra Sudhakar Syncfusion Team April 1, 2024 02:32 PM UTC

Hi Mika,


We have created sample based on your requirements. We suggest setting CurrentUICulture before InitializeComponent. Below, you'll find the code snippet and a sample for accomplishing this.


Code snippet:

public MainWindow()
{
System.Threading.Thread.CurrentThread.CurrentUICulture = new System.Globalization.CultureInfo("fi");
InitializeComponent();
}


Regards,

Raghavendra S



Attachment: Localization_ColorPicketPalette_f8136fc3.zip


MI Mika April 3, 2024 09:36 PM UTC

Hi,

Your example project works but it didn't fix issue what I am having. I tried to replicate issue again creating new fresh project and looking how you had done that example. I was able to reproduce it. What I am going wrong here?



Attachment: colorpickertesting_90a20e23.zip


MI Mika replied to Raghavendra Sudhakar April 8, 2024 02:03 PM UTC

Hi,

I posted reply above but forgot to answer it as reply. So added this comment just in case if my above text didn’t sent notification 

Greetings

Mika



KA Karthick Arjunan Syncfusion Team April 9, 2024 05:25 AM UTC

Hi Mika,


We have confirmed the reported scenario is a defect and logged a report for the reported scenario “
Localization is not working in NetCore projects of Shared WPF repository”. We will provide the fix in the Weekly NuGet release on 30th April 2024.

 

You can track the status of this defect using the following feedback link: Localization is not working in ColorPickerPalette control in WPF | Feedback Portal (syncfusion.com)


If you have any more specification replication procedures or a scenario to be tested, you can add it as a comment in the portal.

 

Please let us know if you need any further assistance.

  

Note: The provided feedback link is private, and you need to log in to view this feedback.

 

Disclaimer: “Inclusion of this solution in the weekly release may change due to other factors including but not limited to QA checks and works reprioritization.”


Regards,

Karthick Arjunan



KA Karthick Arjunan Syncfusion Team April 30, 2024 12:19 PM UTC

Hi Mika,


We have included the fix for the reported issue Localization is not working in NetCore projects of Shared WPF repository in our Weekly NuGet release version 25.1.42 which is available for download ( https://www.nuget.org/).

 

We thank you for your support and appreciate your patience in waiting for this update. Please get in touch with us if you require any further assistance.


Regards,

Karthick Arjunan




Loader.
Up arrow icon