Localization of arrow start and end types

Hi,
is there a way how to localize arrow annotations start and end types? I didn't see those in resx file.


19 Replies 1 reply marked as answer

DD Divya Dhayalan Syncfusion Team February 26, 2021 07:22 PM UTC

Hi Ondrej, 
 
Thanks for contacting Syncfusion support. 
 
We are currently checking on this and will update further details on 2nd March 2021. 
 
Regards, 
Divya  



DD Divya Dhayalan Syncfusion Team March 2, 2021 11:01 PM UTC

Hi Ondrej, 
 
We have validated your requirement for “Localize Arrow Start and End style content” with our current APIs and found that some are missing to achieve this requirement. We would like to consider this as a usability feature. The patch for this implementation is expected to be available on 23rd March 2021.  
 
Please find the feedback link below, 
 
Regards, 
Divya 



DD Divya Dhayalan Syncfusion Team March 23, 2021 01:10 PM UTC

Hi Ondrej, 
  
We have included the support for “Localize Arrow Start and End style content” in WPF PdfViewer. The patch for this implementation can be downloaded from the following location.  
   
Recommended approach - exe will perform automatic configuration    
    
Advanced approach – use only if you have specific needs and can directly replace existing assemblies for your build environment    
    
 
We have created a sample for you reference which can be downloaded from the below link, https://www.syncfusion.com/downloads/support/forum/162991/ze/LocalizationSample292438019  
 
In this sample the resource key for the Start and Ending Arrow style values are added, and their corresponding localization value also added in the resource file. Here in the above sample, we have implemented the localization for Arabic language. Please find the below table for the Start and Ending Arrow style value. 
 
Name 
Value 
None 
None 
Open 
Open 
Closed 
Closed 
ReversedOpen 
Open (Reverse) 
ReversedClose 
Closed (Reverse) 
Butt 
Butt 
Diamond 
Diamond 
Round 
Round 
Square 
Square 
Slash 
Slash 
  
Assembly Version: 18.4.0.30  
    
Installation Directions:    
This patch should replace the files “Syncfusion.Pdf.Base.dll, Syncfusion.PdfViewer.WPF.dll” under the following folder.    
$system drive:\ Files\Syncfusion\Essential Studio\$Version # \precompiledassemblies\$Version#\4.6    
Eg : $system drive:\Program Files\Syncfusion\Essential Studio\9.3.0.61\precompiledassemblies\9.3.0.61\4.0    
    
To automatically run the Assembly Manager, please check the Run assembly manager checkbox option while installing the patch. If this option is unchecked, the patch will replace the assemblies in precompiled assemblies’ folder only. Then, you will have to manually copy and paste them to the preferred location, or you will have to run the Syncfusion Assembly Manager application (available from the Syncfusion Dashboard, installed as a shortcut in the Application menu) to re-install assemblies.    
    
Note:    
You can change how you receive bug fixes by navigating to the following link and updating your preferences.    
    
    
Disclaimer:    
Please note that we have created this patch for the version 18.4.0.30 specifically to resolve the following issue reported in this Forum. 162991 
    
If you have received other patches for the same version for other products, please apply all patches in the order received.  
    
This fix will be included in our 2021 Volume 1 - SP 1 release which will be available on April month – 2021. 
 
Please find the feedback link below,  
  
Regards,    
Divya

Marked as answer

OS Ondrej Svoboda March 23, 2021 01:50 PM UTC

Hi,
thanks, when this is going to be released in weekly nuget package?


DG Deepak Gunasekaran Syncfusion Team March 24, 2021 08:47 AM UTC

Hi Ondrej, 

Thank you for the update. 

As 2021 Volume 1 Main release has been planned on next week (End of March 2021), we will not be having weekly nuget release on next week. We will include this implementation in our next weekly Nuget which will be available after the Main release. 
We will inform you once the next weekly nuget is released. 

Regards, 
Deepak G 



OS Ondrej Svoboda March 26, 2021 04:03 PM UTC

Hi,
I've found some more translations missing there:

There should be Rechteck instead of Rectangle. This is valid for all the properties windows. Can this be also added to the resources?


DD Divya Dhayalan Syncfusion Team March 29, 2021 07:32 PM UTC

Hi Ondrej, 
 
From your update we understand that your requirement is to localize the Annotation window properties too. We can achieve this by assigning value to the annotation properties by using AnnotationSettings. So, we can assign the “Rechteck” value for the RectangleAnnotationSettings Subject Property in the sample itself. Please find the below code for the same.  
 
public MainWindow() 
{ 
    Thread.CurrentThread.CurrentUICulture = new System.Globalization.CultureInfo("ar-AR"); 
    InitializeComponent(); 
    pdfViewerControl.Load(@"../../Data/F Sharp Succinctly.pdf"); 
    pdfViewerControl.RectangleAnnotationSettings.Subject = "Rechteck"; 
} 
 
We have also modified the sample for the same and which can be downloaded from the below link, https://www.syncfusion.com/downloads/support/forum/162991/ze/LocalizationSample474016689  
 
Please let us know if the above solution helps to achieve your requirement. 
 
Regards, 
Divya 
 



OS Ondrej Svoboda March 30, 2021 08:51 AM UTC

Hi,
this works, but wouldn't it make more sense to initialize the defaults to the localized terms directly in your code?


DD Divya Dhayalan Syncfusion Team March 31, 2021 07:05 PM UTC

Hi Ondrej, 
 
We are currently checking on this, we will update further details on 5th April 2021. 
 
Regards, 
Divya 



DD Divya Dhayalan Syncfusion Team April 6, 2021 10:00 AM UTC

Hi Ondrej, 
 
Thank you for your Patience. 
 
We have validated your requirement for “Localize default values in PdfAnnotationWindow” with our current APIs and found that some are missing to achieve this requirement. We would like to consider this as a usability feature. Since we observed that you are preferring the fixes and implementation in the Weekly NuGet Package, we will include the implementation in the Weekly NuGet release which is expected to be available on 20th April 2021. 
  
Please find the feedback link below,  
  
Regards,  
Divya  



OS Ondrej Svoboda April 6, 2021 12:03 PM UTC

OK, thanks.


DD Divya Dhayalan Syncfusion Team April 7, 2021 06:24 AM UTC

Hi Ondrej, 
 
Most Welcome. 
 
As we have mentioned earlier, we will include the fix in the weekly NuGet release which will is expected to be available on 20th April 2021. 
 
Regards, 
Divya 



OS Ondrej Svoboda April 20, 2021 01:58 PM UTC

Hi,
was it already released in version 19.1.0.57?

I see it is fixed e.g. for rectangle, but stamp subject is still in English. Or do I need to update my resx files with some new keys?

Thanks


DD Divya Dhayalan Syncfusion Team April 20, 2021 04:24 PM UTC

Hi Ondrej, 
 
As we mentioned in the previous update, we have included the support for “Localize Subject property default value for all annotation in WPF PdfViewer” in our latest weekly NuGet release, so kindly upgrade to latest version v19.1.0.57 to get the issue resolved  
    
 
We have created a sample for you reference which can be downloaded from the below link, https://www.syncfusion.com/downloads/support/directtrac/162991/ze/LocalizationSample-773197606    
  
In this sample the resource key for all the annotations subject property default values is added, and their corresponding localization value also added in the resource file. Here in the above sample, we have implemented the localization for Arabic language. Please find the below table for all the annotation Subject Resource Key name 
  
Resource Key Name 
Value  
FreeText 
Free Text 
DrawLine (Existing) 
Line 
DrawRectangle (Existing) 
Rectangle 
DrawPolygon (Existing) 
Polygon 
Highlight 
Highlight 
Ink 
Ink 
Oval 
Oval 
PolygonalLine 
Polygonal Line 
Stamp 
Stamp 
StickyNote 
Sticky Note 
Strikethrough 
Strikethrough 
Underline 
Underline 
 
In the above list, we didn’t include new resource key for Line, Polygon and Rectangle. 
  
And also, we have changed the `StickyNote` Resource Key name to `AddStickyNote` which localize the tool tip for Sticky note annotation. So, kindly change that Resource name also.  
 
Resource Key Name 
Value 
AddStickyNote 
Add sticky note 
 
Please let us know if you need any further assistance on this. 
 
Regards, 
Divya 



DD Divya Dhayalan Syncfusion Team April 20, 2021 04:28 PM UTC

Hi Ondrej, 
 
Sorry for the inconvenience caused. 
 
Please download the sample from the below link for the previous update, 
 
Regards, 
Divya  



OS Ondrej Svoboda April 21, 2021 09:39 AM UTC

Hi,
thanks, looks OK. I've found one little issue there. It seems that "DrawLine" resource key is being erroneously used also for ArrowAnnotationSettings.Subject, should be probably changed to "Arrow" resource key. What do you think?

Regards


DD Divya Dhayalan Syncfusion Team April 22, 2021 10:51 AM UTC

Hi Ondrej, 
 
There are no Arrow shapes in the PDF specification of annotation. It is just an extension of a Line shape with the customized begin and end style. So that the Subject and other properties of the Arrow will be considered as its base shape (Line) only. The same behavior is in Adobe also and please refer the below image. Since it is designed as per the specification, we do not have plans to change this behavior as of now. 
 
 
 
For user convenience, we have included Arrow option in the toolbar UI alone and settings. For arrow annotation subject alone, we request you to customize the subject using the property ArrowAnnotationSettings.Subject from the application level. 
 
Regards, 
Divya 



OS Ondrej Svoboda April 22, 2021 11:11 AM UTC

OK, thanks for explaining.


DD Divya Dhayalan Syncfusion Team April 23, 2021 06:14 AM UTC

Hi Ondrej, 
 
Most Welcome. Please let us know if you need any further assistance on this. 
 
Regards, 
Divya 


Loader.
Up arrow icon