diff --git a/RetailCoder.VBE/UI/About/AboutControl.xaml b/RetailCoder.VBE/UI/About/AboutControl.xaml index 69dc2af0d8..355c53daab 100644 --- a/RetailCoder.VBE/UI/About/AboutControl.xaml +++ b/RetailCoder.VBE/UI/About/AboutControl.xaml @@ -7,7 +7,7 @@ mc:Ignorable="d" d:DesignWidth="499" d:DataContext="{d:DesignInstance {x:Type about:AboutControlViewModel}, IsDesignTimeCreatable=False}" - KeyDown="OnKeyDownHandler" > + KeyDown="OnKeyDownHandler"> @@ -34,7 +34,7 @@ Foreground="Gray" FontSize="8" HorizontalAlignment="Center" - Content="Click here to copy version info to clipboard."/> + Content="{Resx ResxName=Rubberduck.UI.RubberduckUI, Key=AboutWindow_CopyVersionLabel}"/> diff --git a/RetailCoder.VBE/UI/About/AboutControl.xaml.cs b/RetailCoder.VBE/UI/About/AboutControl.xaml.cs index 6052f6edf0..3b4ce980a8 100644 --- a/RetailCoder.VBE/UI/About/AboutControl.xaml.cs +++ b/RetailCoder.VBE/UI/About/AboutControl.xaml.cs @@ -40,7 +40,7 @@ private void CopyVersionInfoToClipboard() sb.AppendFormat($"Host Executable: {Path.GetFileName(Application.ExecutablePath).ToUpper()}"); // .ToUpper() used to convert ExceL.EXE -> EXCEL.EXE Clipboard.SetText(sb.ToString()); - System.Windows.MessageBox.Show("Version information copied to clipboard.", "Copy successfull"); + System.Windows.MessageBox.Show(RubberduckUI.AboutWindow_CopyVersionMessage, RubberduckUI.AboutWindow_CopyVersionCaption); } } } diff --git a/RetailCoder.VBE/UI/RubberduckUI.Designer.cs b/RetailCoder.VBE/UI/RubberduckUI.Designer.cs index 130af82036..29651e8e06 100644 --- a/RetailCoder.VBE/UI/RubberduckUI.Designer.cs +++ b/RetailCoder.VBE/UI/RubberduckUI.Designer.cs @@ -129,6 +129,33 @@ public class RubberduckUI { } } + /// + /// Looks up a localized string similar to Copy successful. + /// + public static string AboutWindow_CopyVersionCaption { + get { + return ResourceManager.GetString("AboutWindow_CopyVersionCaption", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Click here to copy version info to clipboard.. + /// + public static string AboutWindow_CopyVersionLabel { + get { + return ResourceManager.GetString("AboutWindow_CopyVersionLabel", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Version information copied to clipboard.. + /// + public static string AboutWindow_CopyVersionMessage { + get { + return ResourceManager.GetString("AboutWindow_CopyVersionMessage", resourceCulture); + } + } + /// /// Looks up a localized string similar to All contributors to our GitHub repository ///All our stargazers, likers & followers, for the warm fuzzies @@ -5411,7 +5438,7 @@ public class RubberduckUI { } /// - /// Looks up a localized string similar to Rubberduck ToDo Items - {0} + /// Looks up a localized string similar to Rubberduck TODO Items - {0} ///{1} items found.. /// public static string ToDoExplorer_NumberOfIssuesFound_Plural { @@ -5421,7 +5448,7 @@ public class RubberduckUI { } /// - /// Looks up a localized string similar to Rubberduck ToDo Items - {0} + /// Looks up a localized string similar to Rubberduck TODO Items - {0} ///{1} items found.. /// public static string ToDoExplorer_NumberOfIssuesFound_Singular { diff --git a/RetailCoder.VBE/UI/RubberduckUI.resx b/RetailCoder.VBE/UI/RubberduckUI.resx index 7f3370cdf1..8299887280 100644 --- a/RetailCoder.VBE/UI/RubberduckUI.resx +++ b/RetailCoder.VBE/UI/RubberduckUI.resx @@ -1,4 +1,4 @@ - + - + @@ -2122,4 +2122,13 @@ Would you like to import them to Rubberduck? Copy to clipboard - + + Copy successful + + + Click here to copy version info to clipboard. + + + Version information copied to clipboard. + + \ No newline at end of file