提交 24f8a59c 编写于 作者: K Kevin Halverson

Merge pull request #5629 from KevinH-MS/Loc

Loc'ed and #load'ed...
......@@ -2,20 +2,17 @@
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.ComponentModel.Composition;
using System.Threading.Tasks;
using Microsoft.CodeAnalysis.Editor;
using Microsoft.VisualStudio.Language.StandardClassification;
using Microsoft.VisualStudio.Text;
using Microsoft.VisualStudio.Text.Classification;
using Microsoft.VisualStudio.InteractiveWindow;
using Microsoft.VisualStudio.Utilities;
using Microsoft.VisualStudio.Editor.Interactive;
using Microsoft.CodeAnalysis.Editor.Interactive;
namespace Microsoft.VisualStudio.InteractiveWindow.Commands
{
/// <summary>
/// Represents a reset command which can be run from a REPL window.
/// </summary>
......@@ -36,8 +33,7 @@ public ResetCommand(IStandardClassificationService registry)
public string Description
{
// TODO: Needs localization...
get { return "Reset the execution environment to the initial state, keep history."; }
get { return InteractiveEditorFeaturesResources.ResetCommandDescription; }
}
public IEnumerable<string> DetailedDescription
......@@ -59,8 +55,7 @@ public string CommandLine
{
get
{
// TODO: Needs localization...
yield return new KeyValuePair<string, string>(NoConfigParameterName, "Reset to a clean environment (only mscorlib referenced), do not run initialization script.");
yield return new KeyValuePair<string, string>(NoConfigParameterName, InteractiveEditorFeaturesResources.ResetCommandParametersDescription);
}
}
......
......@@ -142,10 +142,21 @@
<Compile Include="Implementation\Interactive\InteractiveTextUndoHistoryWorkspaceServiceFactory.cs" />
<Compile Include="Implementation\Interactive\InteractiveWorkspace.cs" />
<Compile Include="Implementation\Interactive\InteractiveDocumentSupportsSuggestionService.cs" />
<Compile Include="InteractiveEditorFeaturesResources.Designer.cs">
<AutoGen>True</AutoGen>
<DesignTime>True</DesignTime>
<DependentUpon>InteractiveEditorFeaturesResources.resx</DependentUpon>
</Compile>
</ItemGroup>
<ItemGroup>
<None Include="project.json" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="InteractiveEditorFeaturesResources.resx">
<Generator>ResXFileCodeGenerator</Generator>
<LastGenOutput>InteractiveEditorFeaturesResources.Designer.cs</LastGenOutput>
</EmbeddedResource>
</ItemGroup>
<ImportGroup Label="Targets">
<Import Project="..\..\..\..\build\Targets\VSL.Imports.targets" />
</ImportGroup>
......
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.42000
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
namespace Microsoft.CodeAnalysis.Editor {
using System;
/// <summary>
/// A strongly-typed resource class, for looking up localized strings, etc.
/// </summary>
// This class was auto-generated by the StronglyTypedResourceBuilder
// class via a tool like ResGen or Visual Studio.
// To add or remove a member, edit your .ResX file then rerun ResGen
// with the /str option, or rebuild your VS project.
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
internal class InteractiveEditorFeaturesResources {
private static global::System.Resources.ResourceManager resourceMan;
private static global::System.Globalization.CultureInfo resourceCulture;
[global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
internal InteractiveEditorFeaturesResources() {
}
/// <summary>
/// Returns the cached ResourceManager instance used by this class.
/// </summary>
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
internal static global::System.Resources.ResourceManager ResourceManager {
get {
if (object.ReferenceEquals(resourceMan, null)) {
global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Microsoft.CodeAnalysis.Editor.InteractiveEditorFeaturesResources", typeof(InteractiveEditorFeaturesResources).Assembly);
resourceMan = temp;
}
return resourceMan;
}
}
/// <summary>
/// Overrides the current thread's CurrentUICulture property for all
/// resource lookups using this strongly typed resource class.
/// </summary>
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
internal static global::System.Globalization.CultureInfo Culture {
get {
return resourceCulture;
}
set {
resourceCulture = value;
}
}
/// <summary>
/// Looks up a localized string similar to Reset the execution environment to the initial state, keep history..
/// </summary>
internal static string ResetCommandDescription {
get {
return ResourceManager.GetString("ResetCommandDescription", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Reset to a clean environment (only mscorlib referenced), do not run initialization script..
/// </summary>
internal static string ResetCommandParametersDescription {
get {
return ResourceManager.GetString("ResetCommandParametersDescription", resourceCulture);
}
}
}
}
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<data name="ResetCommandDescription" xml:space="preserve">
<value>Reset the execution environment to the initial state, keep history.</value>
</data>
<data name="ResetCommandParametersDescription" xml:space="preserve">
<value>Reset to a clean environment (only mscorlib referenced), do not run initialization script.</value>
</data>
</root>
\ No newline at end of file
......@@ -17,8 +17,7 @@ public override Task<ExecutionResult> Execute(IInteractiveWindow window, string
public override string Description
{
// TODO: Needs localization...
get { return "Clears the contents of the editor window, leaving history and execution context intact."; }
get { return InteractiveWindowResources.ClearScreenCommandDescription; }
}
public override IEnumerable<string> Names
......
......@@ -12,16 +12,9 @@ internal sealed class HelpReplCommand : InteractiveWindowCommand
{
internal const string CommandName = "help";
private static readonly string[] s_details = new[]
{
// TODO: Needs localization...
" command-name Name of the command to display help on.",
};
public override string Description
{
// TODO: Needs localization...
get { return "Display help on specified command, or all available commands and key bindings if none specified."; }
get { return InteractiveWindowResources.HelpCommandDescription; }
}
public override IEnumerable<string> Names
......@@ -31,8 +24,7 @@ public override IEnumerable<string> Names
public override string CommandLine
{
// TODO: Needs localization...
get { return "[command-name]"; }
get { return InteractiveWindowResources.CommandNamePlaceholder; }
}
public override Task<ExecutionResult> Execute(IInteractiveWindow window, string arguments)
......@@ -41,8 +33,7 @@ public override Task<ExecutionResult> Execute(IInteractiveWindow window, string
IInteractiveWindowCommand command;
if (!ParseArguments(window, arguments, out commandName, out command))
{
// TODO: Needs localization...
window.ErrorOutputWriter.WriteLine(string.Format("Unknown command '{0}'", commandName));
window.ErrorOutputWriter.WriteLine(string.Format(InteractiveWindowResources.UnknownCommand, commandName));
ReportInvalidArguments(window);
return ExecutionResult.Failed;
}
......
......@@ -14,7 +14,7 @@ namespace Microsoft.VisualStudio.InteractiveWindow.Commands
{
internal sealed class Commands : IInteractiveWindowCommands
{
private const string _commandSeparator = ",";
private const string _commandSeparator = ", ";
private readonly Dictionary<string, IInteractiveWindowCommand> _commands;
private readonly int _maxCommandNameLength;
......@@ -47,7 +47,7 @@ internal Commands(IInteractiveWindow window, string prefix, IEnumerable<IInterac
{
if (commandsDict.ContainsKey(name))
{
throw new InvalidOperationException(string.Format(InteractiveWindowResources.DuplicateCommand, string.Join(", ", command.Names)));
throw new InvalidOperationException(string.Format(InteractiveWindowResources.DuplicateCommand, string.Join(_commandSeparator, command.Names)));
}
if (length != 0)
{
......@@ -166,7 +166,9 @@ public IEnumerable<IInteractiveWindowCommand> GetCommands()
internal IEnumerable<string> Help()
{
string format = "{0,-" + _maxCommandNameLength + "} {1}";
return _commands.OrderBy(entry => entry.Key).Select(cmd => string.Format(format, cmd.Key, cmd.Value.Description));
return _commands.GroupBy(entry => entry.Value).
Select(group => string.Format(format, string.Join(_commandSeparator, group.Key.Names), group.Key.Description)).
OrderBy(line => line);
}
public IEnumerable<ClassificationSpan> Classify(SnapshotSpan span)
......@@ -227,7 +229,7 @@ private async Task<ExecutionResult> ExecuteCommandAsync(IInteractiveWindowComman
}
catch (Exception e)
{
_window.ErrorOutputWriter.WriteLine($"Command '{command.Names.First()}' failed: {e.Message}");
_window.ErrorOutputWriter.WriteLine(InteractiveWindowResources.CommandFailed, command.Names.First(), e.Message);
return ExecutionResult.Failure;
}
}
......@@ -236,34 +238,34 @@ private async Task<ExecutionResult> ExecuteCommandAsync(IInteractiveWindowComman
private static readonly string[] s_shortcutDescriptions = new[]
{
"Enter If the current submission appears to be complete, evaluate it. Otherwise, insert a new line.",
"Ctrl-Enter Within the current submission, evaluate the current submission.",
" Within a previous submission, append the previous submission to the current submission.",
"Shift-Enter Insert a new line.",
"Escape Clear the current submission.",
"Alt-UpArrow Replace the current submission with a previous submission.",
"Alt-DownArrow Replace the current submission with a subsequent submission (after having previously navigated backwards).",
"Ctrl-Alt-UpArrow Replace the current submission with a previous submission beginning with the same text.",
"Ctrl-Alt-DownArrow Replace the current submission with a subsequent submission beginning with the same text (after having previously navigated backwards).",
"UpArrow At the end of the current submission, replace the current submission with a previous submission.",
" Elsewhere, move the cursor up one line.",
"DownArrow At the end of the current submission, replace the current submission with a subsequent submission (after having previously navigated backwards).",
" Elsewhere, move the cursor down one line.",
"Ctrl-K, Ctrl-Enter Paste the selection at the end of interactive buffer, leave caret at the end of input.",
"Ctrl-E, Ctrl-Enter Paste and execute the selection before any pending input in the interactive buffer.",
"Ctrl-A First press, select the submission containing the cursor. Second press, select all text in the window.",
"Enter " + InteractiveWindowResources.EnterHelp,
"Ctrl-Enter " + InteractiveWindowResources.CtrlEnterHelp1,
" " + InteractiveWindowResources.CtrlEnterHelp1,
"Shift-Enter " + InteractiveWindowResources.ShiftEnterHelp,
"Escape " + InteractiveWindowResources.EscapeHelp,
"Alt-UpArrow " + InteractiveWindowResources.AltUpArrowHelp,
"Alt-DownArrow " + InteractiveWindowResources.AltDownArrowHelp,
"Ctrl-Alt-UpArrow " + InteractiveWindowResources.CtrlAltUpArrowHelp,
"Ctrl-Alt-DownArrow " + InteractiveWindowResources.CtrlAltDownArrowHelp,
"UpArrow " + InteractiveWindowResources.UpArrowHelp1,
" " + InteractiveWindowResources.UpArrowHelp2,
"DownArrow " + InteractiveWindowResources.DownArrowHelp1,
" " + InteractiveWindowResources.DownArrowHelp2,
"Ctrl-K, Ctrl-Enter " + InteractiveWindowResources.CtrlKCtrlEnterHelp,
"Ctrl-E, Ctrl-Enter " + InteractiveWindowResources.CtrlECtrlEnterHelp,
"Ctrl-A " + InteractiveWindowResources.CtrlAHelp,
};
public void DisplayHelp()
{
_window.WriteLine("Keyboard shortcuts:");
_window.WriteLine(InteractiveWindowResources.KeyboardShortcuts);
foreach (var line in s_shortcutDescriptions)
{
_window.Write(HelpIndent);
_window.WriteLine(line);
}
_window.WriteLine("REPL commands:");
_window.WriteLine(InteractiveWindowResources.ReplCommands);
foreach (var line in Help())
{
_window.Write(HelpIndent);
......@@ -279,10 +281,10 @@ public void DisplayCommandUsage(IInteractiveWindowCommand command, TextWriter wr
writer.WriteLine(string.Empty);
}
writer.WriteLine("Usage:");
writer.WriteLine(InteractiveWindowResources.Usage);
writer.Write(HelpIndent);
writer.Write(CommandPrefix);
writer.Write(string.Join(_commandSeparator, command.Names));
writer.Write(string.Join(_commandSeparator + CommandPrefix, command.Names));
string commandLine = command.CommandLine;
if (commandLine != null)
......@@ -299,7 +301,7 @@ public void DisplayCommandUsage(IInteractiveWindowCommand command, TextWriter wr
if (paramsDesc != null && paramsDesc.Any())
{
writer.WriteLine(string.Empty);
writer.WriteLine("Parameters:");
writer.WriteLine(InteractiveWindowResources.Parameters);
int maxParamNameLength = paramsDesc.Max(entry => entry.Key.Length);
string paramHelpLineFormat = HelpIndent + "{0,-" + maxParamNameLength + "} {1}";
......
......@@ -27,8 +27,7 @@ public ResetCommand(IStandardClassificationService registry)
public override string Description
{
// TODO: Needs localization...
get { return "Reset the execution environment to the initial state, keep history."; }
get { return InteractiveWindowResources.ResetCommandDescription; }
}
public override IEnumerable<string> Names
......@@ -45,8 +44,7 @@ public override string CommandLine
{
get
{
// TODO: Needs localization...
yield return new KeyValuePair<string, string>(NoConfigParameterName, "Reset to a clean environment (only mscorlib referenced), do not run initialization script.");
yield return new KeyValuePair<string, string>(NoConfigParameterName, InteractiveWindowResources.ResetCommandParametersDescription);
}
}
......
......@@ -69,6 +69,132 @@ internal class InteractiveWindowResources {
}
}
/// <summary>
/// Looks up a localized string similar to Replace the current submission with a subsequent submission (after having previously navigated backwards)..
/// </summary>
internal static string AltDownArrowHelp {
get {
return ResourceManager.GetString("AltDownArrowHelp", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Replace the current submission with a previous submission..
/// </summary>
internal static string AltUpArrowHelp {
get {
return ResourceManager.GetString("AltUpArrowHelp", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Clears the contents of the editor window, leaving history and execution context intact..
/// </summary>
internal static string ClearScreenCommandDescription {
get {
return ResourceManager.GetString("ClearScreenCommandDescription", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Command &apos;{0}&apos; failed: {1}.
/// </summary>
internal static string CommandFailed {
get {
return ResourceManager.GetString("CommandFailed", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to [command-name].
/// </summary>
internal static string CommandNamePlaceholder {
get {
return ResourceManager.GetString("CommandNamePlaceholder", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to First press, select the submission containing the cursor. Second press, select all text in the window..
/// </summary>
internal static string CtrlAHelp {
get {
return ResourceManager.GetString("CtrlAHelp", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Replace the current submission with a subsequent submission beginning with the same text (after having previously navigated backwards)..
/// </summary>
internal static string CtrlAltDownArrowHelp {
get {
return ResourceManager.GetString("CtrlAltDownArrowHelp", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Replace the current submission with a previous submission beginning with the same text..
/// </summary>
internal static string CtrlAltUpArrowHelp {
get {
return ResourceManager.GetString("CtrlAltUpArrowHelp", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Paste and execute the selection before any pending input in the interactive buffer..
/// </summary>
internal static string CtrlECtrlEnterHelp {
get {
return ResourceManager.GetString("CtrlECtrlEnterHelp", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Within the current submission, evaluate the current submission..
/// </summary>
internal static string CtrlEnterHelp1 {
get {
return ResourceManager.GetString("CtrlEnterHelp1", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Within a previous submission, append the previous submission to the current submission..
/// </summary>
internal static string CtrlEnterHelp2 {
get {
return ResourceManager.GetString("CtrlEnterHelp2", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Paste the selection at the end of interactive buffer, leave caret at the end of input..
/// </summary>
internal static string CtrlKCtrlEnterHelp {
get {
return ResourceManager.GetString("CtrlKCtrlEnterHelp", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to At the end of the current submission, replace the current submission with a subsequent submission (after having previously navigated backwards)..
/// </summary>
internal static string DownArrowHelp1 {
get {
return ResourceManager.GetString("DownArrowHelp1", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Elsewhere, move the cursor down one line..
/// </summary>
internal static string DownArrowHelp2 {
get {
return ResourceManager.GetString("DownArrowHelp2", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to A command with the name &apos;{0}&apos; has already been registered..
/// </summary>
......@@ -78,6 +204,33 @@ internal class InteractiveWindowResources {
}
}
/// <summary>
/// Looks up a localized string similar to If the current submission appears to be complete, evaluate it. Otherwise, insert a new line..
/// </summary>
internal static string EnterHelp {
get {
return ResourceManager.GetString("EnterHelp", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Clear the current submission..
/// </summary>
internal static string EscapeHelp {
get {
return ResourceManager.GetString("EscapeHelp", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Display help on specified command, or all available commands and key bindings if none specified..
/// </summary>
internal static string HelpCommandDescription {
get {
return ResourceManager.GetString("HelpCommandDescription", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to An internal error has occurred in the Interactive window. Please restart Visual Studio..
/// </summary>
......@@ -87,6 +240,15 @@ internal class InteractiveWindowResources {
}
}
/// <summary>
/// Looks up a localized string similar to Keyboard shortcuts:.
/// </summary>
internal static string KeyboardShortcuts {
get {
return ResourceManager.GetString("KeyboardShortcuts", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to The command of type &apos;{0}&apos; has no command names..
/// </summary>
......@@ -105,6 +267,24 @@ internal class InteractiveWindowResources {
}
}
/// <summary>
/// Looks up a localized string similar to Parameters:.
/// </summary>
internal static string Parameters {
get {
return ResourceManager.GetString("Parameters", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to REPL commands:.
/// </summary>
internal static string ReplCommands {
get {
return ResourceManager.GetString("ReplCommands", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to This method may not be called on the UI thread (to avoid hangs)..
/// </summary>
......@@ -122,5 +302,68 @@ internal class InteractiveWindowResources {
return ResourceManager.GetString("RequireUIThread", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Reset the execution environment to the initial state, keep history..
/// </summary>
internal static string ResetCommandDescription {
get {
return ResourceManager.GetString("ResetCommandDescription", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Reset to a clean environment (only mscorlib referenced), do not run initialization script..
/// </summary>
internal static string ResetCommandParametersDescription {
get {
return ResourceManager.GetString("ResetCommandParametersDescription", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Insert a new line..
/// </summary>
internal static string ShiftEnterHelp {
get {
return ResourceManager.GetString("ShiftEnterHelp", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Unknown command &apos;{0}&apos;.
/// </summary>
internal static string UnknownCommand {
get {
return ResourceManager.GetString("UnknownCommand", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to At the end of the current submission, replace the current submission with a previous submission..
/// </summary>
internal static string UpArrowHelp1 {
get {
return ResourceManager.GetString("UpArrowHelp1", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Elsewhere, move the cursor up one line..
/// </summary>
internal static string UpArrowHelp2 {
get {
return ResourceManager.GetString("UpArrowHelp2", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Usage:.
/// </summary>
internal static string Usage {
get {
return ResourceManager.GetString("Usage", resourceCulture);
}
}
}
}
......@@ -120,22 +120,103 @@
<data name="AlreadyInitialized" xml:space="preserve">
<value>The interactive window has already been initialized.</value>
</data>
<data name="AltDownArrowHelp" xml:space="preserve">
<value>Replace the current submission with a subsequent submission (after having previously navigated backwards).</value>
</data>
<data name="AltUpArrowHelp" xml:space="preserve">
<value>Replace the current submission with a previous submission.</value>
</data>
<data name="ClearScreenCommandDescription" xml:space="preserve">
<value>Clears the contents of the editor window, leaving history and execution context intact.</value>
</data>
<data name="CommandFailed" xml:space="preserve">
<value>Command '{0}' failed: {1}</value>
</data>
<data name="CommandNamePlaceholder" xml:space="preserve">
<value>[command-name]</value>
</data>
<data name="CtrlAHelp" xml:space="preserve">
<value>First press, select the submission containing the cursor. Second press, select all text in the window.</value>
</data>
<data name="CtrlAltDownArrowHelp" xml:space="preserve">
<value>Replace the current submission with a subsequent submission beginning with the same text (after having previously navigated backwards).</value>
</data>
<data name="CtrlAltUpArrowHelp" xml:space="preserve">
<value>Replace the current submission with a previous submission beginning with the same text.</value>
</data>
<data name="CtrlECtrlEnterHelp" xml:space="preserve">
<value>Paste and execute the selection before any pending input in the interactive buffer.</value>
</data>
<data name="CtrlEnterHelp1" xml:space="preserve">
<value>Within the current submission, evaluate the current submission.</value>
</data>
<data name="CtrlEnterHelp2" xml:space="preserve">
<value>Within a previous submission, append the previous submission to the current submission.</value>
</data>
<data name="CtrlKCtrlEnterHelp" xml:space="preserve">
<value>Paste the selection at the end of interactive buffer, leave caret at the end of input.</value>
</data>
<data name="DownArrowHelp1" xml:space="preserve">
<value>At the end of the current submission, replace the current submission with a subsequent submission (after having previously navigated backwards).</value>
</data>
<data name="DownArrowHelp2" xml:space="preserve">
<value>Elsewhere, move the cursor down one line.</value>
</data>
<data name="DuplicateCommand" xml:space="preserve">
<value>A command with the name '{0}' has already been registered.</value>
</data>
<data name="EnterHelp" xml:space="preserve">
<value>If the current submission appears to be complete, evaluate it. Otherwise, insert a new line.</value>
</data>
<data name="EscapeHelp" xml:space="preserve">
<value>Clear the current submission.</value>
</data>
<data name="HelpCommandDescription" xml:space="preserve">
<value>Display help on specified command, or all available commands and key bindings if none specified.</value>
</data>
<data name="InternalError" xml:space="preserve">
<value>An internal error has occurred in the Interactive window. Please restart Visual Studio.</value>
</data>
<data name="KeyboardShortcuts" xml:space="preserve">
<value>Keyboard shortcuts:</value>
</data>
<data name="MissingCommandName" xml:space="preserve">
<value>The command of type '{0}' has no command names.</value>
</data>
<data name="NotInitialized" xml:space="preserve">
<value>The interactive window has not yet been initialized.</value>
</data>
<data name="Parameters" xml:space="preserve">
<value>Parameters:</value>
</data>
<data name="ReplCommands" xml:space="preserve">
<value>REPL commands:</value>
</data>
<data name="RequireNonUIThread" xml:space="preserve">
<value>This method may not be called on the UI thread (to avoid hangs).</value>
</data>
<data name="RequireUIThread" xml:space="preserve">
<value>This method may only be called on the UI thread.</value>
</data>
<data name="ResetCommandDescription" xml:space="preserve">
<value>Reset the execution environment to the initial state, keep history.</value>
</data>
<data name="ResetCommandParametersDescription" xml:space="preserve">
<value>Reset to a clean environment (only mscorlib referenced), do not run initialization script.</value>
</data>
<data name="ShiftEnterHelp" xml:space="preserve">
<value>Insert a new line.</value>
</data>
<data name="UnknownCommand" xml:space="preserve">
<value>Unknown command '{0}'</value>
</data>
<data name="UpArrowHelp1" xml:space="preserve">
<value>At the end of the current submission, replace the current submission with a previous submission.</value>
</data>
<data name="UpArrowHelp2" xml:space="preserve">
<value>Elsewhere, move the cursor up one line.</value>
</data>
<data name="Usage" xml:space="preserve">
<value>Usage:</value>
</data>
</root>
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册