This repository includes the resource(.resx) files with default strings that are used for localization of Syncfusion WPF libraries.
Перейти к файлу
SyncfusionBuild b8ff1ed69d v26.2.4 2024-07-25 18:57:21 +05:30
Syncfusion.Chart.WPF v26.2.4 2024-07-25 10:04:47 +00:00
Syncfusion.Diagram.WPF v26.2.4 2024-07-25 10:04:47 +00:00
Syncfusion.Edit.WPF v26.2.4 2024-07-25 10:04:47 +00:00
Syncfusion.Gantt.WPF v26.2.4 2024-07-25 10:04:47 +00:00
Syncfusion.Grid.WPF v26.2.4 2024-07-25 10:04:47 +00:00
Syncfusion.OlapChart.WPF v26.2.4 2024-07-25 10:04:47 +00:00
Syncfusion.OlapClient.WPF v26.2.4 2024-07-25 10:04:47 +00:00
Syncfusion.OlapGauge.WPF v26.2.4 2024-07-25 10:04:47 +00:00
Syncfusion.OlapGrid.WPF v26.2.4 2024-07-25 10:04:47 +00:00
Syncfusion.OlapShared.WPF v26.2.4 2024-07-25 10:04:47 +00:00
Syncfusion.OlapTools.WPF v26.2.4 2024-07-25 10:04:47 +00:00
Syncfusion.PdfViewer.WPF v26.2.4 2024-07-25 10:04:47 +00:00
Syncfusion.PdfViewer.WPF.ClientProfile v26.2.4 2024-07-25 10:04:47 +00:00
Syncfusion.PivotAnalysis.WPF v26.2.4 2024-07-25 10:04:47 +00:00
Syncfusion.PropertyGrid.WPF v26.2.4 2024-07-25 10:04:47 +00:00
Syncfusion.Schedule.WPF v26.2.4 2024-07-25 10:04:47 +00:00
Syncfusion.SfChart.WPF v26.2.4 2024-07-25 10:04:47 +00:00
Syncfusion.SfColorPalette.WPF v26.2.4 2024-07-25 10:04:47 +00:00
Syncfusion.SfDiagram.WPF v26.2.4 2024-07-25 10:04:47 +00:00
Syncfusion.SfDiagramRibbon.WPF v26.2.4 2024-07-25 10:04:47 +00:00
Syncfusion.SfGrid.WPF v26.2.4 2024-07-25 10:04:47 +00:00
Syncfusion.SfImageEditor.WPF v26.2.4 2024-07-25 10:04:47 +00:00
Syncfusion.SfInput.WPF v26.2.4 2024-07-25 10:04:47 +00:00
Syncfusion.SfKanban.WPF v26.2.4 2024-07-25 10:04:47 +00:00
Syncfusion.SfRichTextBoxAdv.WPF v26.2.4 2024-07-25 10:04:47 +00:00
Syncfusion.SfRichTextRibbon.WPF v26.2.4 2024-07-25 10:04:47 +00:00
Syncfusion.SfSchedule.WPF v26.2.4 2024-07-25 10:04:47 +00:00
Syncfusion.SfScheduler.WPF v26.2.4 2024-07-25 10:04:47 +00:00
Syncfusion.SfShared.WPF v26.2.4 2024-07-25 10:04:47 +00:00
Syncfusion.SfSmithChart.WPF v26.2.4 2024-07-25 10:04:47 +00:00
Syncfusion.SfSpellChecker.WPF v26.2.4 2024-07-25 10:04:47 +00:00
Syncfusion.SfSpreadsheet.WPF v26.2.4 2024-07-25 10:04:47 +00:00
Syncfusion.SfSunburstChart.WPF v26.2.4 2024-07-25 10:04:47 +00:00
Syncfusion.SfTreeView.WPF v26.2.4 2024-07-25 10:04:47 +00:00
Syncfusion.Shared.WPF v26.2.4 2024-07-25 10:04:47 +00:00
Syncfusion.Shared.WPF.Classic v26.2.4 2024-07-25 10:04:47 +00:00
Syncfusion.Spreadsheet.WPF v26.2.4 2024-07-25 10:04:47 +00:00
Syncfusion.Spreadsheet.WPF.ClientProfile v26.2.4 2024-07-25 10:04:47 +00:00
Syncfusion.Tools.WPF v26.2.4 2024-07-25 10:04:47 +00:00
Syncfusion.Tools.WPF.Classic v26.2.4 2024-07-25 10:04:47 +00:00
README.md v26.2.4 2024-07-25 18:57:21 +05:30

README.md

Localization of Syncfusion WPF Controls using .resx files

This repository contains the default resource files (.resx) of Syncfusion WPF libraries. You can use this resource files to localize the strings for any selected language.

Localization of Syncfusion WPF Controls

Localization is the process of translating the application resources into different language for the specific cultures. You can localize the syncfusion WPF 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 MainWindow()
{
    System.Threading.Thread.CurrentThread.CurrentUICulture = new System.Globalization.CultureInfo("de-DE");
    InitializeComponent();
}

Creating .resx files

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

  1. Right click your project and add new folder named Resources.

  2. Add default resource files of libraries you are using into Resources folder and ensure AccessModifier specfied as Public.

Consider you are using SfDataGrid and Ribbon in your application. Then you need to copy and include Syncfusion.SfGrid.WPF.resx (since SfDataGrid present in Syncfusion.SfGrid.WPF library) and Syncfusion.Tools.Wpf.resx (since Ribbon present in Syncfusion.Tools.WPF library) files in your application under Resources folder. So, now you can know the key names and values of default stings used in Syncfusion.Tools.WPF.dll and Syncfusion.SfGrid.WPF.dll libraries.

WPF DataGrid Localization

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

WPF Control Localization

  1. Now, select Add and add resource file for german culture in Resources folder and set AccessModifier property to No code generation.

WPF Control Localization using .resx file

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

Download demo from GitHub

Editing default culture strings

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