diff --git a/ILSpy/ContextMenuEntry.cs b/ILSpy/ContextMenuEntry.cs index 0bde81f81..f2a94ae09 100644 --- a/ILSpy/ContextMenuEntry.cs +++ b/ILSpy/ContextMenuEntry.cs @@ -219,7 +219,7 @@ namespace ICSharpCode.ILSpy needSeparatorForCategory = false; } MenuItem menuItem = new MenuItem(); - menuItem.Header = entryPair.Metadata.Header; + menuItem.Header = MainWindow.GetResourceString( entryPair.Metadata.Header); menuItem.InputGestureText = entryPair.Metadata.InputGestureText; if (!string.IsNullOrEmpty(entryPair.Metadata.Icon)) { menuItem.Icon = new Image { diff --git a/ILSpy/DebugSteps.xaml b/ILSpy/DebugSteps.xaml index 669fce140..95e672623 100644 --- a/ILSpy/DebugSteps.xaml +++ b/ILSpy/DebugSteps.xaml @@ -4,14 +4,15 @@ xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:local="clr-namespace:ICSharpCode.ILSpy" + xmlns:properties="clr-namespace:ICSharpCode.ILSpy.Properties" mc:Ignorable="d" d:DesignHeight="300" d:DesignWidth="300"> - - - - + + + + @@ -21,9 +22,9 @@ - - - + + + diff --git a/ILSpy/DebugSteps.xaml.cs b/ILSpy/DebugSteps.xaml.cs index e5c1431e3..131530740 100644 --- a/ILSpy/DebugSteps.xaml.cs +++ b/ILSpy/DebugSteps.xaml.cs @@ -79,7 +79,7 @@ namespace ICSharpCode.ILSpy public static void Show() { - MainWindow.Instance.ShowInTopPane("Debug Steps", new DebugSteps()); + MainWindow.Instance.ShowInTopPane(Properties.Resources.DebugSteps, new DebugSteps()); } void IPane.Closed() diff --git a/ILSpy/MainWindow.xaml.cs b/ILSpy/MainWindow.xaml.cs index 21d285352..e502e72bc 100644 --- a/ILSpy/MainWindow.xaml.cs +++ b/ILSpy/MainWindow.xaml.cs @@ -182,7 +182,7 @@ namespace ICSharpCode.ILSpy } } - private static string GetResourceString(string key) + internal static string GetResourceString(string key) { var str = !string.IsNullOrEmpty(key)? Properties.Resources.ResourceManager.GetString(key):null; return string.IsNullOrEmpty(key)|| string.IsNullOrEmpty(str) ? key : str; diff --git a/ILSpy/OpenFromGacDialog.xaml b/ILSpy/OpenFromGacDialog.xaml index 240d86af4..3398075c1 100644 --- a/ILSpy/OpenFromGacDialog.xaml +++ b/ILSpy/OpenFromGacDialog.xaml @@ -40,8 +40,8 @@ -