-
Notifications
You must be signed in to change notification settings - Fork 8.1k
Replace 'Windows PowerShell' with 'PowerShell' in resx files #4758
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Replace 'Windows PowerShell' with 'PowerShell' in resx files #4758
Conversation
|
I think we should replace |
|
@SteveL-MSFT: I agree; Core identifies an underlying technology; not PowerShell itself. |
|
I agree. Will do. |
| </data> | ||
| <data name="RunspaceDebuggingNoHostRunspaceOrDebugger" xml:space="preserve"> | ||
| <value>Cannot debug Runspace. The host has no debugger. Try debugging the Runspace inside the Windows PowerShell console or the Windows PowerShell ISE, both of which have built-in debuggers.</value> | ||
| <value>Cannot debug Runspace. The host has no debugger. Try debugging the Runspace inside the PowerShell Core console or the Visual Studio Code, both of which have built-in debuggers.</value> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
or the [](start = 122, length = 6)
Suggestion: 'or the Visual Studio Code' is rather cumbersome to read IMHO.
How about 'or with Visual Studio Code.'
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed.
| </data> | ||
| <data name="ApartmentNotSupported" xml:space="preserve"> | ||
| <value>{0} Please note that Single-Threaded Apartment is not supported in PowerShell Core.</value> | ||
| <value>{0} Please note that Single-Threaded Apartment is not supported in PowerShell.</value> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should leave this one since it's Core specific (until I get my PR submitted)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed.
| </data> | ||
| <data name="HostFunctionNotImplemented" xml:space="preserve"> | ||
| <value>A command that prompts the user failed because the host program or the command type does not support user interaction. Try a host program that supports user interaction, such as the Windows PowerShell Console or Windows PowerShell ISE, and remove prompt-related commands from command types that do not support user interaction, such as Windows PowerShell workflows.</value> | ||
| <value>A command that prompts the user failed because the host program or the command type does not support user interaction. Try a host program that supports user interaction, such as the PowerShell Console, and remove prompt-related commands from command types that do not support user interaction, such as PowerShell workflows.</value> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove mention of workflows which isn't supported
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed.
| </data> | ||
| <data name="WorkflowModuleNotSupportedInPowerShellCore" xml:space="preserve"> | ||
| <value>Cannot load the workflow module '{0}'. Workflow is not supported in PowerShell Core.</value> | ||
| <value>Cannot load the workflow module '{0}'. Workflow is not supported in PowerShell.</value> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Put Core back as this is specific to Core
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed.
| </data> | ||
| <data name="CustomPSSnapInNotSupportedInPowerShellCore" xml:space="preserve"> | ||
| <value>The custom Windows PowerShell snap-in is not supported in PowerShell Core.</value> | ||
| <value>The custom PowerShell snap-in is not supported in PowerShell.</value> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Put Core back as this is specific to Core not supporting PSSnapin
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed.
| </data> | ||
| <data name="MonadEngineRegistryAccessFailed" xml:space="preserve"> | ||
| <value>Unable to access Windows PowerShell PowerShellEngine registry information.</value> | ||
| <value>Unable to access PowerShell PowerShellEngine registry information.</value> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems redundant, perhaps just: PowerShell Engine registry
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed.
| </data> | ||
| <data name="CantActivateDocumentInPowerShellCore" xml:space="preserve"> | ||
| <value>Cannot run a document in PowerShell Core: {0}.</value> | ||
| <value>Cannot run a document in PowerShell: {0}.</value> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I thought we fixed this so this error should no longer come up? If it's still applicable, put back Core
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't know about applicable but CantActivateDocumentInPowerShellCore is still used in NativeCommandProcessor.cs for Nano and IoT.
Reverted.
| </data> | ||
| <data name="CSCmdsPowerShellCoreShellNotModifiable" xml:space="preserve"> | ||
| <value>Session configuration "{0}" is a PowerShell Core-based shell. Please use PowerShell Core to modify it.</value> | ||
| <value>Session configuration "{0}" is a PowerShell-based shell. Please use PowerShell to modify it.</value> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This error seems Core specific, please revert
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed.
| </data> | ||
| <data name="CSCmdsWindowsPowerShellCoreNotModifiable" xml:space="preserve"> | ||
| <value>Session configuration "{0}" is a Windows PowerShell-based shell. Please use Windows PowerShell to modify it.</value> | ||
| <value>Session configuration "{0}" is a PowerShell-based shell. Please use PowerShell to modify it.</value> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This error seems Windows PS specific, please revert
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed.
| </data> | ||
| <data name="NetFrameWorkV2NotInstalled" xml:space="preserve"> | ||
| <value>The Microsoft .NET Framework 2.0, which is required for Windows PowerShell 2.0, is not installed. Install the .NET Framework 2.0 and retry.</value> | ||
| <value>The Microsoft .NET Framework 2.0, which is required for PowerShell 2.0, is not installed. Install the .NET Framework 2.0 and retry.</value> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Windows PS specific, please revert although PS2.0 is deprecated, so maybe this error and code should be removed in another PR
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed.
| </data> | ||
| <data name="InvalidProcessorArchitecture" xml:space="preserve"> | ||
| <value>PowerShell Core does not support WOW64. The binary must match the architecture of the processor.</value> | ||
| <value>PowerShell does not support WOW64. The binary must match the architecture of the processor.</value> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Core specific, please revert
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed.
SteveL-MSFT
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
|
@SteveL-MSFT Thanks for fast review! |
Address #3345
Motivation
After removing FullCLR from the repo we can clean up message strings and replace 'Windows PowerShell' with 'PowerShell' in resx files.
Fix
Find and replace 'Windows PowerShell' with 'PowerShell' in .resx files. Then revert some replacements (related workflows, "Windows PowerShell 3.0 and higher" and so on).
Additional considerations
The PR doesn't address *.cs files (which have 'Windows PowerShell' strings in comments).