From 45e3f02832a3529486c3fa98530d6ab5e964032e Mon Sep 17 00:00:00 2001 From: Alekhya Date: Tue, 21 Jan 2020 12:02:31 -0800 Subject: [PATCH] Localizing C# Project of FancyZones (FancyZonesEditor) (#199) (#1122) * removed hardcoded strings from CanvasEditorWindow.xaml * removed hardcoded strings from GridEditorWindow.xaml * loc * Localized MainWindow * reverting MainWindow.xaml as it is not rendering the window as expected * Changed the resource settings from internal to public * the culture is set based on the culture of the system UI set in the system settings * Removed the french resource files used for testing * Localized canvasWindow and mainwindow * Removed setting the UI culture explicitly as it would be implicitly set to the culture of system UI * Removed redundant header file --- .../FancyZonesEditor/CanvasEditorWindow.xaml | 11 +- .../FancyZonesEditor/FancyZonesEditor.csproj | 2 +- .../FancyZonesEditor/GridEditorWindow.xaml | 11 +- .../editor/FancyZonesEditor/MainWindow.xaml | 11 +- .../Properties/Resources.Designer.cs | 132 +++++++++++++++++- .../Properties/Resources.resx | 55 +++++++- 6 files changed, 198 insertions(+), 24 deletions(-) diff --git a/src/modules/fancyzones/editor/FancyZonesEditor/CanvasEditorWindow.xaml b/src/modules/fancyzones/editor/FancyZonesEditor/CanvasEditorWindow.xaml index 6b10173e8a5c..21a2b2e565df 100644 --- a/src/modules/fancyzones/editor/FancyZonesEditor/CanvasEditorWindow.xaml +++ b/src/modules/fancyzones/editor/FancyZonesEditor/CanvasEditorWindow.xaml @@ -5,6 +5,7 @@ xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:Controls="clr-namespace:MahApps.Metro.Controls;assembly=MahApps.Metro" xmlns:local="clr-namespace:FancyZonesEditor" + xmlns:props="clr-namespace:FancyZonesEditor.Properties" mc:Ignorable="d" Title="" Width="528" @@ -164,14 +165,14 @@ - + - + -