PDFViewer toolbar localization

Hello !

Following the instructions given in the following page :
https://help.syncfusion.com/windowsforms/pdf-viewer/localization

in order to translate the toolbar tooltips but my "...fr-FR.resx" file is never considered.

Please could I have more detailed steps or an example project ?

Thank you in advance for your feedback.



5 Replies 1 reply marked as answer

VS Vikas Sekar Syncfusion Team October 8, 2020 04:31 PM UTC

Hi Eddy, 
 
Thanks for contacting Syncfusion support. 
 
We have created a sample for localization demo by following the instructions given in the below UG link and attached sample for your reference in below. 
 
Please let us know if the sample helps and if you need any further assistance. 
 
Regards, 
Vikas  



EM Eddy MARIANNE October 8, 2020 06:31 PM UTC

Hi Vikas, and thank you for your feedback.

That's really strange that it still doesn't work... properties, settings, event projects in text mode have been compared in order to remove the differences related to the resx inclusion between sample and the actual solution but nothing working :-(

The only significative difference is that the form that contains the PDFViewer is part of a library project (dll) called by the app project. Don't know how it could impact this.

Otherwise, I'd be forced to implement a custom tool bar and use the pdfDocumentView instead of the pdfViewer control...


VS Vikas Sekar Syncfusion Team October 9, 2020 01:56 PM UTC

Hi Eddy, 
 
Thanks for the update. 
 
We have created a sample based on the details you have provided. In this sample we added the French resource file in the main application which have the class library with PdfViewerControl contained Form. 
 
 
Please let us know if the sample helps and if you need any further assistance.  
 
Regards, 
Vikas  



EM Eddy MARIANNE October 16, 2020 08:36 PM UTC

Hello Vikas.

Unfortunately, the result is the same and the sample doesn't really correspond to my solution structure.

What I have : an App project which calls a form from another reference project (a dynamic library project).

What I tested : resx file referred in each project separately (no result) then in the two projects in the same time (no result too). For details, the App project refers the french resx in its resources folder and its main method sets the culture and UIculture to fr. It calls the form from the library project. In this other project, dedicated to UI forms, the culture is also set in the form constructor and this project also contains the resx file in its Resources folder...

The result is that no translation is retrieved (even original english ones), the displayed strings are string keys like "SaveDocument" or "PrintDocument".

Didn't manage to translate it into french ("fr-FR").

Maybe these last details could make the state clearer.

Thanks in advance for your help.


VS Vikas Sekar Syncfusion Team October 19, 2020 05:04 PM UTC

Hi Eddy, 

Thanks for the update. 

We have created a sample based on the details you have provided in the previous update. In the sample we added the French resource file in the main application which have the dynamic library of an Application which contains PdfViewerControl. 


Please let us know whether the provided sample fulfil your requirement or kindly provide a simple sample in which you are facing the issue. This will be helpful for us to analyze more and provide you a better solution. 

Regards, 
Vikas  


Marked as answer
Loader.
Up arrow icon