Articles in this section
Category / Section

How to localize the dialogs in WinForms SyntaxEditor (EditControl)?

1 min read

Localization

EditControl supports complete localization of all the dialogs associated with it to any desired language. The Neutral Resources files for the EditControl is available in the directory - \Edit.Windows\Src\LocalizationSet. Please follow the steps below to localize the Neutral resource files.

1. Open the .resources file using the WinRes utility.

2. Make the desired changes in the .resources file.

3. Save the changes in the .resources file with the correct culture information.

4. Create the Satellite Assembly from this resources file with the appropriate SatelliteContractVersion. The current SatelliteContractVersion for EditControl is 1.0.0.0.

5. Mark this satellite assembly for verification skipping (since it’s not signed with the same strong-name as the product assembly), as follows.

[DOS]

sn -Vr Syncfusion.Edit.Windows.resources.dll

6. Create a new folder with the Culture name in the bin\debug folder. For example, bin\debug\de-DE\ for German (Germany).

7. Copy the Satellite Assemblies into this folder.

8. Change the UI culture of the current thread using the code as shown below.

C#

Thread.CurrentThread.CurrentUICulture = new System.Globalization.CultureInfo("de-DE");

 

VB

Thread.CurrentThread.CurrentUICulture = new System.Globalization.CultureInfo("de-DE")

 

Now when the exe is run and the application thread’s current-UI-Culture is set to the appropriate culture, say German (Germany) as an example, the resources in the corresponding resource assembly from the de-DE sub-folder will be picked up.

Reference link: https://help.syncfusion.com/windowsforms/syntax-editor/localization

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Please sign in to leave a comment
Access denied
Access denied