From 09a2ddbc195ae63b7e6c074d1fb819dca063ef09 Mon Sep 17 00:00:00 2001 From: Ben McMorran Date: Tue, 12 Sep 2017 15:09:32 -0700 Subject: [PATCH] Localize XAML in wizard --- .../Properties/Resources.Designer.cs | 72 +++++++++++++++++++ .../Properties/Resources.resx | 27 +++++++ .../SinglePageWizardDialog.xaml | 16 +++-- .../SinglePageWizardDialog.xaml.cs | 3 +- 4 files changed, 110 insertions(+), 8 deletions(-) diff --git a/GoogleTestAdapter/NewProjectWizard/Properties/Resources.Designer.cs b/GoogleTestAdapter/NewProjectWizard/Properties/Resources.Designer.cs index 4f8aed5e9..2fa959039 100644 --- a/GoogleTestAdapter/NewProjectWizard/Properties/Resources.Designer.cs +++ b/GoogleTestAdapter/NewProjectWizard/Properties/Resources.Designer.cs @@ -60,6 +60,51 @@ internal Resources() { } } + /// + /// Looks up a localized string similar to Consume Google Test as:. + /// + internal static string ConsumeAs { + get { + return ResourceManager.GetString("ConsumeAs", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Dynamic Library (.dll). + /// + internal static string DynamicLib { + get { + return ResourceManager.GetString("DynamicLib", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Link dynamically (Recommended). + /// + internal static string LinkDynamic { + get { + return ResourceManager.GetString("LinkDynamic", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Link statically. + /// + internal static string LinkStatic { + get { + return ResourceManager.GetString("LinkStatic", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to <No project>. + /// + internal static string NoProject { + get { + return ResourceManager.GetString("NoProject", resourceCulture); + } + } + /// /// Looks up a localized string similar to Cannot find NuGet.VisualStudio.Interop.dll. Wizard cannot continue.. /// @@ -69,6 +114,33 @@ internal static string NuGetInteropNotFound { } } + /// + /// Looks up a localized string similar to C++ runtime libraries:. + /// + internal static string RuntimeLibs { + get { + return ResourceManager.GetString("RuntimeLibs", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Select project to test (Optional):. + /// + internal static string SelectProject { + get { + return ResourceManager.GetString("SelectProject", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Static Library (.lib). + /// + internal static string StaticLib { + get { + return ResourceManager.GetString("StaticLib", resourceCulture); + } + } + /// /// Looks up a localized string similar to Windows SDK not found.. /// diff --git a/GoogleTestAdapter/NewProjectWizard/Properties/Resources.resx b/GoogleTestAdapter/NewProjectWizard/Properties/Resources.resx index da4bc6f5e..4dd9cb9b4 100644 --- a/GoogleTestAdapter/NewProjectWizard/Properties/Resources.resx +++ b/GoogleTestAdapter/NewProjectWizard/Properties/Resources.resx @@ -117,9 +117,36 @@ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + Consume Google Test as: + Followed by radio buttons to select a static or dynamic library + + + Dynamic Library (.dll) + + + Link dynamically (Recommended) + + + Link statically + + + <No project> + Default selection in a project selection dropdown + Cannot find NuGet.VisualStudio.Interop.dll. Wizard cannot continue. + + C++ runtime libraries: + Followed by radio buttons to "link statically" or "link dynamically" + + + Select project to test (Optional): + + + Static Library (.lib) + Windows SDK not found. diff --git a/GoogleTestAdapter/NewProjectWizard/SinglePageWizardDialog.xaml b/GoogleTestAdapter/NewProjectWizard/SinglePageWizardDialog.xaml index 473d6f772..28f40b637 100644 --- a/GoogleTestAdapter/NewProjectWizard/SinglePageWizardDialog.xaml +++ b/GoogleTestAdapter/NewProjectWizard/SinglePageWizardDialog.xaml @@ -6,6 +6,7 @@ xmlns:vsui="clr-namespace:Microsoft.VisualStudio.PlatformUI;assembly=Microsoft.VisualStudio.Shell.15.0" xmlns:vsimaging="clr-namespace:Microsoft.VisualStudio.Imaging;assembly=Microsoft.VisualStudio.Imaging" xmlns:vsimagecatalog="clr-namespace:Microsoft.VisualStudio.Imaging;assembly=Microsoft.VisualStudio.ImageCatalog" + xmlns:resx="clr-namespace:NewProjectWizard.Properties" DataContext="{Binding RelativeSource={RelativeSource Self}}" Height="350" MinHeight="350" @@ -76,6 +77,7 @@ Margin="24,8,24,24"> +