This repository includes the resource(.resx) files with default strings that are used for localization of Syncfusion WinForms libraries.
Перейти к файлу
SyncfusionBuild 372782d845 v27.1.48 2024-09-20 16:41:54 +05:30
Syncfusion.Barcode.Windows v27.1.48 2024-09-20 05:54:41 +00:00
Syncfusion.Chart.Windows v27.1.48 2024-09-20 05:54:41 +00:00
Syncfusion.Core.WinForms v27.1.48 2024-09-20 05:54:41 +00:00
Syncfusion.Diagram.Utility.Windows v27.1.48 2024-09-20 05:54:41 +00:00
Syncfusion.Diagram.Windows v27.1.48 2024-09-20 05:54:41 +00:00
Syncfusion.Edit.Windows v27.1.48 2024-09-20 05:54:41 +00:00
Syncfusion.Grid.Grouping.Windows v27.1.48 2024-09-20 05:54:41 +00:00
Syncfusion.Grid.Windows v27.1.48 2024-09-20 05:54:41 +00:00
Syncfusion.GridHelperClasses.Windows v27.1.48 2024-09-20 05:54:41 +00:00
Syncfusion.HTMLUI.Windows v27.1.48 2024-09-20 05:54:41 +00:00
Syncfusion.PdfViewer.Windows v27.1.48 2024-09-20 05:54:41 +00:00
Syncfusion.PdfViewer.Windows.ClientProfile v27.1.48 2024-09-20 05:54:41 +00:00
Syncfusion.PivotAnalysis.Windows v27.1.48 2024-09-20 05:54:41 +00:00
Syncfusion.PivotChart.Windows v27.1.48 2024-09-20 05:54:41 +00:00
Syncfusion.PivotShared.Windows v27.1.48 2024-09-20 05:54:41 +00:00
Syncfusion.Schedule.Windows v27.1.48 2024-09-20 05:54:41 +00:00
Syncfusion.Scripting.Windows v27.1.48 2024-09-20 05:54:41 +00:00
Syncfusion.SfBarcode.Windows v27.1.48 2024-09-20 05:54:41 +00:00
Syncfusion.SfDataGrid.WinForms v27.1.48 2024-09-20 05:54:41 +00:00
Syncfusion.SfInput.WinForms v27.1.48 2024-09-20 05:54:41 +00:00
Syncfusion.SfListView.WinForms v27.1.48 2024-09-20 05:54:41 +00:00
Syncfusion.SfSmithChart.WinForms v27.1.48 2024-09-20 05:54:41 +00:00
Syncfusion.Shared.Base v27.1.48 2024-09-20 05:54:41 +00:00
Syncfusion.Spreadsheet.Windows v27.1.48 2024-09-20 05:54:41 +00:00
Syncfusion.Tools.Windows v27.1.48 2024-09-20 05:54:41 +00:00
README.md v27.1.48 2024-09-20 16:41:54 +05:30

README.md

Localization of Syncfusion WF controls using .resx files

This respository contains the default resources file (.resx) of Syncfusion Windows Forms libraries. You can use this resource files to localize the strings for any selected language.

Localization of Syncfusion Windows Forms Controls

Localization is the process of translating the application resources into different language for the specific cultures. You can localize the syncfusion Windows Forms Controls by adding resource file for each language.

Changing application culture

When you are changing the application culture, then you can localize the application based on application culture by creating .resx file.

public Form1()
{
    System.Threading.Thread.CurrentThread.CurrentCulture = new System.Globalization.CultureInfo("de-DE");
    System.Threading.Thread.CurrentThread.CurrentUICulture = new System.Globalization.CultureInfo("de-DE");
    InitializeComponent();
}

Creating .resx files

You can create .resx files for any languages by following steps,

  1. Right click your project and click New Folder and set name as Resources.

  2. Add default resource file of libraries you are using to Resources folder.

Consider you are using SfDataGrid control in your application. Then you need to copy and include Syncfusion.SfDataGrid.WinForms.resx (since SfDataGrid present in Syncfusion.SfDataGrid.WinForms library) file in your application under Resources folder. So, now you can know the key names and values of default strings used in Syncfusion.SfDataGrid.WinForms.dll library.

WF DataGrid Localization

  1. Now, right click on Resources folder and select Add and then New Item. In the Add New Item wizard, select Resources File option and name the file name as Syncfusion.SfDataGrid.WinForms.<culture name>.resx. For example, you have to give name as Syncfusion.SfDataGrid.WinForms.de-DE.resx for German culture. In the same way, add new resource files for other libraries used in your application.

WF DataGrid Localization

  1. Now, select Add and add resource file for german culture in Resources folder.

WF Localization using .resx file

  1. Now, you can copy the key names from default resource files and change its corresponding value based on the culture, the resource file targets.

WF Localization using key value of .resx file

Download demo from GitHub

Editing default culture settings

You can change the default string of any control by adding the default .resx files (from GitHub) to Resources folder of your application. Syncfusion Windows Forms controls reads the default string from the .resx files of application if its added.