diff --git a/ILSpy/Commands/GeneratePdbContextMenuEntry.cs b/ILSpy/Commands/GeneratePdbContextMenuEntry.cs
index 609356f59..36330fefa 100644
--- a/ILSpy/Commands/GeneratePdbContextMenuEntry.cs
+++ b/ILSpy/Commands/GeneratePdbContextMenuEntry.cs
@@ -74,12 +74,12 @@ namespace ICSharpCode.ILSpy
PortablePdbWriter.WritePdb(file, decompiler, options.DecompilerSettings, stream);
} catch (OperationCanceledException) {
output.WriteLine();
- output.WriteLine("Generation was cancelled.");
+ output.WriteLine(Resources.GenerationWasCancelled);
throw;
}
}
stopwatch.Stop();
- output.WriteLine("Generation complete in " + stopwatch.Elapsed.TotalSeconds.ToString("F1") + " seconds.");
+ output.WriteLine(string.Format(Resources.GenerationCompleteInSeconds, stopwatch.Elapsed.TotalSeconds.ToString("F1")));
output.WriteLine();
output.AddButton(null, Resources.OpenExplorer, delegate { Process.Start("explorer", "/select,\"" + fileName + "\""); });
output.WriteLine();
@@ -88,7 +88,7 @@ namespace ICSharpCode.ILSpy
}
}
- [ExportMainMenuCommand(Menu = nameof(Resources._File), Header = nameof(Resources.GeneratePortable), MenuCategory = Resources.Save)]
+ [ExportMainMenuCommand(Menu = nameof(Resources._File), Header = nameof(Resources.GeneratePortable), MenuCategory = nameof(Resources.Save))]
class GeneratePdbMainMenuEntry : SimpleCommand
{
public override bool CanExecute(object parameter)
diff --git a/ILSpy/Properties/Resources.Designer.cs b/ILSpy/Properties/Resources.Designer.cs
index 08ee41409..62e6bfb9b 100644
--- a/ILSpy/Properties/Resources.Designer.cs
+++ b/ILSpy/Properties/Resources.Designer.cs
@@ -1406,6 +1406,24 @@ namespace ICSharpCode.ILSpy.Properties {
}
}
+ ///
+ /// 查找类似 Generation complete in {0} seconds. 的本地化字符串。
+ ///
+ public static string GenerationCompleteInSeconds {
+ get {
+ return ResourceManager.GetString("GenerationCompleteInSeconds", resourceCulture);
+ }
+ }
+
+ ///
+ /// 查找类似 Generation was cancelled. 的本地化字符串。
+ ///
+ public static string GenerationWasCancelled {
+ get {
+ return ResourceManager.GetString("GenerationWasCancelled", resourceCulture);
+ }
+ }
+
///
/// 查找类似 Go to token 的本地化字符串。
///
diff --git a/ILSpy/Properties/Resources.resx b/ILSpy/Properties/Resources.resx
index 67976b582..adb29448e 100644
--- a/ILSpy/Properties/Resources.resx
+++ b/ILSpy/Properties/Resources.resx
@@ -903,4 +903,10 @@ Do you want to continue?
Visual Studio Solution file|*.sln|All files|*.*
+
+ Generation complete in {0} seconds.
+
+
+ Generation was cancelled.
+
\ No newline at end of file
diff --git a/ILSpy/Properties/Resources.zh-Hans.resx b/ILSpy/Properties/Resources.zh-Hans.resx
index cb3403087..99f0552a2 100644
--- a/ILSpy/Properties/Resources.zh-Hans.resx
+++ b/ILSpy/Properties/Resources.zh-Hans.resx
@@ -903,4 +903,10 @@
选择 PDB...
+
+ 生成已取消。
+
+
+ 生成完成,耗时 {0} 秒.
+
\ No newline at end of file