Skip to content

Replace 'Windows PowerShell' with 'PowerShell' in resx files - #4758

Merged
Dongbo Wang (daxian-dbw) merged 4 commits into
PowerShell:masterfrom
iSazonov:remove-windows-powershell
Sep 7, 2017
Merged

Replace 'Windows PowerShell' with 'PowerShell' in resx files#4758
Dongbo Wang (daxian-dbw) merged 4 commits into
PowerShell:masterfrom
iSazonov:remove-windows-powershell

Conversation

@iSazonov

@iSazonov Ilya (iSazonov) commented Sep 6, 2017

Copy link
Copy Markdown
Collaborator

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).

@SteveL-MSFT

Copy link
Copy Markdown
Member

I think we should replace Windows PowerShell with just PowerShell and not PowerShell Core

@dantraMSFT

Copy link
Copy Markdown
Contributor

Steve Lee (@SteveL-MSFT): I agree; Core identifies an underlying technology; not PowerShell itself.

@iSazonov

Copy link
Copy Markdown
Collaborator Author

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>

Copy link
Copy Markdown
Contributor

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.'

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed.

@iSazonov Ilya (iSazonov) changed the title Replace 'Windows PowerShell' with 'PowerShell Core' in resx files Replace 'Windows PowerShell' with 'PowerShell' in resx files Sep 7, 2017
</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>

Copy link
Copy Markdown
Member

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)

Copy link
Copy Markdown
Collaborator Author

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>

Copy link
Copy Markdown
Member

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

Copy link
Copy Markdown
Collaborator Author

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>

Copy link
Copy Markdown
Member

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

Copy link
Copy Markdown
Collaborator Author

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>

Copy link
Copy Markdown
Member

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

Copy link
Copy Markdown
Collaborator Author

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>

Copy link
Copy Markdown
Member

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

Copy link
Copy Markdown
Collaborator Author

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>

Copy link
Copy Markdown
Member

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

Copy link
Copy Markdown
Collaborator Author

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>

Copy link
Copy Markdown
Member

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

Copy link
Copy Markdown
Collaborator Author

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>

Copy link
Copy Markdown
Member

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

Copy link
Copy Markdown
Collaborator Author

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>

Copy link
Copy Markdown
Member

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

Copy link
Copy Markdown
Collaborator Author

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>

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Core specific, please revert

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed.

@SteveL-MSFT Steve Lee (SteveL-MSFT) left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@daxian-dbw
Dongbo Wang (daxian-dbw) merged commit 3c59736 into PowerShell:master Sep 7, 2017
@iSazonov

Copy link
Copy Markdown
Collaborator Author

Steve Lee (@SteveL-MSFT) Thanks for fast review!

@iSazonov
Ilya (iSazonov) deleted the remove-windows-powershell branch September 8, 2017 03:57
Thatgfsj (Thatgfsj) pushed a commit to Thatgfsj/PowerShell that referenced this pull request Aug 6, 2026
…ell#4758)

Replace 'Windows PowerShell' with 'PowerShell' in '.resx' files where appropriate.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants