Skip to content

Commit bb3b32b

Browse files
Update README.md
1 parent b93bafc commit bb3b32b

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

README.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ When you change the application culture, you can localize the application based
1414
public partial class MainWindow
1515
{
1616
public MainWindow()
17-
{
18-
InitializeComponent();
17+
{
1918
System.Threading.Thread.CurrentThread.CurrentUICulture = new System.Globalization.CultureInfo("de");
19+
InitializeComponent();
2020
}
2121
}
2222
```
@@ -26,8 +26,8 @@ public partial class MainWindow
2626
``` vb
2727
Partial Public Class MainWindow
2828
Public Sub New()
29-
InitializeComponent()
3029
System.Threading.Thread.CurrentThread.CurrentUICulture = new System.Globalization.CultureInfo("de")
30+
InitializeComponent()
3131
End Sub
3232
End Class
3333
```
@@ -40,6 +40,9 @@ You can create .resx files for any language by following these steps:
4040

4141
2. Add the [default resource files](https://github.com/syncfusion/wpf-controls-localization-resx-files) to the libraries you are using to the `Resources` folder and ensure `AccessModifier` is specified as Public.
4242

43+
**Note:**
44+
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.
45+
4346
![Included the default resource file for localization](DefaultResourceFile.png)
4447

4548
3. Now, right-click `Resources` folder and select Add and then `NewItem`. In the `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.

0 commit comments

Comments
 (0)