diff --git a/.github/policies/labelAdded.clBuildPackaging.addBackportConsider.yml b/.github/policies/labelAdded.clBuildPackaging.addBackportConsider.yml index 78edc18cb1a..31639ba5ddd 100644 --- a/.github/policies/labelAdded.clBuildPackaging.addBackportConsider.yml +++ b/.github/policies/labelAdded.clBuildPackaging.addBackportConsider.yml @@ -8,22 +8,7 @@ where: configuration: resourceManagementConfiguration: eventResponderTasks: - - description: Add BackPort-7.4.x-Consider when CL-BuildPackaging is added to open PR targeting master - if: - - payloadType: Pull_Request - - isOpen - - labelAdded: - label: CL-BuildPackaging - - targetsBranch: - branch: master - - not: - hasLabel: - label: BackPort-7.4.x-Consider - then: - - addLabel: - label: BackPort-7.4.x-Consider - - - description: Add BackPort-7.5.x-Consider when CL-BuildPackaging is added to open PR targeting master + - description: Add BackPort-7.6.x-Consider when CL-BuildPackaging is added to open PR targeting master if: - payloadType: Pull_Request - isOpen @@ -33,12 +18,12 @@ configuration: branch: master - not: hasLabel: - label: BackPort-7.5.x-Consider + label: BackPort-7.6.x-Consider then: - addLabel: - label: BackPort-7.5.x-Consider + label: BackPort-7.6.x-Consider - - description: Add BackPort-7.6.x-Consider when CL-BuildPackaging is added to open PR targeting master + - description: Add BackPort-7.7.x-Consider when CL-BuildPackaging is added to open PR targeting master if: - payloadType: Pull_Request - isOpen @@ -48,9 +33,9 @@ configuration: branch: master - not: hasLabel: - label: BackPort-7.6.x-Consider + label: BackPort-7.7.x-Consider then: - addLabel: - label: BackPort-7.6.x-Consider + label: BackPort-7.7.x-Consider onFailure: onSuccess: diff --git a/.github/workflows/linux-ci.yml b/.github/workflows/linux-ci.yml index 65c52ced095..e9a663ce082 100644 --- a/.github/workflows/linux-ci.yml +++ b/.github/workflows/linux-ci.yml @@ -46,7 +46,7 @@ jobs: changes: if: startsWith(github.repository_owner, 'azure') || github.repository_owner == 'PowerShell' name: Change Detection - runs-on: ubuntu-latest + runs-on: ubuntu-24.04 # Required permissions permissions: pull-requests: read @@ -71,7 +71,7 @@ jobs: merge_conflict_check: name: Check for Merge Conflict Markers - runs-on: ubuntu-latest + runs-on: ubuntu-24.04 if: github.event_name == 'pull_request' && (startsWith(github.repository_owner, 'azure') || github.repository_owner == 'PowerShell') permissions: pull-requests: read @@ -85,7 +85,7 @@ jobs: ci_build: name: Build PowerShell - runs-on: ubuntu-latest + runs-on: ubuntu-24.04 needs: changes if: ${{ needs.changes.outputs.source == 'true' || needs.changes.outputs.buildModuleChanged == 'true' }} steps: @@ -102,7 +102,7 @@ jobs: - ci_build - changes if: ${{ needs.changes.outputs.source == 'true' || needs.changes.outputs.buildModuleChanged == 'true' }} - runs-on: ubuntu-latest + runs-on: ubuntu-24.04 steps: - name: checkout uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 @@ -120,7 +120,7 @@ jobs: - ci_build - changes if: ${{ needs.changes.outputs.source == 'true' || needs.changes.outputs.buildModuleChanged == 'true' }} - runs-on: ubuntu-latest + runs-on: ubuntu-24.04 steps: - name: checkout uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 @@ -138,7 +138,7 @@ jobs: - ci_build - changes if: ${{ needs.changes.outputs.source == 'true' || needs.changes.outputs.buildModuleChanged == 'true' }} - runs-on: ubuntu-latest + runs-on: ubuntu-24.04 steps: - name: checkout uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 @@ -156,7 +156,7 @@ jobs: - ci_build - changes if: ${{ needs.changes.outputs.source == 'true' || needs.changes.outputs.buildModuleChanged == 'true' }} - runs-on: ubuntu-latest + runs-on: ubuntu-24.04 steps: - name: checkout uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 @@ -175,12 +175,12 @@ jobs: if: ${{ needs.changes.outputs.source == 'true' || needs.changes.outputs.buildModuleChanged == 'true' }} uses: ./.github/workflows/xunit-tests.yml with: - runner_os: ubuntu-latest + runner_os: ubuntu-24.04 test_results_artifact_name: testResults-xunit infrastructure_tests: name: Infrastructure Tests - runs-on: ubuntu-latest + runs-on: ubuntu-24.04 steps: - name: checkout uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 @@ -254,7 +254,7 @@ jobs: needs: - changes if: ${{ needs.changes.outputs.packagingChanged == 'true' }} - runs-on: ubuntu-latest + runs-on: ubuntu-24.04 steps: - name: checkout uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 diff --git a/.pipelines/MSIXBundle-vPack-Official.yml b/.pipelines/MSIXBundle-vPack-Official.yml index 420a96c3017..beee7f6bc8a 100644 --- a/.pipelines/MSIXBundle-vPack-Official.yml +++ b/.pipelines/MSIXBundle-vPack-Official.yml @@ -2,6 +2,10 @@ trigger: none pr: none parameters: # parameters are shown up in ADO UI in a build queue time +- name: UseEarlyAccessModules + displayName: Use early-access modules + type: boolean + default: false - name: 'createVPack' displayName: 'Create and Submit VPack' type: boolean @@ -46,6 +50,8 @@ parameters: # parameters are shown up in ADO UI in a build queue time name: msixbundle_vPack_$(Build.SourceBranchName)_Prod.True_Create.${{ parameters.createVPack }}_$(date:yyyyMMdd).$(rev:rr) variables: + - name: UseEarlyAccessModules + value: ${{ parameters.UseEarlyAccessModules }} - name: CDP_DEFINITION_BUILD_COUNT value: $[counter('', 0)] - name: system.debug @@ -268,9 +274,9 @@ extends: Write-Verbose -Verbose "Completed building PowerShell for '$env:BuildConfiguration' configuration" displayName: 'Build Windows Universal - $(Architecture)-$(BuildConfiguration) Symbols folder' env: + VSS_NUGET_EXTERNAL_FEED_ENDPOINTS: $(VSS_NUGET_EXTERNAL_FEED_ENDPOINTS) ${{ if eq(parameters.IsEarlyAccess, true) }}: __DOTNET_RUNTIME_FEED_KEY: $(RUNTIME_SOURCEFEED_KEY) - VSS_NUGET_EXTERNAL_FEED_ENDPOINTS: $(VSS_NUGET_EXTERNAL_FEED_ENDPOINTS) ob_restore_phase: true # Set ob_restore_phase to run this step before '🔒 Setup Signing' step. # Add CodeQL Finalize task right after your 'Build' step. diff --git a/.pipelines/NonOfficial/PowerShell-Coordinated_Packages-NonOfficial.yml b/.pipelines/NonOfficial/PowerShell-Coordinated_Packages-NonOfficial.yml index 353e2f6e854..387b28f72e2 100644 --- a/.pipelines/NonOfficial/PowerShell-Coordinated_Packages-NonOfficial.yml +++ b/.pipelines/NonOfficial/PowerShell-Coordinated_Packages-NonOfficial.yml @@ -1,6 +1,10 @@ trigger: none parameters: + - name: UseEarlyAccessModules + displayName: Use early-access modules + type: boolean + default: false - name: InternalSDKBlobURL displayName: URL to the blob having internal .NET SDK type: string @@ -65,6 +69,8 @@ resources: ref: refs/heads/main variables: + - name: UseEarlyAccessModules + value: ${{ parameters.UseEarlyAccessModules }} - template: /.pipelines/templates/variables/PowerShell-Coordinated_Packages-Variables.yml@self parameters: InternalSDKBlobURL: ${{ parameters.InternalSDKBlobURL }} diff --git a/.pipelines/NonOfficial/PowerShell-Packages-NonOfficial.yml b/.pipelines/NonOfficial/PowerShell-Packages-NonOfficial.yml index aa42fb19dac..c50e7eb0ead 100644 --- a/.pipelines/NonOfficial/PowerShell-Packages-NonOfficial.yml +++ b/.pipelines/NonOfficial/PowerShell-Packages-NonOfficial.yml @@ -1,6 +1,10 @@ trigger: none parameters: # parameters are shown up in ADO UI in a build queue time + - name: UseEarlyAccessModules + displayName: Use early-access modules + type: boolean + default: false - name: ForceAzureBlobDelete displayName: Delete Azure Blob type: string @@ -51,6 +55,8 @@ parameters: # parameters are shown up in ADO UI in a build queue time name: pkgs-$(BUILD.SOURCEBRANCHNAME)-nonofficial-$(Build.BuildId) variables: + - name: UseEarlyAccessModules + value: ${{ parameters.UseEarlyAccessModules }} - template: /.pipelines/templates/variables/PowerShell-Packages-Variables.yml@self parameters: debug: ${{ parameters.debug }} @@ -63,7 +69,7 @@ variables: resources: pipelines: - pipeline: CoOrdinatedBuildPipeline - source: 'PowerShell-Coordinated_Packages-NonOfficial' + source: 'PowerShell-Coordinated Binaries-NonOfficial' trigger: branches: include: diff --git a/.pipelines/NonOfficial/PowerShell-Release-Azure-NonOfficial.yml b/.pipelines/NonOfficial/PowerShell-Release-Azure-NonOfficial.yml index b0bb4d79b39..e4116c6421a 100644 --- a/.pipelines/NonOfficial/PowerShell-Release-Azure-NonOfficial.yml +++ b/.pipelines/NonOfficial/PowerShell-Release-Azure-NonOfficial.yml @@ -30,7 +30,7 @@ resources: pipelines: - pipeline: CoOrdinatedBuildPipeline - source: 'PowerShell-Coordinated_Packages-NonOfficial' + source: 'PowerShell-Coordinated Binaries-NonOfficial' - pipeline: PSPackagesOfficial source: 'PowerShell-Packages-NonOfficial' diff --git a/.pipelines/NonOfficial/PowerShell-Release-NonOfficial.yml b/.pipelines/NonOfficial/PowerShell-Release-NonOfficial.yml index c2d71b7a633..549528ec93b 100644 --- a/.pipelines/NonOfficial/PowerShell-Release-NonOfficial.yml +++ b/.pipelines/NonOfficial/PowerShell-Release-NonOfficial.yml @@ -1,6 +1,10 @@ trigger: none parameters: # parameters are shown up in ADO UI in a build queue time + - name: UseEarlyAccessModules + displayName: Use early-access modules + type: boolean + default: false - name: 'debug' displayName: 'Enable debug output' type: boolean @@ -52,6 +56,8 @@ parameters: # parameters are shown up in ADO UI in a build queue time name: release-$(BUILD.SOURCEBRANCHNAME)-nonofficial-$(Build.BuildId) variables: + - name: UseEarlyAccessModules + value: ${{ parameters.UseEarlyAccessModules }} - template: /.pipelines/templates/variables/PowerShell-Release-Variables.yml@self parameters: debug: ${{ parameters.debug }} @@ -70,7 +76,7 @@ resources: pipelines: - pipeline: CoOrdinatedBuildPipeline - source: 'PowerShell-Coordinated_Packages-NonOfficial' + source: 'PowerShell-Coordinated Binaries-NonOfficial' # NOTE: The alias name "PSPackagesOfficial" is intentionally reused here even # for the NonOfficial pipeline source. Downstream shared templates (for example, diff --git a/.pipelines/NonOfficial/PowerShell-vPack-NonOfficial.yml b/.pipelines/NonOfficial/PowerShell-vPack-NonOfficial.yml index 071db02cff8..3f2918fcacb 100644 --- a/.pipelines/NonOfficial/PowerShell-vPack-NonOfficial.yml +++ b/.pipelines/NonOfficial/PowerShell-vPack-NonOfficial.yml @@ -1,6 +1,10 @@ trigger: none parameters: # parameters are shown up in ADO UI in a build queue time +- name: UseEarlyAccessModules + displayName: Use early-access modules + type: boolean + default: false - name: 'createVPack' displayName: 'Create and Submit VPack' type: boolean @@ -33,6 +37,8 @@ parameters: # parameters are shown up in ADO UI in a build queue time name: vPack_$(Build.SourceBranchName)_NonOfficial_Create.${{ parameters.createVPack }}_Name.${{ parameters.vPackName}}_$(date:yyyyMMdd).$(rev:rr) variables: + - name: UseEarlyAccessModules + value: ${{ parameters.UseEarlyAccessModules }} - template: /.pipelines/templates/variables/PowerShell-vPack-Variables.yml@self parameters: debug: ${{ parameters.debug }} diff --git a/.pipelines/PowerShell-Coordinated_Packages-Official.yml b/.pipelines/PowerShell-Coordinated_Packages-Official.yml index 9fb94c4c208..4ca05df5d5b 100644 --- a/.pipelines/PowerShell-Coordinated_Packages-Official.yml +++ b/.pipelines/PowerShell-Coordinated_Packages-Official.yml @@ -1,6 +1,10 @@ trigger: none parameters: + - name: UseEarlyAccessModules + displayName: Use early-access modules + type: boolean + default: false - name: InternalSDKBlobURL displayName: URL to the blob having internal .NET SDK type: string @@ -65,6 +69,8 @@ resources: ref: refs/heads/main variables: + - name: UseEarlyAccessModules + value: ${{ parameters.UseEarlyAccessModules }} - template: templates/variables/PowerShell-Coordinated_Packages-Variables.yml parameters: InternalSDKBlobURL: ${{ parameters.InternalSDKBlobURL }} diff --git a/.pipelines/PowerShell-Packages-Official.yml b/.pipelines/PowerShell-Packages-Official.yml index d8223676e81..efe0f0501dd 100644 --- a/.pipelines/PowerShell-Packages-Official.yml +++ b/.pipelines/PowerShell-Packages-Official.yml @@ -1,6 +1,10 @@ trigger: none parameters: # parameters are shown up in ADO UI in a build queue time + - name: UseEarlyAccessModules + displayName: Use early-access modules + type: boolean + default: false - name: ForceAzureBlobDelete displayName: Delete Azure Blob type: string @@ -51,6 +55,8 @@ parameters: # parameters are shown up in ADO UI in a build queue time name: pkgs-$(BUILD.SOURCEBRANCHNAME)-prod-$(Build.BuildId) variables: + - name: UseEarlyAccessModules + value: ${{ parameters.UseEarlyAccessModules }} - template: templates/variables/PowerShell-Packages-Variables.yml parameters: debug: ${{ parameters.debug }} diff --git a/.pipelines/PowerShell-Release-Official.yml b/.pipelines/PowerShell-Release-Official.yml index 10ad7f7677a..4b0472475b7 100644 --- a/.pipelines/PowerShell-Release-Official.yml +++ b/.pipelines/PowerShell-Release-Official.yml @@ -1,6 +1,10 @@ trigger: none parameters: # parameters are shown up in ADO UI in a build queue time + - name: UseEarlyAccessModules + displayName: Use early-access modules + type: boolean + default: false - name: 'debug' displayName: 'Enable debug output' type: boolean @@ -52,6 +56,8 @@ parameters: # parameters are shown up in ADO UI in a build queue time name: release-$(BUILD.SOURCEBRANCHNAME)-prod-$(Build.BuildId) variables: + - name: UseEarlyAccessModules + value: ${{ parameters.UseEarlyAccessModules }} - template: templates/variables/PowerShell-Release-Variables.yml parameters: debug: ${{ parameters.debug }} diff --git a/.pipelines/PowerShell-vPack-Official.yml b/.pipelines/PowerShell-vPack-Official.yml index 8afdf11eef6..07f142f22b5 100644 --- a/.pipelines/PowerShell-vPack-Official.yml +++ b/.pipelines/PowerShell-vPack-Official.yml @@ -1,6 +1,10 @@ trigger: none parameters: # parameters are shown up in ADO UI in a build queue time +- name: UseEarlyAccessModules + displayName: Use early-access modules + type: boolean + default: false - name: 'createVPack' displayName: 'Create and Submit VPack' type: boolean @@ -53,6 +57,8 @@ parameters: # parameters are shown up in ADO UI in a build queue time name: vPack_$(Build.SourceBranchName)_Prod_Create.${{ parameters.createVPack }}_Name.${{ parameters.vPackName}}_$(date:yyyyMMdd).$(rev:rr) variables: + - name: UseEarlyAccessModules + value: ${{ parameters.UseEarlyAccessModules }} - template: templates/variables/PowerShell-vPack-Variables.yml parameters: debug: ${{ parameters.debug }} diff --git a/.pipelines/apiscan-gen-notice.yml b/.pipelines/apiscan-gen-notice.yml index 63786ada233..d9cacbf0097 100644 --- a/.pipelines/apiscan-gen-notice.yml +++ b/.pipelines/apiscan-gen-notice.yml @@ -4,6 +4,10 @@ name: apiscan-genNotice-$(BUILD.SOURCEBRANCHNAME)-$(Build.BuildId) trigger: none parameters: + - name: UseEarlyAccessModules + displayName: Use early-access modules + type: boolean + default: false - name: IsEarlyAccess type: boolean default: false @@ -30,6 +34,8 @@ parameters: default: false variables: + - name: UseEarlyAccessModules + value: ${{ parameters.UseEarlyAccessModules }} # PAT permissions NOTE: Declare a SymbolServerPAT variable in this group with a 'microsoft' organizanization scoped PAT with 'Symbols' Read permission. # A PAT in the wrong org will give a single Error 203. No PAT will give a single Error 401, and individual pdbs may be missing even if permissions are correct. - group: symbols diff --git a/.pipelines/templates/insert-nuget-config-azfeed.yml b/.pipelines/templates/insert-nuget-config-azfeed.yml index e724acb8659..131b396463c 100644 --- a/.pipelines/templates/insert-nuget-config-azfeed.yml +++ b/.pipelines/templates/insert-nuget-config-azfeed.yml @@ -17,18 +17,19 @@ steps: Import-Module ${{ parameters.repoRoot }}/build.psm1 -Force $earlyAccess = $env:ISEARLYACCESS -eq 'true' + $useEarlyAccessModules = $env:USEEARLYACCESSMODULES -eq 'true' Write-Verbose -Verbose "Is Early access: $earlyAccess" if (-not $earlyAccess) { Write-Verbose -Verbose "Running: Switch-PSNugetConfig -Source Private -UserName '$(AzDevopsFeedUserNameKVPAT)' -ClearTextPAT '$(powershellPackageReadPat)'" - Switch-PSNugetConfig -Source Private -UserName '$(AzDevopsFeedUserNameKVPAT)' -ClearTextPAT '$(powershellPackageReadPat)' + Switch-PSNugetConfig -Source Private -UseEarlyAccessModules:$useEarlyAccessModules -UserName '$(AzDevopsFeedUserNameKVPAT)' -ClearTextPAT '$(powershellPackageReadPat)' } else { Write-Verbose -Verbose "Running: Switch-PSNugetConfig -Source EarlyAccess (using Azure DevOps feed credentials from pipeline variables)" - Switch-PSNugetConfig -Source EarlyAccess -UserName '$(AzDevopsFeedUserNameKVPAT)' -ClearTextPAT '$(powershellPackageReadPat)' + Switch-PSNugetConfig -Source EarlyAccess -UseEarlyAccessModules:$useEarlyAccessModules -UserName '$(AzDevopsFeedUserNameKVPAT)' -ClearTextPAT '$(powershellPackageReadPat)' } if(-not (Test-Path $configPath)) @@ -41,7 +42,7 @@ steps: throw } displayName: 'Switch to production Azure DevOps feed for all nuget.configs' - condition: and(succeededOrFailed(), ne(variables['UseAzDevOpsFeed'], '')) + condition: and(succeededOrFailed(), or(ne(variables['UseAzDevOpsFeed'], ''), eq(variables['UseEarlyAccessModules'], 'true'))) env: NugetConfigDir: ${{ parameters.repoRoot }}/src/Modules ob_restore_phase: ${{ parameters.ob_restore_phase }} @@ -63,40 +64,37 @@ steps: Write-Host "##vso[task.setsecret]$azt" Write-Verbose -Verbose "Setting up Azure Artifacts Credential Provider token" - $earlyAccessFeed = '$(EARLY_ACCESS_FEED)' - $ADORepoUri = switch ($earlyAccessFeed) { + $powerShellRepoUri = 'https://pkgs.dev.azure.com/powershell/PowerShell/_packaging/PowerShell/nuget/v3/index.json' + $endpointCredentials = @( + @{ + endpoint = $powerShellRepoUri + username = '$(AzDevopsFeedUserNameKVPAT)' + password = '$(powershellPackageReadPat)' + } + ) + + if ($env:ISEARLYACCESS -eq 'true') { + $earlyAccessFeed = '$(EARLY_ACCESS_FEED)' + $ADORepoUri = switch ($earlyAccessFeed) { 'net8' { 'https://pkgs.dev.azure.com/powershell-rel/PowerShell/_packaging/powershell-net-8-early-access/nuget/v3/index.json' } 'net9' { 'https://pkgs.dev.azure.com/powershell-rel/PowerShell/_packaging/powershell-net-9-early-access/nuget/v3/index.json' } 'net10' { 'https://pkgs.dev.azure.com/powershell-rel/PowerShell/_packaging/powershell-net-10-early-access/nuget/v3/index.json' } 'net11' { 'https://pkgs.dev.azure.com/powershell-rel/PowerShell/_packaging/powershell-net-11-early-access/nuget/v3/index.json' } default { throw "Unknown early access feed URL: $earlyAccessFeed" } } - $powerShellRepoUri = 'https://pkgs.dev.azure.com/powershell/PowerShell/_packaging/PowerShell/nuget/v3/index.json' - - Write-Verbose -Verbose "ADORepoUri == $ADORepoUri" - - if ([string]::IsNullOrEmpty($ADORepoUri) -eq $false) - { - $endpointCredsObj = @{ endpointCredentials = @( - @{ endpoint = $ADORepoUri; password = $azt } - @{ - endpoint = $powerShellRepoUri - username = '$(AzDevopsFeedUserNameKVPAT)' - password = '$(powershellPackageReadPat)' - } - )} - $VSS_NUGET_EXTERNAL_FEED_ENDPOINTS = $endpointCredsObj | ConvertTo-Json -Compress - - Write-Verbose -Verbose "Setting VSS_NUGET_EXTERNAL_FEED_ENDPOINTS environment variable" - - Write-Host "##vso[task.setvariable variable=VSS_NUGET_EXTERNAL_FEED_ENDPOINTS;issecret=true]$VSS_NUGET_EXTERNAL_FEED_ENDPOINTS" + $endpointCredentials += @{ endpoint = $ADORepoUri; password = $azt } } - else - { - Write-Verbose -Verbose "EARLY_ACCESS_FEED_URL is not set" + + if ($env:USEEARLYACCESSMODULES -eq 'true') { + $moduleEarlyAccessRepoUri = 'https://pkgs.dev.azure.com/powershell-rel/PowerShell/_packaging/powershell-module-earlyaccess/nuget/v3/index.json' + $endpointCredentials += @{ endpoint = $moduleEarlyAccessRepoUri; password = $azt } } + + $endpointCredsObj = @{ endpointCredentials = $endpointCredentials } + $VSS_NUGET_EXTERNAL_FEED_ENDPOINTS = $endpointCredsObj | ConvertTo-Json -Compress + Write-Host "##vso[task.setvariable variable=VSS_NUGET_EXTERNAL_FEED_ENDPOINTS;issecret=true]$VSS_NUGET_EXTERNAL_FEED_ENDPOINTS" displayName: 'Setup Azure Artifacts Credential Provider secret' - condition: eq(variables['ISEARLYACCESS'], 'true') + condition: and(succeeded(), or(eq(variables['ISEARLYACCESS'], 'true'), eq(variables['UseEarlyAccessModules'], 'true'))) env: ob_restore_phase: ${{ parameters.ob_restore_phase }} diff --git a/.pipelines/templates/job/globaltool-pointer-job.yml b/.pipelines/templates/job/globaltool-pointer-job.yml new file mode 100644 index 00000000000..fca3283f120 --- /dev/null +++ b/.pipelines/templates/job/globaltool-pointer-job.yml @@ -0,0 +1,128 @@ +# Collects the RID-specific 'PowerShell' global tool nupkgs built in parallel (as matrix legs +# of ONE job, see job/globaltool-rid-job.yml), assembles the RID-agnostic pointer package (see +# New-GlobalToolPointerNupkgSource in tools/packaging/packaging.psm1), signs everything +# together, and publishes the full set as this job's own output. +# +# ob_artifactBaseName is set explicitly (rather than relying on OneBranch's auto-derived +# drop__ name) so uploadToAzure.yml's "Download nupkgs" step(s) can reference this +# artifact by a name that's guaranteed stable, instead of needing to match an undocumented +# naming convention. uploadToAzure.yml must download this artifact for these packages to reach +# the "globaltool/" folder in blob storage -- see its "Download global tool nupkgs" step. + +parameters: + - name: OfficialBuild + type: boolean + default: true + - name: Rids + type: object + +jobs: +- job: build_globaltool_pointer + displayName: 'Global tool pointer package' + # glbtool_rid is a single job definition that runs parallel matrix legs (one per RID); + # depending on its job name waits for every leg to finish, not just one. + dependsOn: glbtool_rid + condition: succeeded() + pool: + type: windows + + variables: + - name: ob_artifactBaseName + value: drop_nupkg_build_globaltool_pointer + - name: ps_official_build + value: ${{ parameters.OfficialBuild }} + - name: nugetMultiFeedWarnLevel + value: none + - name: NugetSecurityAnalysisWarningLevel + value: none + - name: skipNugetSecurityAnalysis + value: true + - name: ob_outputDirectory + value: '$(Build.ArtifactStagingDirectory)\ONEBRANCH_ARTIFACT' + - name: ob_sdl_binskim_enabled + value: true + - name: ob_sdl_tsa_configFile + value: $(Build.SourcesDirectory)\PowerShell\.config\tsaoptions.json + - name: ob_sdl_credscan_suppressionsFile + value: $(Build.SourcesDirectory)\PowerShell\.config\suppress.json + - group: mscodehub-feed-read-general + - group: mscodehub-feed-read-akv + - group: DotNetPrivateBuildAccess + - group: certificate_logical_to_actual + + steps: + - checkout: self + clean: true + env: + ob_restore_phase: true # This ensures checkout is done at the beginning of the restore phase + + - template: /.pipelines/templates/SetVersionVariables.yml@self + parameters: + ReleaseTagVar: $(ReleaseTagVar) + CreateJson: no + + - template: /.pipelines/templates/shouldSign.yml@self + + - template: /.pipelines/templates/cloneToOfficialPath.yml@self + parameters: + nativePathRoot: '$(Agent.TempDirectory)' + + - ${{ each rid in parameters.Rids }}: + - download: current + artifact: globaltool-rid-${{ rid }} + displayName: 'Download globaltool-rid-${{ rid }}' + env: + ob_restore_phase: true + + - template: /.pipelines/templates/install-dotnet.yml@self + + - pwsh: | + Import-Module -Name '$(PowerShellRoot)\build.psm1' + Import-Module -Name '$(PowerShellRoot)\tools\packaging' + Find-DotNet + + $rids = '${{ join(',', parameters.Rids) }}' -split ',' + $ridOutputPath = Join-Path -Path '$(Pipeline.Workspace)' -ChildPath 'globaltool-multirid' + New-Item -Path $ridOutputPath -ItemType Directory -Force | Out-Null + + # Gather each RID's nupkg (built and signed independently by its own parallel job) into one folder. + $missing = @() + foreach ($rid in $rids) { + $downloaded = Get-ChildItem -Path "$(Pipeline.Workspace)/globaltool-rid-$rid" -Filter "PowerShell.$rid.*.nupkg" -Recurse -ErrorAction SilentlyContinue | Select-Object -First 1 + if (-not $downloaded) { + $missing += $rid + continue + } + Copy-Item -Path $downloaded.FullName -Destination $ridOutputPath -Force -Verbose + } + if ($missing) { + throw "Missing PowerShell global tool RID package(s): $($missing -join ', ')" + } + + New-GlobalToolPointerNupkgSource -PackageVersion '$(Version)' -RuntimeIdentifiers $rids -SkipCGManifest + New-GlobalToolNupkgFromSource -PackageNuSpecPath "$global:GlobalToolNuSpecSourcePath" -PackageName "$global:GlobalToolPkgName" -DestinationPath $ridOutputPath + $global:GlobalToolNuSpecSourcePath = $null + $global:GlobalToolPkgName = $null + displayName: 'Create PowerShell global tool pointer package' + + - task: onebranch.pipeline.signing@1 + displayName: Sign PowerShell global tool RID nupkg files + inputs: + command: 'sign' + cp_code: '$(nuget_cert_id)' + files_to_sign: '**\*.nupkg' + search_root: '$(Pipeline.Workspace)\globaltool-multirid' + + - pwsh: | + if (-not (Test-Path '$(ob_outputDirectory)')) { + New-Item -ItemType Directory -Path '$(ob_outputDirectory)' -Force + } + + Write-Verbose -Verbose "Copying PowerShell global tool (RID-specific) packages to output directory" + $ridToolOutputPath = Join-Path -Path '$(Pipeline.Workspace)' -ChildPath 'globaltool-multirid' + Get-ChildItem -Path $ridToolOutputPath -Filter *.nupkg -Recurse | Copy-Item -Destination '$(ob_outputDirectory)' -Force -Verbose + displayName: Copy artifacts to output directory + + - pwsh: | + Get-ChildItem -Path '$(ob_outputDirectory)' | Out-String | Write-Verbose -Verbose + displayName: List artifacts diff --git a/.pipelines/templates/job/globaltool-ref-assemblies.yml b/.pipelines/templates/job/globaltool-ref-assemblies.yml new file mode 100644 index 00000000000..2c360892031 --- /dev/null +++ b/.pipelines/templates/job/globaltool-ref-assemblies.yml @@ -0,0 +1,185 @@ +# Builds and signs the reference assemblies shared by the single-file IL nupkgs (built in +# nupkg.yml's build_nupkg job) and every RID-specific 'PowerShell' global tool package (built in +# job/globaltool-rid-job.yml). This used to run inline inside build_nupkg, which forced every +# consumer to wait for build_nupkg's full, long, sequential job before it could even start. +# Extracting it into its own small job lets build_nupkg and all 8 per-RID global tool jobs +# depend on just this one job and then run concurrently afterward. +# +# OneBranch pipelines don't allow the 'publish'/PublishPipelineArtifact step -- OneBranch +# automatically publishes each job's ob_outputDirectory as that job's own artifact at the end of +# the job (named via ob_artifactBaseName, same pattern as packaging/windows/package.yml's +# ob_artifactBaseName + sign.yml's matching 'download: current'). So the signed ref assemblies +# are copied into ob_outputDirectory here instead of being 'published' explicitly. + +jobs: +- job: build_ref_assemblies + displayName: 'Build reference assemblies' + condition: succeeded() + pool: + type: windows + + variables: + - name: ob_artifactBaseName + value: GlobalToolRefAssembly + - name: nugetMultiFeedWarnLevel + value: none + - name: NugetSecurityAnalysisWarningLevel + value: none + - name: skipNugetSecurityAnalysis + value: true + - name: ob_outputDirectory + value: '$(Build.ArtifactStagingDirectory)\ONEBRANCH_ARTIFACT' + - name: ob_sdl_binskim_enabled + value: true + - name: ob_sdl_tsa_configFile + value: $(Build.SourcesDirectory)\PowerShell\.config\tsaoptions.json + - name: ob_sdl_credscan_suppressionsFile + value: $(Build.SourcesDirectory)\PowerShell\.config\suppress.json + - group: mscodehub-feed-read-general + - group: mscodehub-feed-read-akv + - group: DotNetPrivateBuildAccess + - group: certificate_logical_to_actual + + steps: + - checkout: self + clean: true + env: + ob_restore_phase: true # This ensures checkout is done at the beginning of the restore phase + + - template: /.pipelines/templates/SetVersionVariables.yml@self + parameters: + ReleaseTagVar: $(ReleaseTagVar) + CreateJson: no + + - template: /.pipelines/templates/shouldSign.yml@self + + - template: /.pipelines/templates/cloneToOfficialPath.yml@self + parameters: + nativePathRoot: '$(Agent.TempDirectory)' + + - template: /.pipelines/templates/insert-nuget-config-azfeed.yml@self + parameters: + repoRoot: $(PowerShellRoot) + + - template: /.pipelines/templates/install-dotnet.yml@self + + - pwsh: | + Set-Location -Path '$(PowerShellRoot)' + Import-Module "$(PowerShellRoot)/build.psm1" -Force + + # Locates a project's generated reference assembly (obj/.../refint/.dll) or XML doc + # comment file (bin/.../.xml) by searching recursively instead of assuming a fixed + # "obj/Release/net11.0/refint/.dll" path. Different SDK versions can insert an extra + # path segment (e.g. a RID folder) between the TFM and "refint" for a project built as + # part of a RID-specific publish graph, which made the previous hardcoded path brittle. + # For .dll lookups, only the immediate parent folder is required to be named "refint"; + # otherwise this just returns the first/only match under $SearchRoot. + function Find-GeneratedFile { + param( + [Parameter(Mandatory)] [string] $SearchRoot, + [Parameter(Mandatory)] [string] $FileName, + [string] $RequiredParentFolderName + ) + + if (-not (Test-Path $SearchRoot)) { + return $null + } + + $candidates = Get-ChildItem -Path $SearchRoot -Filter $FileName -Recurse -File -ErrorAction SilentlyContinue + if ($RequiredParentFolderName) { + $candidates = $candidates | Where-Object { $_.Directory.Name -eq $RequiredParentFolderName } + } + + return $candidates | Select-Object -First 1 + } + + $sharedModules = @('Microsoft.PowerShell.Commands.Management', + 'Microsoft.PowerShell.Commands.Utility', + 'Microsoft.PowerShell.ConsoleHost', + 'Microsoft.PowerShell.Security', + 'System.Management.Automation' + ) + + $winOnlyModules = @('Microsoft.Management.Infrastructure.CimCmdlets', + 'Microsoft.PowerShell.Commands.Diagnostics', + 'Microsoft.PowerShell.CoreCLR.Eventing', + 'Microsoft.WSMan.Management', + 'Microsoft.WSMan.Runtime' + ) + + $refAssemblyFolder = Join-Path '$(System.ArtifactsDirectory)' 'RefAssembly' + $null = New-Item -Path $refAssemblyFolder -Force -Verbose -Type Directory + + Start-PSBuild -Clean -Runtime linux-x64 -Configuration Release -ReleaseTag $(ReleaseTagVar) + + $sharedModules | Foreach-Object { + $moduleName = $_ + $objRoot = "$(PowerShellRoot)\src\$moduleName\obj\Release" + $refFile = Find-GeneratedFile -SearchRoot $objRoot -FileName "$moduleName.dll" -RequiredParentFolderName 'refint' + if (-not $refFile) { + Write-Verbose -Verbose "Reference assembly for $moduleName not found under $objRoot. Dumping obj tree for diagnostics:" + Get-ChildItem -Path $objRoot -Recurse -File -ErrorAction SilentlyContinue | Select-Object -ExpandProperty FullName | Write-Verbose -Verbose + throw "Reference assembly for $moduleName was not found under $objRoot (expected a 'refint\$moduleName.dll')." + } + Write-Verbose -Verbose "RefAssembly: $($refFile.FullName)" + Copy-Item -Path $refFile.FullName -Destination "$refAssemblyFolder\$moduleName.dll" -Verbose + + $binRoot = "$(PowerShellRoot)\src\$moduleName\bin\Release" + $refDoc = Find-GeneratedFile -SearchRoot $binRoot -FileName "$moduleName.xml" + if (-not $refDoc) { + Write-Warning "$moduleName.xml not found under $binRoot" + Get-ChildItem -Path $binRoot -Recurse -File -ErrorAction SilentlyContinue | Select-Object -ExpandProperty FullName | Out-String | Write-Verbose -Verbose + } + else { + Copy-Item -Path $refDoc.FullName -Destination "$refAssemblyFolder\$moduleName.xml" -Verbose + } + } + + Start-PSBuild -Clean -Runtime win7-x64 -Configuration Release -ReleaseTag $(ReleaseTagVar) + + $winOnlyModules | Foreach-Object { + $moduleName = $_ + $objRoot = "$(PowerShellRoot)\src\$moduleName\obj\Release" + $refFile = Find-GeneratedFile -SearchRoot $objRoot -FileName "$moduleName.dll" -RequiredParentFolderName 'refint' + if (-not $refFile) { + Write-Verbose -Verbose "Reference assembly for $moduleName not found under $objRoot. Dumping obj tree for diagnostics:" + Get-ChildItem -Path $objRoot -Recurse -File -ErrorAction SilentlyContinue | Select-Object -ExpandProperty FullName | Write-Verbose -Verbose + throw "Reference assembly for $moduleName was not found under $objRoot (expected a 'refint\$moduleName.dll')." + } + Write-Verbose -Verbose "RefAssembly: $($refFile.FullName)" + Copy-Item -Path $refFile.FullName -Destination "$refAssemblyFolder\$moduleName.dll" -Verbose + + $binRoot = "$(PowerShellRoot)\src\$moduleName\bin\Release" + $refDoc = Find-GeneratedFile -SearchRoot $binRoot -FileName "$moduleName.xml" + if (-not $refDoc) { + Write-Warning "$moduleName.xml not found under $binRoot" + Get-ChildItem -Path $binRoot -Recurse -File -ErrorAction SilentlyContinue | Select-Object -ExpandProperty FullName | Out-String | Write-Verbose -Verbose + } + else { + Copy-Item -Path $refDoc.FullName -Destination "$refAssemblyFolder\$moduleName.xml" -Verbose + } + } + + Get-ChildItem $refAssemblyFolder -Recurse | Out-String | Write-Verbose -Verbose + displayName: Build reference assemblies + env: + __DOTNET_RUNTIME_FEED_KEY: $(RUNTIME_SOURCEFEED_KEY) + VSS_NUGET_EXTERNAL_FEED_ENDPOINTS: $(VSS_NUGET_EXTERNAL_FEED_ENDPOINTS) + + - task: onebranch.pipeline.signing@1 + displayName: Sign ref assemblies + inputs: + command: 'sign' + signing_profile: external_distribution + files_to_sign: '**\*.dll' + search_root: '$(System.ArtifactsDirectory)\RefAssembly' + + # OneBranch disallows the 'publish'/PublishPipelineArtifact step ("Onebranch automatically + # upload binaries at the end of the job"). Copy into ob_outputDirectory instead; OneBranch + # publishes its contents as this job's own artifact, named via ob_artifactBaseName above. + - pwsh: | + if (-not (Test-Path '$(ob_outputDirectory)')) { + New-Item -ItemType Directory -Path '$(ob_outputDirectory)' -Force + } + Copy-Item -Path '$(System.ArtifactsDirectory)\RefAssembly\*' -Destination '$(ob_outputDirectory)' -Recurse -Force -Verbose + displayName: 'Copy GlobalToolRefAssembly to output directory' diff --git a/.pipelines/templates/job/globaltool-rid-job.yml b/.pipelines/templates/job/globaltool-rid-job.yml new file mode 100644 index 00000000000..e6f34c733c4 --- /dev/null +++ b/.pipelines/templates/job/globaltool-rid-job.yml @@ -0,0 +1,124 @@ +# Runs the build/sign/pack recipe for every RID of the RID-specific 'PowerShell' global tool +# (see ../step/globaltool-rid-pack.yml) as ONE job definition with a matrix strategy, instead of +# one fully-expanded job block per RID. Using a matrix keeps the compiled pipeline YAML small +# (the step list is defined once; ADO spins up a separate parallel job run per matrix leg at +# runtime) -- instantiating this template 8 times with 8 separate job blocks previously pushed +# the overall pipeline past OneBranch's "Maximum object size exceeded" compiled-YAML limit. +# +# Each matrix leg depends only on build_ref_assemblies (for the shared signed ref assemblies) +# and the CoOrdinatedBuildPipeline artifact containing its platform's Modules folder, so all +# can start and run concurrently as soon as those are ready, independent of build_nupkg's +# unrelated work. +# +# The resulting signed nupkg is published as this job's own artifact (globaltool-rid-, +# named via ob_artifactBaseName since OneBranch disallows the 'publish' step and instead +# auto-publishes each job's ob_outputDirectory -- see job/globaltool-ref-assemblies.yml for the +# same pattern) for job/globaltool-pointer-job.yml to collect once every RID has finished. +# Downstream jobs that need all RIDs to finish should use `dependsOn: glbtool_rid` (the single +# job name below) -- ADO waits for every matrix leg of a job before a dependent job starts. + +parameters: + - name: OfficialBuild + type: boolean + default: true + - name: Rids + type: object + +jobs: +- job: glbtool_rid + displayName: 'Global tool' + dependsOn: build_ref_assemblies + condition: succeeded() + pool: + type: windows + + strategy: + matrix: + ${{ each rid in parameters.Rids }}: + ${{ replace(rid, '-', '_') }}: + rid: ${{ rid }} + ${{ if startsWith(rid, 'win-') }}: + modulesArtifact: drop_windows_build_windows_fxdependent_release + ${{ else }}: + modulesArtifact: drop_linux_sign_linux_fxd + + variables: + - name: ob_artifactBaseName + value: globaltool-rid-$(rid) + - name: ps_official_build + value: ${{ parameters.OfficialBuild }} + - name: nugetMultiFeedWarnLevel + value: none + - name: NugetSecurityAnalysisWarningLevel + value: none + - name: skipNugetSecurityAnalysis + value: true + - name: ob_outputDirectory + value: '$(Build.ArtifactStagingDirectory)\ONEBRANCH_ARTIFACT' + - name: ob_sdl_binskim_enabled + value: true + - name: ob_sdl_tsa_configFile + value: $(Build.SourcesDirectory)\PowerShell\.config\tsaoptions.json + - name: ob_sdl_credscan_suppressionsFile + value: $(Build.SourcesDirectory)\PowerShell\.config\suppress.json + - group: mscodehub-feed-read-general + - group: mscodehub-feed-read-akv + - group: DotNetPrivateBuildAccess + - group: certificate_logical_to_actual + + steps: + - checkout: self + clean: true + env: + ob_restore_phase: true # This ensures checkout is done at the beginning of the restore phase + + - template: /.pipelines/templates/SetVersionVariables.yml@self + parameters: + ReleaseTagVar: $(ReleaseTagVar) + CreateJson: no + + - template: /.pipelines/templates/shouldSign.yml@self + + - template: /.pipelines/templates/cloneToOfficialPath.yml@self + parameters: + nativePathRoot: '$(Agent.TempDirectory)' + + - download: CoOrdinatedBuildPipeline + artifact: $(modulesArtifact) + displayName: 'Download modules artifact' + env: + ob_restore_phase: true + + - download: current + artifact: GlobalToolRefAssembly + displayName: 'Download GlobalToolRefAssembly' + env: + ob_restore_phase: true + + - template: /.pipelines/templates/insert-nuget-config-azfeed.yml@self + parameters: + repoRoot: $(PowerShellRoot) + + - template: /.pipelines/templates/install-dotnet.yml@self + + - template: /.pipelines/templates/step/globaltool-rid-pack.yml@self + parameters: + Rid: $(rid) + ModulesSourcePath: '$(Pipeline.Workspace)\CoOrdinatedBuildPipeline\$(modulesArtifact)\Signed-fxdependent\Modules' + RefAssemblyPath: '$(Pipeline.Workspace)\GlobalToolRefAssembly' + + # OneBranch disallows the 'publish'/PublishPipelineArtifact step ("Onebranch automatically + # upload binaries at the end of the job"). Copy into ob_outputDirectory instead; OneBranch + # publishes its contents as this job's own artifact, named via ob_artifactBaseName above + # (globaltool-rid-, resolved per matrix leg). + - pwsh: | + $rid = '$(rid)' + $nupkg = Get-ChildItem -Path '$(Pipeline.Workspace)/globaltool-multirid' -Filter "PowerShell.$rid.*.nupkg" | Select-Object -First 1 + if (-not $nupkg) { + throw "Expected PowerShell.$rid nupkg not found in $(Pipeline.Workspace)/globaltool-multirid" + } + if (-not (Test-Path '$(ob_outputDirectory)')) { + New-Item -ItemType Directory -Path '$(ob_outputDirectory)' -Force + } + Copy-Item -Path $nupkg.FullName -Destination '$(ob_outputDirectory)' -Force -Verbose + displayName: 'Copy nupkg to output directory' diff --git a/.pipelines/templates/nupkg.yml b/.pipelines/templates/nupkg.yml index 3f48829ae2a..9409634f5ec 100644 --- a/.pipelines/templates/nupkg.yml +++ b/.pipelines/templates/nupkg.yml @@ -1,11 +1,30 @@ +parameters: + - name: OfficialBuild + type: boolean + default: true + - name: GlobalToolRids + type: object + default: + - win-x64 + - win-arm64 + - linux-x64 + - linux-arm + - linux-arm64 + - linux-musl-x64 + - osx-x64 + - osx-arm64 + jobs: - job: build_nupkg displayName: Package NuPkgs + dependsOn: build_ref_assemblies condition: succeeded() pool: type: windows variables: + - name: ps_official_build + value: ${{ parameters.OfficialBuild }} - name: nugetMultiFeedWarnLevel value: none - name: NugetSecurityAnalysisWarningLevel @@ -72,6 +91,19 @@ jobs: env: ob_restore_phase: true # This ensures this done in restore phase to workaround signing issue + - download: current + artifact: GlobalToolRefAssembly + displayName: 'Download GlobalToolRefAssembly' + env: + ob_restore_phase: true # This ensures this done in restore phase to workaround signing issue + + - pwsh: | + $refAssemblyFolder = Join-Path '$(Pipeline.Workspace)' 'GlobalToolRefAssembly' + Write-Host "##vso[task.setvariable variable=RefAssemblyPath]${refAssemblyFolder}" + displayName: 'Set RefAssemblyPath variable' + env: + ob_restore_phase: true # This ensures this done in restore phase to workaround signing issue + - pwsh: | Write-Verbose -Verbose "drop_windows_build_windows_fxdependent_release" Get-ChildItem -Path $(Pipeline.Workspace)\CoOrdinatedBuildPipeline\drop_windows_build_windows_fxdependent_release -Recurse | Out-String | Write-Verbose -Verbose @@ -94,78 +126,6 @@ jobs: - template: /.pipelines/templates/install-dotnet.yml@self - - pwsh: | - Set-Location -Path '$(PowerShellRoot)' - Import-Module "$(PowerShellRoot)/build.psm1" -Force - - $sharedModules = @('Microsoft.PowerShell.Commands.Management', - 'Microsoft.PowerShell.Commands.Utility', - 'Microsoft.PowerShell.ConsoleHost', - 'Microsoft.PowerShell.Security', - 'System.Management.Automation' - ) - - $winOnlyModules = @('Microsoft.Management.Infrastructure.CimCmdlets', - 'Microsoft.PowerShell.Commands.Diagnostics', - 'Microsoft.PowerShell.CoreCLR.Eventing', - 'Microsoft.WSMan.Management', - 'Microsoft.WSMan.Runtime' - ) - - $refAssemblyFolder = Join-Path '$(System.ArtifactsDirectory)' 'RefAssembly' - $null = New-Item -Path $refAssemblyFolder -Force -Verbose -Type Directory - - Start-PSBuild -Clean -Runtime linux-x64 -Configuration Release -ReleaseTag $(ReleaseTagVar) - - $sharedModules | Foreach-Object { - $refFile = Get-ChildItem -Path "$(PowerShellRoot)\src\$_\obj\Release\net11.0\refint\$_.dll" - Write-Verbose -Verbose "RefAssembly: $refFile" - Copy-Item -Path $refFile -Destination "$refAssemblyFolder\$_.dll" -Verbose - $refDoc = "$(PowerShellRoot)\src\$_\bin\Release\net11.0\$_.xml" - if (-not (Test-Path $refDoc)) { - Write-Warning "$refDoc not found" - Get-ChildItem -Path "$(PowerShellRoot)\src\$_\bin\Release\net11.0\" | Out-String | Write-Verbose -Verbose - } - else { - Copy-Item -Path $refDoc -Destination "$refAssemblyFolder\$_.xml" -Verbose - } - } - - Start-PSBuild -Clean -Runtime win7-x64 -Configuration Release -ReleaseTag $(ReleaseTagVar) - - $winOnlyModules | Foreach-Object { - $refFile = Get-ChildItem -Path "$(PowerShellRoot)\src\$_\obj\Release\net11.0\refint\*.dll" - Write-Verbose -Verbose 'RefAssembly: $refFile' - Copy-Item -Path $refFile -Destination "$refAssemblyFolder\$_.dll" -Verbose - $refDoc = "$(PowerShellRoot)\src\$_\bin\Release\net11.0\$_.xml" - if (-not (Test-Path $refDoc)) { - Write-Warning "$refDoc not found" - Get-ChildItem -Path "$(PowerShellRoot)\src\$_\bin\Release\net11.0" | Out-String | Write-Verbose -Verbose - } - else { - Copy-Item -Path $refDoc -Destination "$refAssemblyFolder\$_.xml" -Verbose - } - } - - Get-ChildItem $refAssemblyFolder -Recurse | Out-String | Write-Verbose -Verbose - - # Set RefAssemblyPath path variable - $vstsCommandString = "vso[task.setvariable variable=RefAssemblyPath]${refAssemblyFolder}" - Write-Host "sending " + $vstsCommandString - Write-Host "##$vstsCommandString" - displayName: Build reference assemblies - env: - __DOTNET_RUNTIME_FEED_KEY: $(RUNTIME_SOURCEFEED_KEY) - VSS_NUGET_EXTERNAL_FEED_ENDPOINTS: $(VSS_NUGET_EXTERNAL_FEED_ENDPOINTS) - - - task: onebranch.pipeline.signing@1 - displayName: Sign ref assemblies - inputs: - command: 'sign' - signing_profile: external_distribution - files_to_sign: '**\*.dll' - search_root: '$(System.ArtifactsDirectory)\RefAssembly' - - pwsh: | $files = @( "Microsoft.Management.Infrastructure.CimCmdlets.dll" @@ -242,7 +202,10 @@ jobs: $alpineFxdPath = "$(Pipeline.Workspace)\CoOrdinatedBuildPipeline\drop_linux_sign_linux_fxd_x64_alpine\Signed-fxdependent-noopt-linux-musl-x64" # Build global tools which do not have the shims exe generated in build. - $packageTypes = @('Unified', 'PowerShell.Linux.Alpine', 'PowerShell.Linux.x64', 'PowerShell.Linux.arm32', 'PowerShell.Linux.arm64') + # NOTE: the "PowerShell" (Unified) global tool package is now built and packed via + # 'dotnet pack' from src/GlobalTools/PowerShell using RID-specific tool packaging, + # replacing the Microsoft.PowerShell.GlobalTool.Shim-based package previously created here. + $packageTypes = @('PowerShell.Linux.Alpine', 'PowerShell.Linux.x64', 'PowerShell.Linux.arm32', 'PowerShell.Linux.arm64') $packageTypes | Foreach-Object { $PackageType = $_ @@ -298,3 +261,25 @@ jobs: $nupkgOutputPath = '$(ob_outputDirectory)' Get-ChildItem -Path $nupkgOutputPath | Out-String | Write-Verbose -Verbose displayName: List artifacts + +### The jobs below build the RID-specific 'PowerShell' global tool. They are split out from +### build_nupkg into their own jobs so this work doesn't serialize behind (or duplicate) +### build_nupkg's unrelated steps. globaltool-rid-job.yml uses a matrix strategy, so all +### supported RIDs build/sign/pack concurrently as parallel runs of ONE job definition -- +### using a separate job block per RID here previously pushed the compiled pipeline YAML past +### OneBranch's "Maximum object size exceeded" limit. +### See job/globaltool-ref-assemblies.yml, job/globaltool-rid-job.yml, and +### job/globaltool-pointer-job.yml for details. +### GlobalToolRids drives both the build matrix and the pointer package's artifact collection. + +- template: /.pipelines/templates/job/globaltool-ref-assemblies.yml@self + +- template: /.pipelines/templates/job/globaltool-rid-job.yml@self + parameters: + OfficialBuild: ${{ parameters.OfficialBuild }} + Rids: ${{ parameters.GlobalToolRids }} + +- template: /.pipelines/templates/job/globaltool-pointer-job.yml@self + parameters: + OfficialBuild: ${{ parameters.OfficialBuild }} + Rids: ${{ parameters.GlobalToolRids }} diff --git a/.pipelines/templates/release-MakeBlobPublic.yml b/.pipelines/templates/release-MakeBlobPublic.yml index 758298202a1..2164beca8c3 100644 --- a/.pipelines/templates/release-MakeBlobPublic.yml +++ b/.pipelines/templates/release-MakeBlobPublic.yml @@ -51,6 +51,29 @@ jobs: Get-ChildItem Env: displayName: 'Capture Environment Variables' + - pwsh: | + Write-Host 'Available Az.Accounts and Az.Storage modules before installation:' + $availableModules = Get-Module -Name Az.Accounts, Az.Storage -ListAvailable | + Sort-Object Name, Version -Descending | + Select-Object Name, Version, ModuleBase + if ($availableModules) { + $availableModules | Format-Table -AutoSize | Out-String -Width 9999 | Write-Host + } else { + Write-Host 'No Az.Accounts or Az.Storage modules are available.' + } + + $repositoryName = 'PowerShellGalleryMirror' + $repositorySourceLocation = 'https://pkgs.dev.azure.com/powershell/PowerShell/_packaging/PowerShellGalleryMirror/nuget/v2' + Unregister-PSRepository -Name $repositoryName -ErrorAction Ignore + Register-PSRepository -Name $repositoryName -SourceLocation $repositorySourceLocation -InstallationPolicy Trusted -ErrorAction Stop + + $registeredSourceLocation = (Get-PSRepository -Name $repositoryName -ErrorAction Stop).SourceLocation + if ($registeredSourceLocation.TrimEnd('/') -ne $repositorySourceLocation.TrimEnd('/')) { + throw "Repository '$repositoryName' has unexpected source location '$registeredSourceLocation'." + } + Install-Module -Repository $repositoryName -Name Az.Storage -RequiredVersion 9.7.2 -Scope CurrentUser -Force -ErrorAction Stop + displayName: Install Az.Storage 9.7.2 + - task: AzurePowerShell@5 displayName: Copy blobs to PSInfra storage inputs: @@ -59,6 +82,8 @@ jobs: azurePowerShellVersion: LatestVersion pwsh: true inline: | + Import-Module Az.Storage -RequiredVersion 9.7.2 -ErrorAction Stop + $sourceStorageAccountName = '$(StorageAccount)' $destinationStorageAccountName = '$(PSInfraStorageAccount)' $destinationContainerName = '$web' @@ -137,6 +162,29 @@ jobs: Get-ChildItem Env: | Out-String -width 9999 -Stream | write-Verbose -Verbose displayName: 'Capture Environment Variables' + - pwsh: | + Write-Host 'Available Az.Accounts and Az.Storage modules before installation:' + $availableModules = Get-Module -Name Az.Accounts, Az.Storage -ListAvailable | + Sort-Object Name, Version -Descending | + Select-Object Name, Version, ModuleBase + if ($availableModules) { + $availableModules | Format-Table -AutoSize | Out-String -Width 9999 | Write-Host + } else { + Write-Host 'No Az.Accounts or Az.Storage modules are available.' + } + + $repositoryName = 'PowerShellGalleryMirror' + $repositorySourceLocation = 'https://pkgs.dev.azure.com/powershell/PowerShell/_packaging/PowerShellGalleryMirror/nuget/v2' + Unregister-PSRepository -Name $repositoryName -ErrorAction Ignore + Register-PSRepository -Name $repositoryName -SourceLocation $repositorySourceLocation -InstallationPolicy Trusted -ErrorAction Stop + + $registeredSourceLocation = (Get-PSRepository -Name $repositoryName -ErrorAction Stop).SourceLocation + if ($registeredSourceLocation.TrimEnd('/') -ne $repositorySourceLocation.TrimEnd('/')) { + throw "Repository '$repositoryName' has unexpected source location '$registeredSourceLocation'." + } + Install-Module -Repository $repositoryName -Name Az.Storage -RequiredVersion 9.7.2 -Scope CurrentUser -Force -ErrorAction Stop + displayName: Install Az.Storage 9.7.2 + - task: AzurePowerShell@5 displayName: Copy blobs to PSInfra storage inputs: @@ -145,6 +193,8 @@ jobs: azurePowerShellVersion: LatestVersion pwsh: true inline: | + Import-Module Az.Storage -RequiredVersion 9.7.2 -ErrorAction Stop + $sourceStorageAccountName = '$(StorageAccount)' $sourceContainerName = '$(AzureVersion)-nuget' $prefix = 'globaltool' diff --git a/.pipelines/templates/release-upload-buildinfo.yml b/.pipelines/templates/release-upload-buildinfo.yml index 9e3d6a6accb..fe9541d65ce 100644 --- a/.pipelines/templates/release-upload-buildinfo.yml +++ b/.pipelines/templates/release-upload-buildinfo.yml @@ -116,6 +116,29 @@ jobs: } displayName: Create json files + - pwsh: | + Write-Host 'Available Az.Accounts and Az.Storage modules before installation:' + $availableModules = Get-Module -Name Az.Accounts, Az.Storage -ListAvailable | + Sort-Object Name, Version -Descending | + Select-Object Name, Version, ModuleBase + if ($availableModules) { + $availableModules | Format-Table -AutoSize | Out-String -Width 9999 | Write-Host + } else { + Write-Host 'No Az.Accounts or Az.Storage modules are available.' + } + + $repositoryName = 'PowerShellGalleryMirror' + $repositorySourceLocation = 'https://pkgs.dev.azure.com/powershell/PowerShell/_packaging/PowerShellGalleryMirror/nuget/v2' + Unregister-PSRepository -Name $repositoryName -ErrorAction Ignore + Register-PSRepository -Name $repositoryName -SourceLocation $repositorySourceLocation -InstallationPolicy Trusted -ErrorAction Stop + + $registeredSourceLocation = (Get-PSRepository -Name $repositoryName -ErrorAction Stop).SourceLocation + if ($registeredSourceLocation.TrimEnd('/') -ne $repositorySourceLocation.TrimEnd('/')) { + throw "Repository '$repositoryName' has unexpected source location '$registeredSourceLocation'." + } + Install-Module -Repository $repositoryName -Name Az.Storage -RequiredVersion 9.7.2 -Scope CurrentUser -Force -ErrorAction Stop + displayName: Install Az.Storage 9.7.2 + - task: AzurePowerShell@5 displayName: Upload buildjson to blob inputs: @@ -124,6 +147,8 @@ jobs: azurePowerShellVersion: LatestVersion pwsh: true inline: | + Import-Module Az.Storage -RequiredVersion 9.7.2 -ErrorAction Stop + $containerName = '$web' $storageAccount = '$(PSInfraStorageAccount)' $prefix = "buildinfo" diff --git a/.pipelines/templates/stages/PowerShell-Packages-Stages.yml b/.pipelines/templates/stages/PowerShell-Packages-Stages.yml index 3e2dde75797..1b54945b9d4 100644 --- a/.pipelines/templates/stages/PowerShell-Packages-Stages.yml +++ b/.pipelines/templates/stages/PowerShell-Packages-Stages.yml @@ -221,6 +221,8 @@ stages: dependsOn: [EarlyDotnet] jobs: - template: /.pipelines/templates/nupkg.yml@self + parameters: + OfficialBuild: ${{ parameters.OfficialBuild }} - stage: msixbundle displayName: 'MSIX Bundle+Sign' diff --git a/.pipelines/templates/stages/PowerShell-vPack-Stages.yml b/.pipelines/templates/stages/PowerShell-vPack-Stages.yml index bf493192b81..fc24eb21c54 100644 --- a/.pipelines/templates/stages/PowerShell-vPack-Stages.yml +++ b/.pipelines/templates/stages/PowerShell-vPack-Stages.yml @@ -249,8 +249,7 @@ stages: displayName: Build Windows Universal - $(Architecture) -$(BuildConfiguration) Symbols folder env: __DOTNET_RUNTIME_FEED_KEY: $(RUNTIME_SOURCEFEED_KEY) - ${{ if eq(parameters.IsEarlyAccess, true) }}: - VSS_NUGET_EXTERNAL_FEED_ENDPOINTS: $(VSS_NUGET_EXTERNAL_FEED_ENDPOINTS) + VSS_NUGET_EXTERNAL_FEED_ENDPOINTS: $(VSS_NUGET_EXTERNAL_FEED_ENDPOINTS) ob_restore_phase: true # Set ob_restore_phase to run this step before '🔒 Setup Signing' step. - task: CodeQL3000Finalize@0 # Add CodeQL Finalize task right after your 'Build' step. diff --git a/.pipelines/templates/step/globaltool-rid-pack.yml b/.pipelines/templates/step/globaltool-rid-pack.yml new file mode 100644 index 00000000000..9071c1e7a2a --- /dev/null +++ b/.pipelines/templates/step/globaltool-rid-pack.yml @@ -0,0 +1,222 @@ +# DRAFT template - publish/pack steps have been validated against a real pipeline run; the +# cross-RID PowerShell.SDK build and OneBranch non-Windows signing risks below are still open. +# +# Publishes, signs, and packs ONE RID-specific sub-package of the RID-specific 'PowerShell' +# global tool (src/GlobalTools/PowerShell/PowerShell.csproj). This generalizes the existing, +# working "Pack Windows.x64 global tool" recipe in windows-hosted-build.yml (publish -> sign the +# publish output in place -> sign the handful of obj files pack needs -> 'dotnet pack -r +# --no-build' -> inject signed Gallery modules/ref assemblies/powershell.config.json -> re-zip) +# to every RID supported by the consolidated project, instead of one dedicated project per RID. +# +# Instantiated once per RID, as a step block inside its own job (see +# ../job/globaltool-rid-job.yml), so all RIDs build/sign/pack in parallel instead of as +# sequential steps in nupkg.yml's single 'build_nupkg' job. +# +# Prerequisites expected from the calling job (see job/globaltool-rid-job.yml): +# - $(PowerShellRoot), $(Version), $(ReleaseTagVar), $(ps_official_build) pipeline variables +# already set, and the CoOrdinatedBuildPipeline Modules artifact + GlobalToolRefAssembly +# artifact already downloaded (RefAssemblyPath points at the latter). +# - The .NET SDK pinned in global.json has been installed onto disk by an earlier step +# (e.g. install-dotnet.yml's Install-Dotnet call). Each step below calls Find-Dotnet itself +# to put it on PATH, since PATH/DOTNET_ROOT changes do not persist across pipeline steps +# (each step is a separate process) -- this bit a first draft of this template, which +# assumed Find-Dotnet from an earlier step would still apply and failed with "A compatible +# .NET SDK was not found" on 'dotnet publish'. +# - certificate_logical_to_actual / DotNetPrivateBuildAccess variable groups are in scope +# (required by obp-file-signing.yml and the nuget_cert_id signing task, same as elsewhere +# in this file). +# +# Known open risks / TODO before relying on this in production: +# - Confirm 'dotnet publish -r ' / 'dotnet pack -r --no-build', run on a Windows +# agent for linux-*/osx-* RIDs, correctly restores every native asset. This was validated +# for a trivial console tool in a local spike (cross-OS framework-dependent publish worked +# fine from Windows), but has not been validated against the full PowerShell.SDK project +# graph. +# - Confirm OneBranch signing accepts non-Windows binaries signed from this pool. The existing +# Sign_Linux_* and Sign_Package_macOS_* jobs already do this successfully for the "regular" +# pwsh binaries via the same onebranch.pipeline.signing@1 task and 'type: windows' pool, so +# this is expected to work the same way here -- but verify end to end. +# - Confirm the obj-folder "essential files" allowlist (apphost stub, dll, pdb, +# project.assets.json) is correct for every RID; Windows.x64 established this list, but the +# apphost stub file name may differ for non-Windows RIDs (no '.exe' extension). + +parameters: + Rid: '' # e.g. 'win-x64', 'linux-arm64', 'osx-arm64' + ModulesSourcePath: '' # folder containing the Gallery modules to inject (PowerShellGet, PSReadLine, etc.) + RefAssemblyPath: '$(RefAssemblyPath)' + ArtifactsRoot: '$(Pipeline.Workspace)/globaltool-multirid-artifacts' + OutputPath: '$(Pipeline.Workspace)/globaltool-multirid' + +steps: +- pwsh: | + # Each pipeline step runs in its own process, so PATH/DOTNET_ROOT changes made by + # Find-Dotnet in an earlier step (e.g. install-dotnet.yml) do not carry over here -- + # every step that invokes 'dotnet' directly must call Find-Dotnet itself first. + Import-Module -Name '$(PowerShellRoot)/build.psm1' -Force + Find-DotNet + + $rid = '${{ parameters.Rid }}' + $projDir = Join-Path '$(PowerShellRoot)' 'src' 'GlobalTools' 'PowerShell' + $artifactsPath = Join-Path '${{ parameters.ArtifactsRoot }}' $rid + + if ($env:RELEASETAGVAR) { + $ReleaseTagToUse = $env:RELEASETAGVAR -Replace '^v' + } + + Push-Location $projDir + try { + # src/GlobalTools/PowerShell references System.Management.Automation and + # Microsoft.PowerShell.CoreCLR.Eventing, both of which need source files generated from + # resx/dependency-list inputs before they'll compile (DotNetEventingStrings.cs via + # ResGen, CorePsTypeCatalog.cs via TypeGen). Start-PSBuild normally handles this as a side + # effect for the "regular" pwsh build, but this project is published directly without + # going through Start-PSBuild, on a fresh checkout that has never generated these files, + # so they must be produced explicitly first. + Write-Verbose -Verbose "Restoring PowerShell global tool for RID: $rid" + dotnet restore .\PowerShell.csproj -r $rid + if ($LASTEXITCODE -ne 0) { throw "dotnet restore failed for RID $rid" } + + Write-Verbose -Verbose "Running ResGen and TypeGen" + Start-ResGen + Start-TypeGen + + Write-Verbose -Verbose "Publishing PowerShell global tool for RID: $rid" + dotnet publish -r $rid --no-self-contained --artifacts-path $artifactsPath /property:PackageVersion=$(Version) --configuration Release /property:ReleaseTag=$ReleaseTagToUse + if ($LASTEXITCODE -ne 0) { throw "dotnet publish failed for RID $rid" } + } + finally { + Pop-Location + } + + # Only a handful of obj-folder files are needed later by 'dotnet pack --no-build'. + # NOTE: the obj/publish folder itself is still named "PowerShell" (the artifacts-output + # project-name folder is based on the project file name, unaffected by AssemblyName), but + # the assembly/pdb filenames inside it are "pwsh.*" since PowerShell.csproj sets + # AssemblyName=pwsh (see that file for why). + $objDir = Join-Path $artifactsPath 'obj' 'PowerShell' "release_$rid" + $filesToKeep = @('apphost', 'apphost.exe', 'pwsh.pdb', 'pwsh.dll', 'project.assets.json') + Get-ChildItem -Path $objDir -File -Recurse | + Where-Object { $_.Name -notin $filesToKeep } | + Remove-Item -Verbose -ErrorAction Stop + displayName: 'Publish PowerShell global tool (${{ parameters.Rid }})' + env: + __DOTNET_RUNTIME_FEED_KEY: $(RUNTIME_SOURCEFEED_KEY) + VSS_NUGET_EXTERNAL_FEED_ENDPOINTS: $(VSS_NUGET_EXTERNAL_FEED_ENDPOINTS) + +- pwsh: | + # obp-file-signing.yml's "Prepare files to be signed" step branches on $(ArtifactPlatform) + # at runtime (checked via plain string comparison, not a template parameter) to decide + # whether to include Windows-only files (pwsh.exe, CimCmdlets/WSMan DLLs, and several + # Diagnostics/WSMan/PSDiagnostics module files) in the first-party signing set. Every other + # caller (windows-hosted-build.yml, linux.yml's build job) sets this before calling that + # template; this step was missing here, so for win-x64/win-arm64 specifically, pwsh.exe and + # the CIM/WSMan DLLs were silently excluded from signing. + $rid = '${{ parameters.Rid }}' + $platform = if ($rid -like 'win*') { 'windows' } elseif ($rid -like 'osx*') { 'macos' } else { 'linux' } + Write-Host "##vso[task.setvariable variable=ArtifactPlatform]$platform" + displayName: 'Set artifact platform (${{ parameters.Rid }})' + +- template: /.pipelines/templates/obp-file-signing.yml@self + parameters: + binPath: '${{ parameters.ArtifactsRoot }}/${{ parameters.Rid }}/publish/PowerShell/release_${{ parameters.Rid }}' + globalTool: 'true' + OfficialBuild: $(ps_official_build) + +- task: onebranch.pipeline.signing@1 + displayName: 'Sign PowerShell global tool obj files (${{ parameters.Rid }})' + inputs: + command: 'sign' + signing_profile: external_distribution + files_to_sign: '**\*.dll;**\*.exe;**\pwsh' + search_root: '${{ parameters.ArtifactsRoot }}/${{ parameters.Rid }}/obj/PowerShell/release_${{ parameters.Rid }}' + +- pwsh: | + # See the note in the 'Publish' step above: PATH changes from Find-Dotnet do not + # persist across pipeline steps, so it must be called again here too. + Import-Module -Name '$(PowerShellRoot)/build.psm1' -Force + Find-DotNet + + $rid = '${{ parameters.Rid }}' + $projDir = Join-Path '$(PowerShellRoot)' 'src' 'GlobalTools' 'PowerShell' + $artifactsPath = Join-Path '${{ parameters.ArtifactsRoot }}' $rid + $outputPath = '${{ parameters.OutputPath }}' + New-Item -ItemType Directory -Path $outputPath -Force | Out-Null + + if ($env:RELEASETAGVAR) { + $ReleaseTagToUse = $env:RELEASETAGVAR -Replace '^v' + } + + Push-Location $projDir + try { + Write-Verbose -Verbose "Packing PowerShell global tool for RID: $rid" + dotnet pack -r $rid --no-build --output $outputPath --artifacts-path $artifactsPath /property:PackageVersion=$(Version) /property:PackageIcon=Powershell_64.png /property:Version=$(Version) /property:ReleaseTag=$ReleaseTagToUse + if ($LASTEXITCODE -ne 0) { throw "dotnet pack failed for RID $rid" } + } + finally { + Pop-Location + } + + # Same "unzip nupkg, inject signed Gallery modules/ref assemblies, strip pdbs/content, + # re-zip" post-processing used for the Windows.x64 global tool package. + $nupkg = Get-ChildItem -Path $outputPath -Filter "PowerShell.$rid.*.nupkg" | Select-Object -First 1 + if (-not $nupkg) { throw "Expected PowerShell.$rid nupkg not found in $outputPath" } + + $zipPath = $nupkg.FullName -replace '\.nupkg$', '.zip' + Rename-Item -Path $nupkg.FullName -NewName (Split-Path $zipPath -Leaf) + + $expandPath = Join-Path $outputPath "$rid-temp" + Expand-Archive -Path $zipPath -DestinationPath $expandPath -Force + + # Discover the actual TFM folder name (e.g. "net10.0") instead of hardcoding it: this + # literally was "net11.0" until this exact line caused a build failure when this project's + # TargetFramework (PowerShell.csproj) and this branch's pinned SDK/TFM were bumped back down + # to net10.0 without updating the hardcoded path strings below in lockstep. A RID-specific + # tool sub-package has exactly one TFM folder under "tools/", so this is reliable. + $tfmFolder = Get-ChildItem -Path (Join-Path $expandPath 'tools') -Directory | Select-Object -First 1 -ExpandProperty Name + if (-not $tfmFolder) { throw "Could not determine the TFM folder under $expandPath\tools" } + + $modulesToCopy = @('PowerShellGet', 'PackageManagement', 'Microsoft.PowerShell.PSResourceGet', 'Microsoft.PowerShell.Archive', 'PSReadLine', 'Microsoft.PowerShell.ThreadJob') + $destModulesPath = Join-Path $expandPath 'tools' $tfmFolder $rid 'modules' + $modulesSourcePath = '${{ parameters.ModulesSourcePath }}' + $modulesToCopy | ForEach-Object { + $modulePath = Join-Path $modulesSourcePath $_ + if (Test-Path $modulePath) { + Copy-Item -Path $modulePath -Destination $destModulesPath -Recurse -Force + } else { + Write-Warning "Module not found, skipping: $modulePath" + } + } + + $refAssemblyPath = '${{ parameters.RefAssemblyPath }}' + if (Test-Path $refAssemblyPath) { + Copy-Item -Path $refAssemblyPath -Destination (Join-Path $expandPath 'tools' $tfmFolder $rid 'ref') -Recurse -Force + } + + $contentPath = Join-Path $expandPath 'content' + $contentFilesPath = Join-Path $expandPath 'contentFiles' + Remove-Item -Path $contentPath, $contentFilesPath -Recurse -Force -ErrorAction SilentlyContinue + Remove-Item -Path (Join-Path $expandPath 'tools' $tfmFolder $rid '*.pdb') -Recurse -Force -ErrorAction SilentlyContinue + + # Generate powershell.config.json, matching Start-PSBuild's own logic in build.psm1 + # (Execution Policy and the Windows PowerShell compatibility feature are only + # supported/relevant on Windows RIDs). + $config = [ordered]@{} + if ($rid -like 'win*') { + $config.Add('Microsoft.PowerShell:ExecutionPolicy', 'RemoteSigned') + $config.Add('WindowsPowerShellCompatibilityModuleDenyList', @('PSScheduledJob', 'BestPractices', 'UpdateServices')) + } + if ($config.Count -gt 0) { + $configPath = Join-Path $expandPath 'tools' $tfmFolder $rid 'powershell.config.json' + Set-Content -Path $configPath -Value ($config | ConvertTo-Json) -Force -ErrorAction Stop + } + + Compress-Archive -Path "$expandPath\*" -DestinationPath $nupkg.FullName -Force + Remove-Item -Path $expandPath -Recurse -Force + Remove-Item -Path $zipPath -Force + + if (-not (Test-Path $nupkg.FullName)) { + throw "Global tool package not found at $($nupkg.FullName)" + } + displayName: 'Pack PowerShell global tool (${{ parameters.Rid }})' + env: + VSS_NUGET_EXTERNAL_FEED_ENDPOINTS: $(VSS_NUGET_EXTERNAL_FEED_ENDPOINTS) diff --git a/.pipelines/templates/uploadToAzure.yml b/.pipelines/templates/uploadToAzure.yml index 45ed7c1fd3f..cabb0d60437 100644 --- a/.pipelines/templates/uploadToAzure.yml +++ b/.pipelines/templates/uploadToAzure.yml @@ -160,6 +160,14 @@ jobs: targetPath: '$(Build.ArtifactStagingDirectory)/downloads' displayName: Download nupkgs + - task: DownloadPipelineArtifact@2 + inputs: + buildType: 'current' + artifact: drop_nupkg_build_globaltool_pointer + itemPattern: '**/*.nupkg' + targetPath: '$(Build.ArtifactStagingDirectory)/downloads' + displayName: Download RID-specific global tool nupkgs + - task: DownloadPipelineArtifact@2 inputs: buildType: 'current' diff --git a/.spelling b/.spelling index cc711f0aa5a..33d30e273d5 100644 --- a/.spelling +++ b/.spelling @@ -1698,7 +1698,6 @@ Start-PSBootStrap precheck SKUs powershell.config.json -Microsoft.PowerShell.GlobalTool.Shim.csproj InvokeCommand UseDotNet vmImage diff --git a/CHANGELOG/v7.8/dependencychanges.json b/CHANGELOG/v7.8/dependencychanges.json new file mode 100644 index 00000000000..8e530967690 --- /dev/null +++ b/CHANGELOG/v7.8/dependencychanges.json @@ -0,0 +1,15 @@ +[ + { + "ChangeType": "NonSecurity", + "Branch": "master", + "PackageId": ".NET SDK", + "FromVersion": "11.0.100-rc.1.26425.128", + "ToVersion": "11.0.100", + "VulnerabilityId": [], + "Severity": [], + "VulnerableRanges": [], + "AdvisoryUrls": [], + "Justification": "Updated .NET SDK. Building with the latest SDK is required.", + "TimestampUtc": "2026-11-11T20:10:35.9037590Z" + } +] diff --git a/DotnetRuntimeMetadata.json b/DotnetRuntimeMetadata.json index a5af54d876a..3cfd1283a3f 100644 --- a/DotnetRuntimeMetadata.json +++ b/DotnetRuntimeMetadata.json @@ -4,7 +4,7 @@ "quality": "daily", "qualityFallback": "preview", "packageVersionPattern": "9.0.0-preview.6", - "sdkImageVersion": "11.0.100-rc.1.26425.128", + "sdkImageVersion": "11.0.100", "nextChannel": "9.0.0-preview.7", "azureFeed": "", "sdkImageOverride": "" diff --git a/build.psm1 b/build.psm1 index bcf625e681e..af677aa6b72 100644 --- a/build.psm1 +++ b/build.psm1 @@ -695,7 +695,6 @@ Fix steps: Push-Location $Options.Top if ($Options.Runtime -notlike 'fxdependent*' -or $Options.Runtime -match $optimizedFddRegex) { - Write-Verbose "Building without shim" -Verbose $sdkToUse = 'Microsoft.NET.Sdk' if (($Options.Runtime -like 'win7-*' -or $Options.Runtime -eq 'win-arm64') -and !$ForMinimalSize) { ## WPF/WinForm and the PowerShell GraphicalHost assemblies are included @@ -709,9 +708,6 @@ Fix steps: Start-NativeExecution { dotnet $Arguments } Write-Log -message "PowerShell output: $($Options.Output)" } else { - Write-Verbose "Building with shim" -Verbose - $globalToolSrcFolder = Resolve-Path (Join-Path $Options.Top "../Microsoft.PowerShell.GlobalTool.Shim") | Select-Object -ExpandProperty Path - if ($Options.Runtime -eq 'fxdependent' -or $Options.Runtime -eq 'fxdependent-noopt-linux-musl-x64') { $Arguments += "/property:SDKToUse=Microsoft.NET.Sdk" } elseif ($Options.Runtime -eq 'fxdependent-win-desktop') { @@ -721,25 +717,6 @@ Fix steps: Write-Log -message "Run dotnet $Arguments from $PWD" Start-NativeExecution { dotnet $Arguments } Write-Log -message "PowerShell output: $($Options.Output)" - - try { - Push-Location $globalToolSrcFolder - - if ($Options.Runtime -like 'fxdependent*') { - if ($Arguments -contains '/property:UseAppHost=true') { - $Arguments = @($Arguments | Where-Object { $_ -notlike '/property:UseAppHost=true' }) - } - } - - if ($Arguments -notcontains '--output') { - $Arguments += "--output", $publishPath - } - Write-Log -message "Run dotnet $Arguments from $PWD to build global tool entry point" - Start-NativeExecution { dotnet $Arguments } - } - finally { - Pop-Location - } } } finally { Pop-Location @@ -900,13 +877,17 @@ Fix steps: function Switch-PSNugetConfig { <# .SYNOPSIS - Switches the NuGet configuration between public, private, and NuGet.org-only sources. + Switches the NuGet configuration between public, private, NuGet.org-only, and early-access sources. .DESCRIPTION Regenerates nuget.config files in the repository root, src/Modules, and test/tools/Modules to point to the specified feed source. Optionally stores authenticated credentials. .PARAMETER Source The feed set to activate: 'Public' (nuget.org + dotnet feed), 'Private' (PowerShell ADO - feed), or 'NuGetOnly' (nuget.org only). + feed), 'NuGetOnly' (nuget.org only), or 'EarlyAccess' (.NET early-access + feed, with the PowerShell feed for released modules). + .PARAMETER UseEarlyAccessModules + Adds the internal module early-access feed for bundled modules independently + of the .NET feed selected by Source. .PARAMETER UserName Username for authenticated private feed access. .PARAMETER ClearTextPAT @@ -922,7 +903,9 @@ function Switch-PSNugetConfig { [string] $UserName, [Parameter(Mandatory = $true, ParameterSetName = 'user')] - [string] $ClearTextPAT + [string] $ClearTextPAT, + + [switch] $UseEarlyAccessModules ) Clear-PipelineNugetAuthentication @@ -938,19 +921,18 @@ function Switch-PSNugetConfig { $dotnetSdk = [NugetPackageSource] @{Url = 'https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet9/nuget/v2'; Name = 'dotnet' } $gallery = [NugetPackageSource] @{Url = 'https://www.powershellgallery.com/api/v2/'; Name = 'psgallery' } $nugetorg = [NugetPackageSource] @{Url = 'https://api.nuget.org/v3/index.json'; Name = 'nuget.org' } + $moduleSource = $gallery if ( $Source -eq 'Public') { New-NugetConfigFile -NugetPackageSource $nugetorg, $dotnetSdk -Destination "$PSScriptRoot/" @extraParams - New-NugetConfigFile -NugetPackageSource $gallery -Destination "$PSScriptRoot/src/Modules/" @extraParams New-NugetConfigFile -NugetPackageSource $gallery -Destination "$PSScriptRoot/test/tools/Modules/" @extraParams } elseif ( $Source -eq 'NuGetOnly') { New-NugetConfigFile -NugetPackageSource $nugetorg -Destination "$PSScriptRoot/" @extraParams - New-NugetConfigFile -NugetPackageSource $gallery -Destination "$PSScriptRoot/src/Modules/" @extraParams New-NugetConfigFile -NugetPackageSource $gallery -Destination "$PSScriptRoot/test/tools/Modules/" @extraParams } elseif ( $Source -eq 'Private') { $powerShellPackages = [NugetPackageSource] @{Url = 'https://pkgs.dev.azure.com/powershell/PowerShell/_packaging/PowerShell/nuget/v3/index.json'; Name = 'powershell' } + $moduleSource = $powerShellPackages New-NugetConfigFile -NugetPackageSource $powerShellPackages -Destination "$PSScriptRoot/" @extraParams - New-NugetConfigFile -NugetPackageSource $powerShellPackages -Destination "$PSScriptRoot/src/Modules/" @extraParams New-NugetConfigFile -NugetPackageSource $powerShellPackages -Destination "$PSScriptRoot/test/tools/Modules/" @extraParams } elseif ($Source -eq 'EarlyAccess') { $earlyAccess = $env:EARLY_ACCESS_FEED @@ -967,14 +949,22 @@ function Switch-PSNugetConfig { $earlyAccessFeed = [NugetPackageSource] @{Url = $earlyAccessFeedUrl; Name = 'earlyaccess' } $powerShellPackages = [NugetPackageSource] @{Url = 'https://pkgs.dev.azure.com/powershell/PowerShell/_packaging/PowerShell/nuget/v3/index.json'; Name = 'powershell' } + $moduleSource = $powerShellPackages New-NugetConfigFile -NugetPackageSource $earlyAccessFeed -Destination "$PSScriptRoot/" - New-NugetConfigFile -NugetPackageSource $powerShellPackages -Destination "$PSScriptRoot/src/Modules/" @extraParams New-NugetConfigFile -NugetPackageSource $powerShellPackages -Destination "$PSScriptRoot/test/tools/Modules/" @extraParams } else { throw "Unknown source: $Source" } + if ($UseEarlyAccessModules) { + $moduleEarlyAccessFeed = [NugetPackageSource] @{Url = 'https://pkgs.dev.azure.com/powershell-rel/PowerShell/_packaging/powershell-module-earlyaccess/nuget/v3/index.json'; Name = 'module-earlyaccess' } + # Credentials for moduleSource are registered by the test module configuration above. + New-NugetConfigFile -NugetPackageSource $moduleEarlyAccessFeed, $moduleSource -Destination "$PSScriptRoot/src/Modules/" + } else { + New-NugetConfigFile -NugetPackageSource $moduleSource -Destination "$PSScriptRoot/src/Modules/" @extraParams + } + if ($UserName -or $ClearTextPAT) { Set-PipelineNugetAuthentication } @@ -1070,10 +1060,6 @@ function Restore-PSPackage if (-not $ProjectDirs) { $ProjectDirs = @($Options.Top, "$PSScriptRoot/src/TypeCatalogGen", "$PSScriptRoot/src/ResGen", "$PSScriptRoot/src/Modules", "$PSScriptRoot/tools/wix") - - if ($Options.Runtime -like 'fxdependent*') { - $ProjectDirs += "$PSScriptRoot/src/Microsoft.PowerShell.GlobalTool.Shim" - } } if ($Force -or (-not (Test-Path "$($Options.Top)/obj/project.assets.json"))) { @@ -1676,6 +1662,10 @@ function Publish-PSTestTools { # Publish the Microsoft.PowerShell.NamedPipeConnection module Publish-CustomConnectionTestModule + + # Build intermediates are not needed to run tests and must not be included in test packages. + Get-ChildItem -Path "$PSScriptRoot/test" -Directory -Recurse -Filter 'obj' | + Remove-Item -Recurse -Force Write-LogGroupEnd -Title "Publish-PSTestTools" } diff --git a/docs/building/internals.md b/docs/building/internals.md index 2f55b6eb762..14c4c9a0c2d 100644 --- a/docs/building/internals.md +++ b/docs/building/internals.md @@ -28,6 +28,35 @@ it should be listed as a dependency for `$Top` folder (`src\powershell-unix` or ## Preliminary steps +### Bundled modules and early-access feeds + +The package references in [`PSGalleryModules.csproj`](../../src/Modules/PSGalleryModules.csproj) +select the bundled module versions. Their restore sources are configured in +[`src/Modules/nuget.config`](../../src/Modules/nuget.config), not in the project file. + +`Switch-PSNugetConfig -Source Private -UseEarlyAccessModules` enables the +`powershell-module-earlyaccess` Azure Artifacts feed alongside the existing PowerShell +feed for released modules. The `UseEarlyAccessModules` switch is independent of +the .NET feed selected by `Source` and can be used with any source mode. +Without the switch, bundled modules use only the normal module source. +For public source modes, the normal module source is PowerShell Gallery. +Update a module's package-reference version to consume an internal version. +Internal versions should be distinct from released versions because NuGet caches packages by ID and version. + +In Azure Pipelines, enable the `UseEarlyAccessModules` build parameter (default: `false`). +This does not require `IsEarlyAccess`, `EARLY_ACCESS_FEED`, or an early-access .NET SDK. +The flags can also be enabled together. The shared +[`insert-nuget-config-azfeed.yml`](../../.pipelines/templates/insert-nuget-config-azfeed.yml) +template installs the Azure Artifacts Credential Provider and supplies an Azure DevOps +access token through the secret `VSS_NUGET_EXTERNAL_FEED_ENDPOINTS` variable. +Build steps must explicitly map this secret variable into their `env` block, +including module-only builds; Azure Pipelines does not automatically export secret variables. +The `powershell-net-early-access` service connection identity must have read access +to the module feed. The existing PowerShell feed continues to use its separate PAT. +For local restores, install the Azure Artifacts Credential Provider and use +`Restore-PSPackage -ProjectDirs .\src\Modules -PSModule -Force -InteractiveAuth` +with an identity that has read access to both feeds. + ### ResGen Until the .NET CLI `dotnet-resgen` tool supports the generation of strongly typed resource access classes diff --git a/global.json b/global.json index 4ad40687f24..99e219021f2 100644 --- a/global.json +++ b/global.json @@ -1,5 +1,5 @@ { "sdk": { - "version": "11.0.100-rc.1.26425.128" + "version": "11.0.100" } } diff --git a/src/GlobalTools/PowerShell/PowerShell.csproj b/src/GlobalTools/PowerShell/PowerShell.csproj new file mode 100644 index 00000000000..3aea56d6bb3 --- /dev/null +++ b/src/GlobalTools/PowerShell/PowerShell.csproj @@ -0,0 +1,84 @@ + + + + Exe + net11.0 + enable + enable + true + + win-x64;win-arm64;linux-x64;linux-arm;linux-arm64;linux-musl-x64;osx-x64;osx-arm64 + pwsh + + pwsh + PowerShell + $(PackageVersion) + + true + true + ../../signing/visualstudiopublic.snk + + + + + $(DefineConstants);UNIX + true + + + + + + + + + + + Modules\%(RecursiveDir)\%(FileName)%(Extension) + PreserveNewest + PreserveNewest + + + + + + + Modules\%(RecursiveDir)\%(FileName)%(Extension) + PreserveNewest + PreserveNewest + + + + + + + + + + + + + + + diff --git a/src/Microsoft.PowerShell.Commands.Diagnostics/Microsoft.PowerShell.Commands.Diagnostics.csproj b/src/Microsoft.PowerShell.Commands.Diagnostics/Microsoft.PowerShell.Commands.Diagnostics.csproj index ed8bbcdc04a..cb8d5d534fe 100644 --- a/src/Microsoft.PowerShell.Commands.Diagnostics/Microsoft.PowerShell.Commands.Diagnostics.csproj +++ b/src/Microsoft.PowerShell.Commands.Diagnostics/Microsoft.PowerShell.Commands.Diagnostics.csproj @@ -8,7 +8,7 @@ - + diff --git a/src/Microsoft.PowerShell.Commands.Management/Microsoft.PowerShell.Commands.Management.csproj b/src/Microsoft.PowerShell.Commands.Management/Microsoft.PowerShell.Commands.Management.csproj index 91f1cc80880..4d784812444 100644 --- a/src/Microsoft.PowerShell.Commands.Management/Microsoft.PowerShell.Commands.Management.csproj +++ b/src/Microsoft.PowerShell.Commands.Management/Microsoft.PowerShell.Commands.Management.csproj @@ -12,7 +12,7 @@ - + diff --git a/src/Microsoft.PowerShell.Commands.Utility/Microsoft.PowerShell.Commands.Utility.csproj b/src/Microsoft.PowerShell.Commands.Utility/Microsoft.PowerShell.Commands.Utility.csproj index 9b262dd801e..a6ec9aa3c9e 100644 --- a/src/Microsoft.PowerShell.Commands.Utility/Microsoft.PowerShell.Commands.Utility.csproj +++ b/src/Microsoft.PowerShell.Commands.Utility/Microsoft.PowerShell.Commands.Utility.csproj @@ -8,13 +8,13 @@ - + - + diff --git a/src/Microsoft.PowerShell.Commands.Utility/resources/AddTypeStrings.resx b/src/Microsoft.PowerShell.Commands.Utility/resources/AddTypeStrings.resx index c0374e4d1d2..2cd9ce0c04a 100644 --- a/src/Microsoft.PowerShell.Commands.Utility/resources/AddTypeStrings.resx +++ b/src/Microsoft.PowerShell.Commands.Utility/resources/AddTypeStrings.resx @@ -155,5 +155,6 @@ Add-Type cmdlet will not be allowed in ConstrainedLanguage mode. + {StrContains="Add-Type"}{StrContains="ConstrainedLanguage"} diff --git a/src/Microsoft.PowerShell.Commands.Utility/resources/ImportLocalizedDataStrings.resx b/src/Microsoft.PowerShell.Commands.Utility/resources/ImportLocalizedDataStrings.resx index 8fc6474c99e..880b55fc6dd 100644 --- a/src/Microsoft.PowerShell.Commands.Utility/resources/ImportLocalizedDataStrings.resx +++ b/src/Microsoft.PowerShell.Commands.Utility/resources/ImportLocalizedDataStrings.resx @@ -148,5 +148,6 @@ Additional supported commands (via SupportedCommand parameter) will not be allowed in ConstrainedLanguage mode. + {StrContains="SupportedCommand"}{StrContains="ConstrainedLanguage"} diff --git a/src/Microsoft.PowerShell.Commands.Utility/resources/NewObjectStrings.resx b/src/Microsoft.PowerShell.Commands.Utility/resources/NewObjectStrings.resx index 3b8b8ab2371..7a06e28a282 100644 --- a/src/Microsoft.PowerShell.Commands.Utility/resources/NewObjectStrings.resx +++ b/src/Microsoft.PowerShell.Commands.Utility/resources/NewObjectStrings.resx @@ -152,11 +152,13 @@ The type '{0}' will not be created in ConstrainedLanguage mode. + {StrContains="ConstrainedLanguage"} New-Object Cmdlet COM Object Creation The COM object '{0}' will not be created in ConstrainedLanguage mode. + {StrContains="COM"}{StrContains="ConstrainedLanguage"} diff --git a/src/Microsoft.PowerShell.Commands.Utility/resources/UtilityCommonStrings.resx b/src/Microsoft.PowerShell.Commands.Utility/resources/UtilityCommonStrings.resx index 3e7f0052592..f93f63e1c1b 100644 --- a/src/Microsoft.PowerShell.Commands.Utility/resources/UtilityCommonStrings.resx +++ b/src/Microsoft.PowerShell.Commands.Utility/resources/UtilityCommonStrings.resx @@ -173,5 +173,6 @@ Invoke-Expression cmdlet script block will be run in ConstrainedLanguage mode. + {StrContains="Invoke-Expression"}{StrContains="ConstrainedLanguage"} diff --git a/src/Microsoft.PowerShell.Commands.Utility/resources/cs/AddTypeStrings.cs.resx b/src/Microsoft.PowerShell.Commands.Utility/resources/cs/AddTypeStrings.cs.resx index fae897a2605..12f6905ed73 100644 --- a/src/Microsoft.PowerShell.Commands.Utility/resources/cs/AddTypeStrings.cs.resx +++ b/src/Microsoft.PowerShell.Commands.Utility/resources/cs/AddTypeStrings.cs.resx @@ -155,5 +155,6 @@ Rutina Add-Type nebude v režimu ConstrainedLanguage povolena. + {StrContains="Add-Type"}{StrContains="ConstrainedLanguage"} \ No newline at end of file diff --git a/src/Microsoft.PowerShell.Commands.Utility/resources/cs/ImportLocalizedDataStrings.cs.resx b/src/Microsoft.PowerShell.Commands.Utility/resources/cs/ImportLocalizedDataStrings.cs.resx index de0933c01d8..dbf5837edf3 100644 --- a/src/Microsoft.PowerShell.Commands.Utility/resources/cs/ImportLocalizedDataStrings.cs.resx +++ b/src/Microsoft.PowerShell.Commands.Utility/resources/cs/ImportLocalizedDataStrings.cs.resx @@ -148,5 +148,6 @@ V režimu ConstrainedLanguage nebudou povolené další podporované příkazy zadané parametrem SupportedCommand. + {StrContains="SupportedCommand"}{StrContains="ConstrainedLanguage"} \ No newline at end of file diff --git a/src/Microsoft.PowerShell.Commands.Utility/resources/cs/NewObjectStrings.cs.resx b/src/Microsoft.PowerShell.Commands.Utility/resources/cs/NewObjectStrings.cs.resx index 53adb99a35e..7b03179a7e1 100644 --- a/src/Microsoft.PowerShell.Commands.Utility/resources/cs/NewObjectStrings.cs.resx +++ b/src/Microsoft.PowerShell.Commands.Utility/resources/cs/NewObjectStrings.cs.resx @@ -152,11 +152,13 @@ Typ {0} nebude vytvořen v režimu ConstrainedLanguage. + {StrContains="ConstrainedLanguage"} Vytvoření objektu COM rutiny New-Object Objekt COM {0} nebude vytvořen v režimu ConstrainedLanguage. + {StrContains="COM"}{StrContains="ConstrainedLanguage"} \ No newline at end of file diff --git a/src/Microsoft.PowerShell.Commands.Utility/resources/cs/UtilityCommonStrings.cs.resx b/src/Microsoft.PowerShell.Commands.Utility/resources/cs/UtilityCommonStrings.cs.resx index 9dff16de405..51f6f4197a7 100644 --- a/src/Microsoft.PowerShell.Commands.Utility/resources/cs/UtilityCommonStrings.cs.resx +++ b/src/Microsoft.PowerShell.Commands.Utility/resources/cs/UtilityCommonStrings.cs.resx @@ -173,5 +173,6 @@ Blok skriptu rutiny Invoke-Expression se spustí v režimu ConstrainedLanguage. + {StrContains="Invoke-Expression"}{StrContains="ConstrainedLanguage"} \ No newline at end of file diff --git a/src/Microsoft.PowerShell.Commands.Utility/resources/de/AddTypeStrings.de.resx b/src/Microsoft.PowerShell.Commands.Utility/resources/de/AddTypeStrings.de.resx index 6af9d2b3409..9fb34f9aef1 100644 --- a/src/Microsoft.PowerShell.Commands.Utility/resources/de/AddTypeStrings.de.resx +++ b/src/Microsoft.PowerShell.Commands.Utility/resources/de/AddTypeStrings.de.resx @@ -154,6 +154,7 @@ Add-Type-Cmdlet - Das Add-Type-cmdlet ist im ConstrainedLanguage-Modus nicht zulässig. + Das Cmdlet Add-Type ist im ConstrainedLanguage-Modus nicht zulässig. + {StrContains="Add-Type"}{StrContains="ConstrainedLanguage"} \ No newline at end of file diff --git a/src/Microsoft.PowerShell.Commands.Utility/resources/de/ImportLocalizedDataStrings.de.resx b/src/Microsoft.PowerShell.Commands.Utility/resources/de/ImportLocalizedDataStrings.de.resx index e40ef7210f5..f1c2648e917 100644 --- a/src/Microsoft.PowerShell.Commands.Utility/resources/de/ImportLocalizedDataStrings.de.resx +++ b/src/Microsoft.PowerShell.Commands.Utility/resources/de/ImportLocalizedDataStrings.de.resx @@ -147,6 +147,7 @@ Cmdlet „Import-LocalizedData“ - Zusätzliche unterstützte Befehle (über den Parameter „SupportedCommand“) sind im Modus „ConstrainedLanguage“ nicht zulässig. + Zusätzliche unterstützte Befehle (über den Parameter SupportedCommand) sind im ConstrainedLanguage-Modus nicht zulässig. + {StrContains="SupportedCommand"}{StrContains="ConstrainedLanguage"} \ No newline at end of file diff --git a/src/Microsoft.PowerShell.Commands.Utility/resources/de/NewObjectStrings.de.resx b/src/Microsoft.PowerShell.Commands.Utility/resources/de/NewObjectStrings.de.resx index 7d4cc78209a..bd0bd45a053 100644 --- a/src/Microsoft.PowerShell.Commands.Utility/resources/de/NewObjectStrings.de.resx +++ b/src/Microsoft.PowerShell.Commands.Utility/resources/de/NewObjectStrings.de.resx @@ -151,12 +151,14 @@ Typerstellung mit dem Cmdlet „New-Object“ - Der Typ „{0}“ wird im ConstrainedLanguage-Modus nicht erstellt. + Typ '{0}' wird im ConstrainedLanguage-Modus nicht erstellt. + {StrContains="ConstrainedLanguage"} COM-Objekterstellung mit dem New-Object-Cmdlet - Das COM-Objekt „{0}“ wird im ConstrainedLanguage-Modus nicht erstellt. + COM-Objekt '{0}' wird im ConstrainedLanguage-Modus nicht erstellt. + {StrContains="COM"}{StrContains="ConstrainedLanguage"} \ No newline at end of file diff --git a/src/Microsoft.PowerShell.Commands.Utility/resources/de/UtilityCommonStrings.de.resx b/src/Microsoft.PowerShell.Commands.Utility/resources/de/UtilityCommonStrings.de.resx index eb88c6e1706..aae9fff56d3 100644 --- a/src/Microsoft.PowerShell.Commands.Utility/resources/de/UtilityCommonStrings.de.resx +++ b/src/Microsoft.PowerShell.Commands.Utility/resources/de/UtilityCommonStrings.de.resx @@ -172,6 +172,7 @@ Invoke-Expression Cmdlet - Der Skriptblock des cmdlets „Invoke-Expression“ wird im ConstrainedLanguage-Modus ausgeführt. + Der Skriptblock des Cmdlet „Invoke-Expression“ wird im ConstrainedLanguage-Modus ausgeführt. + {StrContains="Invoke-Expression"}{StrContains="ConstrainedLanguage"} \ No newline at end of file diff --git a/src/Microsoft.PowerShell.Commands.Utility/resources/es/AddTypeStrings.es.resx b/src/Microsoft.PowerShell.Commands.Utility/resources/es/AddTypeStrings.es.resx index cf65608761a..10b8d2bd9cf 100644 --- a/src/Microsoft.PowerShell.Commands.Utility/resources/es/AddTypeStrings.es.resx +++ b/src/Microsoft.PowerShell.Commands.Utility/resources/es/AddTypeStrings.es.resx @@ -155,5 +155,6 @@ El cmdlet Add-Type no se permitirá en el modo ConstrainedLanguage. + {StrContains="Add-Type"}{StrContains="ConstrainedLanguage"} \ No newline at end of file diff --git a/src/Microsoft.PowerShell.Commands.Utility/resources/es/ImportLocalizedDataStrings.es.resx b/src/Microsoft.PowerShell.Commands.Utility/resources/es/ImportLocalizedDataStrings.es.resx index b2e208f5178..b15190115c8 100644 --- a/src/Microsoft.PowerShell.Commands.Utility/resources/es/ImportLocalizedDataStrings.es.resx +++ b/src/Microsoft.PowerShell.Commands.Utility/resources/es/ImportLocalizedDataStrings.es.resx @@ -148,5 +148,6 @@ No se permitirán comandos admitidos adicionales (a través del parámetro SupportedCommand) en el modo ConstrainedLanguage. + {StrContains="SupportedCommand"}{StrContains="ConstrainedLanguage"} \ No newline at end of file diff --git a/src/Microsoft.PowerShell.Commands.Utility/resources/es/NewObjectStrings.es.resx b/src/Microsoft.PowerShell.Commands.Utility/resources/es/NewObjectStrings.es.resx index eeac5dff3ff..e454eb4581e 100644 --- a/src/Microsoft.PowerShell.Commands.Utility/resources/es/NewObjectStrings.es.resx +++ b/src/Microsoft.PowerShell.Commands.Utility/resources/es/NewObjectStrings.es.resx @@ -152,11 +152,13 @@ El tipo "{0}" no se creará en modo ConstrainedLanguage. + {StrContains="ConstrainedLanguage"} Creación de objetos COM con el cmdlet New-Object El objeto COM "{0}" no se creará en modo ConstrainedLanguage. + {StrContains="COM"}{StrContains="ConstrainedLanguage"} \ No newline at end of file diff --git a/src/Microsoft.PowerShell.Commands.Utility/resources/es/UtilityCommonStrings.es.resx b/src/Microsoft.PowerShell.Commands.Utility/resources/es/UtilityCommonStrings.es.resx index 1c71e7c0ab6..fc72964466b 100644 --- a/src/Microsoft.PowerShell.Commands.Utility/resources/es/UtilityCommonStrings.es.resx +++ b/src/Microsoft.PowerShell.Commands.Utility/resources/es/UtilityCommonStrings.es.resx @@ -173,5 +173,6 @@ El bloque de script del cmdlet Invoke-Expression se ejecutará en modo ConstrainedLanguage. + {StrContains="Invoke-Expression"}{StrContains="ConstrainedLanguage"} \ No newline at end of file diff --git a/src/Microsoft.PowerShell.Commands.Utility/resources/fr/AddTypeStrings.fr.resx b/src/Microsoft.PowerShell.Commands.Utility/resources/fr/AddTypeStrings.fr.resx index 621a76cc8fa..819f70129cd 100644 --- a/src/Microsoft.PowerShell.Commands.Utility/resources/fr/AddTypeStrings.fr.resx +++ b/src/Microsoft.PowerShell.Commands.Utility/resources/fr/AddTypeStrings.fr.resx @@ -142,7 +142,7 @@ Nous ne pouvons pas ajouter de type. Le paramètre OutputType nécessite que le paramètre OutputAssembly soit indiqué. - Nous ne pouvons pas ajouter de type. La définition de nouveaux types n’est pas prise en charge dans ce mode de langage. + Nous ne pouvons pas ajouter de type. La définition de nouveaux types n’est pas prise en charge dans ce mode langage. L’assembly de référence spécifié « {0} » est inutile et ignoré. @@ -155,5 +155,6 @@ La cmdlet Add-Type ne sera pas autorisée en mode ConstrainedLanguage. + {StrContains="Add-Type"}{StrContains="ConstrainedLanguage"} \ No newline at end of file diff --git a/src/Microsoft.PowerShell.Commands.Utility/resources/fr/Debugger.fr.resx b/src/Microsoft.PowerShell.Commands.Utility/resources/fr/Debugger.fr.resx index e41e801baae..588129c6b70 100644 --- a/src/Microsoft.PowerShell.Commands.Utility/resources/fr/Debugger.fr.resx +++ b/src/Microsoft.PowerShell.Commands.Utility/resources/fr/Debugger.fr.resx @@ -133,7 +133,7 @@ Le débogage n’est pas pris en charge sur les sessions distantes. - Nous ne pouvons pas définir un point d’arrêt. Le mode de langage de cette session n’est pas compatible avec le mode de langage à l’échelle du système. + Nous ne pouvons pas définir un point d’arrêt. Le mode langage de cette session n’est pas compatible avec le mode langage à l’échelle du système. Nous ne pouvons pas définir des points d’arrêt dans la session à distance, car l’hôte actuel ne prend pas en charge le débogage distant. diff --git a/src/Microsoft.PowerShell.Commands.Utility/resources/fr/ImportLocalizedDataStrings.fr.resx b/src/Microsoft.PowerShell.Commands.Utility/resources/fr/ImportLocalizedDataStrings.fr.resx index 08915a13229..2f19d6ddc99 100644 --- a/src/Microsoft.PowerShell.Commands.Utility/resources/fr/ImportLocalizedDataStrings.fr.resx +++ b/src/Microsoft.PowerShell.Commands.Utility/resources/fr/ImportLocalizedDataStrings.fr.resx @@ -138,7 +138,7 @@ Impossible de trouver le fichier de données PowerShell «{0}» dans le répertoire «{1}» ou dans les répertoires de culture parent. - Impossible d’importer des données localisées. La définition de commandes supplémentaires prises en charge n’est pas autorisée dans ce mode de langage. + Impossible d’importer des données localisées. La définition de commandes supplémentaires prises en charge n’est pas autorisée dans ce mode langage. Le nom BindingVariable «{0}» n’est pas valide. @@ -148,5 +148,6 @@ Les commandes prises en charge supplémentaires (via le paramètre SupportedCommand) ne sont pas autorisées en mode ConstrainedLanguage. + {StrContains="SupportedCommand"}{StrContains="ConstrainedLanguage"} \ No newline at end of file diff --git a/src/Microsoft.PowerShell.Commands.Utility/resources/fr/NewObjectStrings.fr.resx b/src/Microsoft.PowerShell.Commands.Utility/resources/fr/NewObjectStrings.fr.resx index eb932149c9f..0e546c6f2b2 100644 --- a/src/Microsoft.PowerShell.Commands.Utility/resources/fr/NewObjectStrings.fr.resx +++ b/src/Microsoft.PowerShell.Commands.Utility/resources/fr/NewObjectStrings.fr.resx @@ -142,21 +142,23 @@ Nous ne pouvons pas créer des instances du type ByRef-like « {0} ». Les types ByRef-like ne sont pas pris en charge dans PowerShell. - Nous ne pouvons pas créer le type. Seuls les types principaux sont pris en charge dans ce mode de langage. + Nous ne pouvons pas créer le type. Seuls les types principaux sont pris en charge dans ce mode langage. - Nous ne pouvons pas créer le type. Seuls les types principaux sont pris en charge en mode langue {0} sur un ordinateur verrouillé par stratégie. + Nous ne pouvons pas créer le type. Seuls les types principaux sont pris en charge en mode langage {0} sur un ordinateur verrouillé par stratégie. Création d’un type avec l’applet de commande New-Object Le type « {0} » ne sera pas créé en mode ConstrainedLanguage. + {StrContains="ConstrainedLanguage"} Création d’un objet COM avec l’applet de commande New-Object L’objet COM « {0} » ne sera pas créé en mode ConstrainedLanguage. + {StrContains="COM"}{StrContains="ConstrainedLanguage"} \ No newline at end of file diff --git a/src/Microsoft.PowerShell.Commands.Utility/resources/fr/UtilityCommonStrings.fr.resx b/src/Microsoft.PowerShell.Commands.Utility/resources/fr/UtilityCommonStrings.fr.resx index 313e63f7db8..4f6ebb46233 100644 --- a/src/Microsoft.PowerShell.Commands.Utility/resources/fr/UtilityCommonStrings.fr.resx +++ b/src/Microsoft.PowerShell.Commands.Utility/resources/fr/UtilityCommonStrings.fr.resx @@ -173,5 +173,6 @@ Le bloc de script de l’applet de commande Invoke-Expression s’exécutera en mode ConstrainedLanguage. + {StrContains="Invoke-Expression"}{StrContains="ConstrainedLanguage"} \ No newline at end of file diff --git a/src/Microsoft.PowerShell.Commands.Utility/resources/it/AddTypeStrings.it.resx b/src/Microsoft.PowerShell.Commands.Utility/resources/it/AddTypeStrings.it.resx index d254da85a24..b2c1258f8da 100644 --- a/src/Microsoft.PowerShell.Commands.Utility/resources/it/AddTypeStrings.it.resx +++ b/src/Microsoft.PowerShell.Commands.Utility/resources/it/AddTypeStrings.it.resx @@ -155,5 +155,6 @@ Il cmdlet Add-Type non sarà consentito in modalità ConstrainedLanguage. + {StrContains="Add-Type"}{StrContains="ConstrainedLanguage"} \ No newline at end of file diff --git a/src/Microsoft.PowerShell.Commands.Utility/resources/it/Debugger.it.resx b/src/Microsoft.PowerShell.Commands.Utility/resources/it/Debugger.it.resx index ab4292b7387..08a36ac54e4 100644 --- a/src/Microsoft.PowerShell.Commands.Utility/resources/it/Debugger.it.resx +++ b/src/Microsoft.PowerShell.Commands.Utility/resources/it/Debugger.it.resx @@ -133,7 +133,7 @@ Il debug non è supportato nelle sessioni remote. - Non è possibile impostare il punto di interruzione. La modalità linguaggio per questa sessione non è compatibile con la modalità linguaggio a livello di sistema. + Non è possibile impostare il punto di interruzione. La modalità di linguaggio per questa sessione non è compatibile con la modalità di linguaggio a livello di sistema. Impossibile impostare i punti di interruzione nella sessione remota perché il debug remoto non è supportato dall'host corrente. diff --git a/src/Microsoft.PowerShell.Commands.Utility/resources/it/ImportLocalizedDataStrings.it.resx b/src/Microsoft.PowerShell.Commands.Utility/resources/it/ImportLocalizedDataStrings.it.resx index 8d778cae89c..ed15ae17531 100644 --- a/src/Microsoft.PowerShell.Commands.Utility/resources/it/ImportLocalizedDataStrings.it.resx +++ b/src/Microsoft.PowerShell.Commands.Utility/resources/it/ImportLocalizedDataStrings.it.resx @@ -138,7 +138,7 @@ Non è possibile trovare il file di dati di PowerShell '{0}' nella directory '{1}' o in alcuna directory delle impostazioni cultura padre. - Non è possibile importare dati localizzati. La definizione di comandi aggiuntivi supportati non è consentita in questa modalità del linguaggio. + Non è possibile importare dati localizzati. La definizione di comandi aggiuntivi supportati non è consentita in questa modalità di linguaggio. Il nome della BindingVariable '{0}' non è valido. @@ -148,5 +148,6 @@ I comandi aggiuntivi supportati (tramite il parametro SupportedCommand) non sono consentiti in modalità ConstrainedLanguage. + {StrContains="SupportedCommand"}{StrContains="ConstrainedLanguage"} \ No newline at end of file diff --git a/src/Microsoft.PowerShell.Commands.Utility/resources/it/NewObjectStrings.it.resx b/src/Microsoft.PowerShell.Commands.Utility/resources/it/NewObjectStrings.it.resx index 6c50ca091bc..80d1ea5ab47 100644 --- a/src/Microsoft.PowerShell.Commands.Utility/resources/it/NewObjectStrings.it.resx +++ b/src/Microsoft.PowerShell.Commands.Utility/resources/it/NewObjectStrings.it.resx @@ -142,21 +142,23 @@ Non è possibile creare istanze del tipo simile a ByRef "{0}". I tipi simili a ByRef non sono supportati in PowerShell. - Non è possibile creare il tipo. In questa modalità linguaggio sono supportati solo i tipi di base. + Non è possibile creare il tipo. In questa modalità di linguaggio sono supportati solo i tipi di base. - Non è possibile creare il tipo. Solo i tipi di base sono supportati in modalità lingua {0} in un computer con criteri bloccati. + Non è possibile creare il tipo. Solo i tipi di base sono supportati in modalità di linguaggio {0} in un computer con criteri bloccati. Creazione del tipo di cmdlet New-Object - Il tipo ''{0}'' non verrà creato in modalità ConstrainedLanguage. + Il tipo '{0}' non verrà creato in modalità ConstrainedLanguage. + {StrContains="ConstrainedLanguage"} Creazione di oggetti COM cmdlet New-Object - L'oggetto COM ''{0}'' non verrà creato in modalità ConstrainedLanguage. + L'oggetto COM '{0}' non verrà creato in modalità ConstrainedLanguage. + {StrContains="COM"}{StrContains="ConstrainedLanguage"} \ No newline at end of file diff --git a/src/Microsoft.PowerShell.Commands.Utility/resources/it/UtilityCommonStrings.it.resx b/src/Microsoft.PowerShell.Commands.Utility/resources/it/UtilityCommonStrings.it.resx index 4463108dd8e..4da1e43a6a4 100644 --- a/src/Microsoft.PowerShell.Commands.Utility/resources/it/UtilityCommonStrings.it.resx +++ b/src/Microsoft.PowerShell.Commands.Utility/resources/it/UtilityCommonStrings.it.resx @@ -173,5 +173,6 @@ Il blocco di script del cmdlet Invoke-Expression verrà eseguito in modalità ConstrainedLanguage. + {StrContains="Invoke-Expression"}{StrContains="ConstrainedLanguage"} \ No newline at end of file diff --git a/src/Microsoft.PowerShell.Commands.Utility/resources/ja/AddTypeStrings.ja.resx b/src/Microsoft.PowerShell.Commands.Utility/resources/ja/AddTypeStrings.ja.resx index 57b1ecbdf30..7da7fa352c1 100644 --- a/src/Microsoft.PowerShell.Commands.Utility/resources/ja/AddTypeStrings.ja.resx +++ b/src/Microsoft.PowerShell.Commands.Utility/resources/ja/AddTypeStrings.ja.resx @@ -155,5 +155,6 @@ Add-Type コマンドレットは ConstrainedLanguage モードでは許可されません。 + {StrContains="Add-Type"}{StrContains="ConstrainedLanguage"} \ No newline at end of file diff --git a/src/Microsoft.PowerShell.Commands.Utility/resources/ja/ImportLocalizedDataStrings.ja.resx b/src/Microsoft.PowerShell.Commands.Utility/resources/ja/ImportLocalizedDataStrings.ja.resx index 6da5c02e3a5..ae43cd9d196 100644 --- a/src/Microsoft.PowerShell.Commands.Utility/resources/ja/ImportLocalizedDataStrings.ja.resx +++ b/src/Microsoft.PowerShell.Commands.Utility/resources/ja/ImportLocalizedDataStrings.ja.resx @@ -148,5 +148,6 @@ 追加でサポートされるコマンド (SupportedCommand パラメーター経由) は、ConstrainedLanguage モードでは許可されません。 + {StrContains="SupportedCommand"}{StrContains="ConstrainedLanguage"} \ No newline at end of file diff --git a/src/Microsoft.PowerShell.Commands.Utility/resources/ja/NewObjectStrings.ja.resx b/src/Microsoft.PowerShell.Commands.Utility/resources/ja/NewObjectStrings.ja.resx index 61881a7c9a0..c36729a86c5 100644 --- a/src/Microsoft.PowerShell.Commands.Utility/resources/ja/NewObjectStrings.ja.resx +++ b/src/Microsoft.PowerShell.Commands.Utility/resources/ja/NewObjectStrings.ja.resx @@ -152,11 +152,13 @@ 型 '{0}' は ConstrainedLanguage モードでは作成されません。 + {StrContains="ConstrainedLanguage"} New-Object コマンドレットの COM オブジェクトの作成 COM オブジェクト '{0}' は ConstrainedLanguage モードでは作成されません。 + {StrContains="COM"}{StrContains="ConstrainedLanguage"} \ No newline at end of file diff --git a/src/Microsoft.PowerShell.Commands.Utility/resources/ja/UtilityCommonStrings.ja.resx b/src/Microsoft.PowerShell.Commands.Utility/resources/ja/UtilityCommonStrings.ja.resx index ccdd020001b..fc0ee43a599 100644 --- a/src/Microsoft.PowerShell.Commands.Utility/resources/ja/UtilityCommonStrings.ja.resx +++ b/src/Microsoft.PowerShell.Commands.Utility/resources/ja/UtilityCommonStrings.ja.resx @@ -173,5 +173,6 @@ Invoke-Expression コマンドレットのスクリプト ブロックは ConstrainedLanguage モードで実行されます。 + {StrContains="Invoke-Expression"}{StrContains="ConstrainedLanguage"} \ No newline at end of file diff --git a/src/Microsoft.PowerShell.Commands.Utility/resources/ko/AddTypeStrings.ko.resx b/src/Microsoft.PowerShell.Commands.Utility/resources/ko/AddTypeStrings.ko.resx index 0263c949247..8fce97a8668 100644 --- a/src/Microsoft.PowerShell.Commands.Utility/resources/ko/AddTypeStrings.ko.resx +++ b/src/Microsoft.PowerShell.Commands.Utility/resources/ko/AddTypeStrings.ko.resx @@ -155,5 +155,6 @@ ConstrainedLanguage 모드에서는 Add-Type cmdlet을 사용할 수 없습니다. + {StrContains="Add-Type"}{StrContains="ConstrainedLanguage"} \ No newline at end of file diff --git a/src/Microsoft.PowerShell.Commands.Utility/resources/ko/ImportLocalizedDataStrings.ko.resx b/src/Microsoft.PowerShell.Commands.Utility/resources/ko/ImportLocalizedDataStrings.ko.resx index 8fe7e5efaa9..5c02ff9482b 100644 --- a/src/Microsoft.PowerShell.Commands.Utility/resources/ko/ImportLocalizedDataStrings.ko.resx +++ b/src/Microsoft.PowerShell.Commands.Utility/resources/ko/ImportLocalizedDataStrings.ko.resx @@ -148,5 +148,6 @@ ConstrainedLanguage 모드에서는 추가 지원 명령(SupportedCommand 매개 변수를 통해)이 허용되지 않습니다. + {StrContains="SupportedCommand"}{StrContains="ConstrainedLanguage"} \ No newline at end of file diff --git a/src/Microsoft.PowerShell.Commands.Utility/resources/ko/NewObjectStrings.ko.resx b/src/Microsoft.PowerShell.Commands.Utility/resources/ko/NewObjectStrings.ko.resx index cb0555d9193..aa7fab746ad 100644 --- a/src/Microsoft.PowerShell.Commands.Utility/resources/ko/NewObjectStrings.ko.resx +++ b/src/Microsoft.PowerShell.Commands.Utility/resources/ko/NewObjectStrings.ko.resx @@ -152,11 +152,13 @@ ConstrainedLanguage 모드에서는 '{0}' 형식이 만들어지지 않습니다. + {StrContains="ConstrainedLanguage"} New-Object Cmdlet COM 개체 만들기 ConstrainedLanguage 모드에서는 COM 개체 '{0}'이(가) 만들어지지 않습니다. + {StrContains="COM"}{StrContains="ConstrainedLanguage"} \ No newline at end of file diff --git a/src/Microsoft.PowerShell.Commands.Utility/resources/ko/UtilityCommonStrings.ko.resx b/src/Microsoft.PowerShell.Commands.Utility/resources/ko/UtilityCommonStrings.ko.resx index c36550b7564..a760f0ea909 100644 --- a/src/Microsoft.PowerShell.Commands.Utility/resources/ko/UtilityCommonStrings.ko.resx +++ b/src/Microsoft.PowerShell.Commands.Utility/resources/ko/UtilityCommonStrings.ko.resx @@ -173,5 +173,6 @@ Invoke-Expression cmdlet 스크립트 블록은 ConstrainedLanguage 모드에서 실행됩니다. + {StrContains="Invoke-Expression"}{StrContains="ConstrainedLanguage"} \ No newline at end of file diff --git a/src/Microsoft.PowerShell.Commands.Utility/resources/pl/AddTypeStrings.pl.resx b/src/Microsoft.PowerShell.Commands.Utility/resources/pl/AddTypeStrings.pl.resx index bb3193c217d..af34a44114a 100644 --- a/src/Microsoft.PowerShell.Commands.Utility/resources/pl/AddTypeStrings.pl.resx +++ b/src/Microsoft.PowerShell.Commands.Utility/resources/pl/AddTypeStrings.pl.resx @@ -155,5 +155,6 @@ Polecenie cmdlet Add-Type nie będzie dozwolone w trybie ConstrainedLanguage. + {StrContains="Add-Type"}{StrContains="ConstrainedLanguage"} \ No newline at end of file diff --git a/src/Microsoft.PowerShell.Commands.Utility/resources/pl/Debugger.pl.resx b/src/Microsoft.PowerShell.Commands.Utility/resources/pl/Debugger.pl.resx index d46a1560f8d..0b291c46f83 100644 --- a/src/Microsoft.PowerShell.Commands.Utility/resources/pl/Debugger.pl.resx +++ b/src/Microsoft.PowerShell.Commands.Utility/resources/pl/Debugger.pl.resx @@ -133,7 +133,7 @@ Debugowanie nie jest obsługiwane w sesjach zdalnych. - Nie można ustawić punktu przerwania. Tryb językowy dla tej sesji jest niezgodny z trybem języka w całym systemie. + Nie można ustawić punktu przerwania. Tryb języka dla tej sesji jest niezgodny z trybem języka w całym systemie. Nie można ustawić punktów przerwania w sesji zdalnej, ponieważ zdalne debugowanie nie jest obsługiwane przez bieżącego hosta. diff --git a/src/Microsoft.PowerShell.Commands.Utility/resources/pl/ImportLocalizedDataStrings.pl.resx b/src/Microsoft.PowerShell.Commands.Utility/resources/pl/ImportLocalizedDataStrings.pl.resx index 30e3aa58d67..21ae2ad0907 100644 --- a/src/Microsoft.PowerShell.Commands.Utility/resources/pl/ImportLocalizedDataStrings.pl.resx +++ b/src/Microsoft.PowerShell.Commands.Utility/resources/pl/ImportLocalizedDataStrings.pl.resx @@ -148,5 +148,6 @@ Dodatkowe obsługiwane polecenia (za pośrednictwem parametru SupportedCommand) nie będą dozwolone w trybie ConstrainedLanguage. + {StrContains="SupportedCommand"}{StrContains="ConstrainedLanguage"} \ No newline at end of file diff --git a/src/Microsoft.PowerShell.Commands.Utility/resources/pl/NewObjectStrings.pl.resx b/src/Microsoft.PowerShell.Commands.Utility/resources/pl/NewObjectStrings.pl.resx index b3270bf2a05..0b055a58cf2 100644 --- a/src/Microsoft.PowerShell.Commands.Utility/resources/pl/NewObjectStrings.pl.resx +++ b/src/Microsoft.PowerShell.Commands.Utility/resources/pl/NewObjectStrings.pl.resx @@ -152,11 +152,13 @@ Typ „{0}” nie zostanie utworzony w trybie ConstrainedLanguage. + {StrContains="ConstrainedLanguage"} Tworzenie obiektu COM polecenia cmdlet New-Object Obiekt COM „{0}” nie zostanie utworzony w trybie ConstrainedLanguage. + {StrContains="COM"}{StrContains="ConstrainedLanguage"} \ No newline at end of file diff --git a/src/Microsoft.PowerShell.Commands.Utility/resources/pl/UtilityCommonStrings.pl.resx b/src/Microsoft.PowerShell.Commands.Utility/resources/pl/UtilityCommonStrings.pl.resx index 31bfcd9183e..c4b4dc9c104 100644 --- a/src/Microsoft.PowerShell.Commands.Utility/resources/pl/UtilityCommonStrings.pl.resx +++ b/src/Microsoft.PowerShell.Commands.Utility/resources/pl/UtilityCommonStrings.pl.resx @@ -173,5 +173,6 @@ Blok skryptu polecenia cmdlet Invoke-Expression zostanie uruchomiony w trybie ConstrainedLanguage. + {StrContains="Invoke-Expression"}{StrContains="ConstrainedLanguage"} \ No newline at end of file diff --git a/src/Microsoft.PowerShell.Commands.Utility/resources/pt-BR/AddTypeStrings.pt-BR.resx b/src/Microsoft.PowerShell.Commands.Utility/resources/pt-BR/AddTypeStrings.pt-BR.resx index 18a15a6f605..53bf04b6055 100644 --- a/src/Microsoft.PowerShell.Commands.Utility/resources/pt-BR/AddTypeStrings.pt-BR.resx +++ b/src/Microsoft.PowerShell.Commands.Utility/resources/pt-BR/AddTypeStrings.pt-BR.resx @@ -155,5 +155,6 @@ O cmdlet Add-Type não será permitido no modo ConstrainedLanguage. + {StrContains="Add-Type"}{StrContains="ConstrainedLanguage"} \ No newline at end of file diff --git a/src/Microsoft.PowerShell.Commands.Utility/resources/pt-BR/ImportLocalizedDataStrings.pt-BR.resx b/src/Microsoft.PowerShell.Commands.Utility/resources/pt-BR/ImportLocalizedDataStrings.pt-BR.resx index 84827251a03..91fbf8cd675 100644 --- a/src/Microsoft.PowerShell.Commands.Utility/resources/pt-BR/ImportLocalizedDataStrings.pt-BR.resx +++ b/src/Microsoft.PowerShell.Commands.Utility/resources/pt-BR/ImportLocalizedDataStrings.pt-BR.resx @@ -148,5 +148,6 @@ Comandos adicionais com suporte (por meio do parâmetro SupportedCommand) não serão permitidos no modo ConstrainedLanguage. + {StrContains="SupportedCommand"}{StrContains="ConstrainedLanguage"} \ No newline at end of file diff --git a/src/Microsoft.PowerShell.Commands.Utility/resources/pt-BR/NewObjectStrings.pt-BR.resx b/src/Microsoft.PowerShell.Commands.Utility/resources/pt-BR/NewObjectStrings.pt-BR.resx index 4d5839056f7..c7f92bb5f65 100644 --- a/src/Microsoft.PowerShell.Commands.Utility/resources/pt-BR/NewObjectStrings.pt-BR.resx +++ b/src/Microsoft.PowerShell.Commands.Utility/resources/pt-BR/NewObjectStrings.pt-BR.resx @@ -151,12 +151,14 @@ New-Object Cmdlet Type Creation - The type '{0}' will not be created in ConstrainedLanguage mode. + O tipo '{0}' não será criado no modo ConstrainedLanguage. + {StrContains="ConstrainedLanguage"} New-Object Cmdlet COM Object Creation - The COM object '{0}' will not be created in ConstrainedLanguage mode. + O objeto COM '{0}' não será criado no modo ConstrainedLanguage. + {StrContains="COM"}{StrContains="ConstrainedLanguage"} \ No newline at end of file diff --git a/src/Microsoft.PowerShell.Commands.Utility/resources/pt-BR/UtilityCommonStrings.pt-BR.resx b/src/Microsoft.PowerShell.Commands.Utility/resources/pt-BR/UtilityCommonStrings.pt-BR.resx index d086ee71627..f8f7bd9e3a8 100644 --- a/src/Microsoft.PowerShell.Commands.Utility/resources/pt-BR/UtilityCommonStrings.pt-BR.resx +++ b/src/Microsoft.PowerShell.Commands.Utility/resources/pt-BR/UtilityCommonStrings.pt-BR.resx @@ -173,5 +173,6 @@ O bloco de script do cmdlet Invoke-Expression será executado no modo ConstrainedLanguage. + {StrContains="Invoke-Expression"}{StrContains="ConstrainedLanguage"} \ No newline at end of file diff --git a/src/Microsoft.PowerShell.Commands.Utility/resources/ru/AddTypeStrings.ru.resx b/src/Microsoft.PowerShell.Commands.Utility/resources/ru/AddTypeStrings.ru.resx index da89c76cbfd..64cc1692333 100644 --- a/src/Microsoft.PowerShell.Commands.Utility/resources/ru/AddTypeStrings.ru.resx +++ b/src/Microsoft.PowerShell.Commands.Utility/resources/ru/AddTypeStrings.ru.resx @@ -142,7 +142,7 @@ Не удается добавить тип. Для параметра OutputType необходимо указать параметр OutputAssembly. - Не удается добавить тип. Определение новых типов не поддерживается в этом языковом режиме. + Не удается добавить тип. Определение новых типов не поддерживается в этом режиме языка. Указанная базовая сборка "{0}" не требуется и не учитывается. @@ -155,5 +155,6 @@ Командлет Add-Type не будет разрешен в режиме ConstrainedLanguage. + {StrContains="Add-Type"}{StrContains="ConstrainedLanguage"} \ No newline at end of file diff --git a/src/Microsoft.PowerShell.Commands.Utility/resources/ru/Debugger.ru.resx b/src/Microsoft.PowerShell.Commands.Utility/resources/ru/Debugger.ru.resx index 2d10b53401c..178d5398ed9 100644 --- a/src/Microsoft.PowerShell.Commands.Utility/resources/ru/Debugger.ru.resx +++ b/src/Microsoft.PowerShell.Commands.Utility/resources/ru/Debugger.ru.resx @@ -133,7 +133,7 @@ Отладка не поддерживается в удаленных сеансах. - Не удается задать точку останова. Языковой режим для данной сессии несовместим с общесистемным языковым режимом. + Не удается задать точку останова. Режим языка для данного сеанса несовместим с общесистемным режимом языка. Невозможно установить точки останова в удаленном сеансе, так как текущий узел не поддерживает удаленную отладку. diff --git a/src/Microsoft.PowerShell.Commands.Utility/resources/ru/ImportLocalizedDataStrings.ru.resx b/src/Microsoft.PowerShell.Commands.Utility/resources/ru/ImportLocalizedDataStrings.ru.resx index 364b74f1cce..7964f43ba2d 100644 --- a/src/Microsoft.PowerShell.Commands.Utility/resources/ru/ImportLocalizedDataStrings.ru.resx +++ b/src/Microsoft.PowerShell.Commands.Utility/resources/ru/ImportLocalizedDataStrings.ru.resx @@ -148,5 +148,6 @@ В режиме ConstrainedLanguage нельзя использовать дополнительные поддерживаемые команды через параметр SupportedCommand. + {StrContains="SupportedCommand"}{StrContains="ConstrainedLanguage"} \ No newline at end of file diff --git a/src/Microsoft.PowerShell.Commands.Utility/resources/ru/NewObjectStrings.ru.resx b/src/Microsoft.PowerShell.Commands.Utility/resources/ru/NewObjectStrings.ru.resx index 600db9d56d6..4729dac91be 100644 --- a/src/Microsoft.PowerShell.Commands.Utility/resources/ru/NewObjectStrings.ru.resx +++ b/src/Microsoft.PowerShell.Commands.Utility/resources/ru/NewObjectStrings.ru.resx @@ -142,21 +142,23 @@ Не удается создать экземпляры подобного ByRef типа "{0}". Типы, подобные ByRef, не поддерживаются в PowerShell. - Не удается создать тип. В этом языковом режиме поддерживаются только основные типы. + Не удается создать тип. В этом режиме языка поддерживаются только основные типы. - Не удается создать тип. В языковом режиме {0} на компьютере, заблокированном политикой, поддерживаются только основные типы. + Не удается создать тип. В режиме языка {0} на компьютере, заблокированном политикой, поддерживаются только основные типы. Создание типа с помощью командлета New-Object Тип "{0}" не будет создан в режиме ConstrainedLanguage. + {StrContains="ConstrainedLanguage"} Создание COM-объекта с помощью командлета New-Object Объект COM "{0}" не будет создан в режиме ConstrainedLanguage. + {StrContains="COM"}{StrContains="ConstrainedLanguage"} \ No newline at end of file diff --git a/src/Microsoft.PowerShell.Commands.Utility/resources/ru/UtilityCommonStrings.ru.resx b/src/Microsoft.PowerShell.Commands.Utility/resources/ru/UtilityCommonStrings.ru.resx index 989f7128b72..4777e94e240 100644 --- a/src/Microsoft.PowerShell.Commands.Utility/resources/ru/UtilityCommonStrings.ru.resx +++ b/src/Microsoft.PowerShell.Commands.Utility/resources/ru/UtilityCommonStrings.ru.resx @@ -173,5 +173,6 @@ Блок сценария командлета Invoke-Expression будет выполняться в режиме ConstrainedLanguage. + {StrContains="Invoke-Expression"}{StrContains="ConstrainedLanguage"} \ No newline at end of file diff --git a/src/Microsoft.PowerShell.Commands.Utility/resources/tr/AddTypeStrings.tr.resx b/src/Microsoft.PowerShell.Commands.Utility/resources/tr/AddTypeStrings.tr.resx index 9544b2a57da..465ed577507 100644 --- a/src/Microsoft.PowerShell.Commands.Utility/resources/tr/AddTypeStrings.tr.resx +++ b/src/Microsoft.PowerShell.Commands.Utility/resources/tr/AddTypeStrings.tr.resx @@ -155,5 +155,6 @@ ConstrainedLanguage modunda Add-Type cmdlet'ine izin verilmeyecek. + {StrContains="Add-Type"}{StrContains="ConstrainedLanguage"} \ No newline at end of file diff --git a/src/Microsoft.PowerShell.Commands.Utility/resources/tr/ImportLocalizedDataStrings.tr.resx b/src/Microsoft.PowerShell.Commands.Utility/resources/tr/ImportLocalizedDataStrings.tr.resx index 21f2527a84c..cf6f4396b03 100644 --- a/src/Microsoft.PowerShell.Commands.Utility/resources/tr/ImportLocalizedDataStrings.tr.resx +++ b/src/Microsoft.PowerShell.Commands.Utility/resources/tr/ImportLocalizedDataStrings.tr.resx @@ -148,5 +148,6 @@ Desteklenen ek komutlara (SupportedCommand parametresi aracılığıyla) ConstrainedLanguage modunda izin verilmez. + {StrContains="SupportedCommand"}{StrContains="ConstrainedLanguage"} \ No newline at end of file diff --git a/src/Microsoft.PowerShell.Commands.Utility/resources/tr/NewObjectStrings.tr.resx b/src/Microsoft.PowerShell.Commands.Utility/resources/tr/NewObjectStrings.tr.resx index 4aad563d70d..a2478ca4cea 100644 --- a/src/Microsoft.PowerShell.Commands.Utility/resources/tr/NewObjectStrings.tr.resx +++ b/src/Microsoft.PowerShell.Commands.Utility/resources/tr/NewObjectStrings.tr.resx @@ -152,11 +152,13 @@ '{0}' türü ConstrainedLanguage modunda oluşturulmaz. + {StrContains="ConstrainedLanguage"} New-Object Cmdlet'i COM Nesnesi Oluşturma '{0}' COM nesnesi ConstrainedLanguage modunda oluşturulmaz. + {StrContains="COM"}{StrContains="ConstrainedLanguage"} \ No newline at end of file diff --git a/src/Microsoft.PowerShell.Commands.Utility/resources/tr/UtilityCommonStrings.tr.resx b/src/Microsoft.PowerShell.Commands.Utility/resources/tr/UtilityCommonStrings.tr.resx index 2dbcab3f4d5..fa96ddb7be1 100644 --- a/src/Microsoft.PowerShell.Commands.Utility/resources/tr/UtilityCommonStrings.tr.resx +++ b/src/Microsoft.PowerShell.Commands.Utility/resources/tr/UtilityCommonStrings.tr.resx @@ -173,5 +173,6 @@ Invoke-Expression cmdlet betik bloğu, ConstrainedLanguage modunda çalıştırılacak. + {StrContains="Invoke-Expression"}{StrContains="ConstrainedLanguage"} \ No newline at end of file diff --git a/src/Microsoft.PowerShell.Commands.Utility/resources/zh-Hans/AddTypeStrings.zh-Hans.resx b/src/Microsoft.PowerShell.Commands.Utility/resources/zh-Hans/AddTypeStrings.zh-Hans.resx index 425a1a71764..4f1074df1c3 100644 --- a/src/Microsoft.PowerShell.Commands.Utility/resources/zh-Hans/AddTypeStrings.zh-Hans.resx +++ b/src/Microsoft.PowerShell.Commands.Utility/resources/zh-Hans/AddTypeStrings.zh-Hans.resx @@ -155,5 +155,6 @@ ConstrainedLanguage 模式不允许使用 Add-Type cmdlet。 + {StrContains="Add-Type"}{StrContains="ConstrainedLanguage"} \ No newline at end of file diff --git a/src/Microsoft.PowerShell.Commands.Utility/resources/zh-Hans/ImportLocalizedDataStrings.zh-Hans.resx b/src/Microsoft.PowerShell.Commands.Utility/resources/zh-Hans/ImportLocalizedDataStrings.zh-Hans.resx index 5455a8e9ac2..9ff4727c92d 100644 --- a/src/Microsoft.PowerShell.Commands.Utility/resources/zh-Hans/ImportLocalizedDataStrings.zh-Hans.resx +++ b/src/Microsoft.PowerShell.Commands.Utility/resources/zh-Hans/ImportLocalizedDataStrings.zh-Hans.resx @@ -148,5 +148,6 @@ 在 ConstrainedLanguage 模式下,不允许使用其他受支持的命令(通过 SupportedCommand 参数)。 + {StrContains="SupportedCommand"}{StrContains="ConstrainedLanguage"} \ No newline at end of file diff --git a/src/Microsoft.PowerShell.Commands.Utility/resources/zh-Hans/NewObjectStrings.zh-Hans.resx b/src/Microsoft.PowerShell.Commands.Utility/resources/zh-Hans/NewObjectStrings.zh-Hans.resx index 68032620ee5..a89f6438af7 100644 --- a/src/Microsoft.PowerShell.Commands.Utility/resources/zh-Hans/NewObjectStrings.zh-Hans.resx +++ b/src/Microsoft.PowerShell.Commands.Utility/resources/zh-Hans/NewObjectStrings.zh-Hans.resx @@ -151,12 +151,14 @@ New-Object Cmdlet 类型创建 - ConstrainedLanguage 模式下不会创建类型 "{0}"。 + ConstrainedLanguage 模式下不会创建类型“{0}”。 + {StrContains="ConstrainedLanguage"} New-Object cmdlet COM 对象创建 - ConstrainedLanguage 模式下不会创建 COM 对象 "{0}"。 + ConstrainedLanguage 模式下不会创建 COM 对象“{0}”。 + {StrContains="COM"}{StrContains="ConstrainedLanguage"} \ No newline at end of file diff --git a/src/Microsoft.PowerShell.Commands.Utility/resources/zh-Hans/UtilityCommonStrings.zh-Hans.resx b/src/Microsoft.PowerShell.Commands.Utility/resources/zh-Hans/UtilityCommonStrings.zh-Hans.resx index 7c5eb07c006..108b7a8456a 100644 --- a/src/Microsoft.PowerShell.Commands.Utility/resources/zh-Hans/UtilityCommonStrings.zh-Hans.resx +++ b/src/Microsoft.PowerShell.Commands.Utility/resources/zh-Hans/UtilityCommonStrings.zh-Hans.resx @@ -173,5 +173,6 @@ Invoke-Expression cmdlet 脚本块将在 ConstrainedLanguage 模式下运行。 + {StrContains="Invoke-Expression"}{StrContains="ConstrainedLanguage"} \ No newline at end of file diff --git a/src/Microsoft.PowerShell.Commands.Utility/resources/zh-Hant/AddTypeStrings.zh-Hant.resx b/src/Microsoft.PowerShell.Commands.Utility/resources/zh-Hant/AddTypeStrings.zh-Hant.resx index 626eb4d1332..0d2bfc75207 100644 --- a/src/Microsoft.PowerShell.Commands.Utility/resources/zh-Hant/AddTypeStrings.zh-Hant.resx +++ b/src/Microsoft.PowerShell.Commands.Utility/resources/zh-Hant/AddTypeStrings.zh-Hant.resx @@ -155,5 +155,6 @@ ConstrainedLanguage 模式不允許使用 Add-Type Cmdlet。 + {StrContains="Add-Type"}{StrContains="ConstrainedLanguage"} \ No newline at end of file diff --git a/src/Microsoft.PowerShell.Commands.Utility/resources/zh-Hant/ImportLocalizedDataStrings.zh-Hant.resx b/src/Microsoft.PowerShell.Commands.Utility/resources/zh-Hant/ImportLocalizedDataStrings.zh-Hant.resx index 2ba0c835eb5..9eb2829b377 100644 --- a/src/Microsoft.PowerShell.Commands.Utility/resources/zh-Hant/ImportLocalizedDataStrings.zh-Hant.resx +++ b/src/Microsoft.PowerShell.Commands.Utility/resources/zh-Hant/ImportLocalizedDataStrings.zh-Hant.resx @@ -148,5 +148,6 @@ 在 ConstrainedLanguage 模式中,不允許使用 SupportedCommand 參數新增其他支援的命令。 + {StrContains="SupportedCommand"}{StrContains="ConstrainedLanguage"} \ No newline at end of file diff --git a/src/Microsoft.PowerShell.Commands.Utility/resources/zh-Hant/NewObjectStrings.zh-Hant.resx b/src/Microsoft.PowerShell.Commands.Utility/resources/zh-Hant/NewObjectStrings.zh-Hant.resx index d5695ac80e0..99521055590 100644 --- a/src/Microsoft.PowerShell.Commands.Utility/resources/zh-Hant/NewObjectStrings.zh-Hant.resx +++ b/src/Microsoft.PowerShell.Commands.Utility/resources/zh-Hant/NewObjectStrings.zh-Hant.resx @@ -152,11 +152,13 @@ 在 ConstrainedLanguage 模式中,不會建立類型 '{0}'。 + {StrContains="ConstrainedLanguage"} New-Object Cmdlet COM 物件建立 在 ConstrainedLanguage 模式中,不會建立 COM 物件 '{0}'。 + {StrContains="COM"}{StrContains="ConstrainedLanguage"} \ No newline at end of file diff --git a/src/Microsoft.PowerShell.Commands.Utility/resources/zh-Hant/UtilityCommonStrings.zh-Hant.resx b/src/Microsoft.PowerShell.Commands.Utility/resources/zh-Hant/UtilityCommonStrings.zh-Hant.resx index ca8fe0ee44b..47c20e845c5 100644 --- a/src/Microsoft.PowerShell.Commands.Utility/resources/zh-Hant/UtilityCommonStrings.zh-Hant.resx +++ b/src/Microsoft.PowerShell.Commands.Utility/resources/zh-Hant/UtilityCommonStrings.zh-Hant.resx @@ -173,5 +173,6 @@ Invoke-Expression Cmdlet 指令碼區塊將會以 ConstrainedLanguage 模式執行。 + {StrContains="Invoke-Expression"}{StrContains="ConstrainedLanguage"} \ No newline at end of file diff --git a/src/Microsoft.PowerShell.ConsoleHost/resources/fr/ManagedEntranceStrings.fr.resx b/src/Microsoft.PowerShell.ConsoleHost/resources/fr/ManagedEntranceStrings.fr.resx index 0ba4628fa2b..28ee3d782ef 100644 --- a/src/Microsoft.PowerShell.ConsoleHost/resources/fr/ManagedEntranceStrings.fr.resx +++ b/src/Microsoft.PowerShell.ConsoleHost/resources/fr/ManagedEntranceStrings.fr.resx @@ -121,16 +121,16 @@ PowerShell {0} - [Mode de langue contrainte] + [Mode langage avec contraintes] [Mode AUDIT du langage contraint : Aucune restriction] - [Aucun mode de langue] + [Aucun mode langage] - [Mode de langage restreint] + [Mode langage restreint] Utilisation : pwsh[.exe] [-Login] [[-File] <filePath> [args]] diff --git a/src/Microsoft.PowerShell.ConsoleHost/resources/it/ManagedEntranceStrings.it.resx b/src/Microsoft.PowerShell.ConsoleHost/resources/it/ManagedEntranceStrings.it.resx index 55fcec735ba..cc25a0e7f39 100644 --- a/src/Microsoft.PowerShell.ConsoleHost/resources/it/ManagedEntranceStrings.it.resx +++ b/src/Microsoft.PowerShell.ConsoleHost/resources/it/ManagedEntranceStrings.it.resx @@ -121,7 +121,7 @@ PowerShell {0} - [Modalità linguaggio con restrizioni] + [Modalità di linguaggio vincolato] [Modalità di controllo linguaggio con restrizioni: nessuna restrizione] diff --git a/src/Microsoft.PowerShell.ConsoleHost/resources/ko/ManagedEntranceStrings.ko.resx b/src/Microsoft.PowerShell.ConsoleHost/resources/ko/ManagedEntranceStrings.ko.resx index ed665273a67..b2164c82dd0 100644 --- a/src/Microsoft.PowerShell.ConsoleHost/resources/ko/ManagedEntranceStrings.ko.resx +++ b/src/Microsoft.PowerShell.ConsoleHost/resources/ko/ManagedEntranceStrings.ko.resx @@ -127,7 +127,7 @@ [제한된 언어 감사 모드: 제한 없음] - [언어 없음 모드] + [언어 모드 없음] [제한된 언어 모드] diff --git a/src/Microsoft.PowerShell.ConsoleHost/resources/pl/ManagedEntranceStrings.pl.resx b/src/Microsoft.PowerShell.ConsoleHost/resources/pl/ManagedEntranceStrings.pl.resx index 24635e3a3e0..8b12e6b5fec 100644 --- a/src/Microsoft.PowerShell.ConsoleHost/resources/pl/ManagedEntranceStrings.pl.resx +++ b/src/Microsoft.PowerShell.ConsoleHost/resources/pl/ManagedEntranceStrings.pl.resx @@ -121,13 +121,13 @@ PowerShell {0} - [Tryb z ograniczonym językiem] + [Tryb języka z ograniczeniami] [Tryb AUDYTU języka z ograniczeniami: brak ograniczeń] - [Brak trybu języka] + [Tryb bez języka] [Tryb języka z ograniczeniami] diff --git a/src/Microsoft.PowerShell.ConsoleHost/resources/pt-BR/ManagedEntranceStrings.pt-BR.resx b/src/Microsoft.PowerShell.ConsoleHost/resources/pt-BR/ManagedEntranceStrings.pt-BR.resx index 788fc12c0ca..94b6291d36e 100644 --- a/src/Microsoft.PowerShell.ConsoleHost/resources/pt-BR/ManagedEntranceStrings.pt-BR.resx +++ b/src/Microsoft.PowerShell.ConsoleHost/resources/pt-BR/ManagedEntranceStrings.pt-BR.resx @@ -127,10 +127,10 @@ [Modo de AUDITORIA de Linguagem Restrita: Sem Restrições] - [Modo sem Linguagem] + Sem [Modo de Linguagem] - [Modo de Linguagem Restrita] + [Modo de Linguagem Restrito] Uso: pwsh[.exe] [-Login] [[-File] <filePath> [args]] diff --git a/src/Microsoft.PowerShell.ConsoleHost/resources/ru/ManagedEntranceStrings.ru.resx b/src/Microsoft.PowerShell.ConsoleHost/resources/ru/ManagedEntranceStrings.ru.resx index aaf5fb0ed45..bc2240d8459 100644 --- a/src/Microsoft.PowerShell.ConsoleHost/resources/ru/ManagedEntranceStrings.ru.resx +++ b/src/Microsoft.PowerShell.ConsoleHost/resources/ru/ManagedEntranceStrings.ru.resx @@ -121,7 +121,7 @@ PowerShell {0} - [Ограниченный языковой режим] + [Режим ограниченного языка] [Режим АУДИТА с ограничением по языку: без ограничений] @@ -130,7 +130,7 @@ [Режим без языка] - [Ограниченный языковой режим] + [Режим строго ограниченного языка] Usage: pwsh[.exe] [-Login] [[-File] <filePath> [args]] diff --git a/src/Microsoft.PowerShell.ConsoleHost/resources/zh-Hant/CommandLineParameterParserStrings.zh-Hant.resx b/src/Microsoft.PowerShell.ConsoleHost/resources/zh-Hant/CommandLineParameterParserStrings.zh-Hant.resx index b42950d38d3..04fea5b98f1 100644 --- a/src/Microsoft.PowerShell.ConsoleHost/resources/zh-Hant/CommandLineParameterParserStrings.zh-Hant.resx +++ b/src/Microsoft.PowerShell.ConsoleHost/resources/zh-Hant/CommandLineParameterParserStrings.zh-Hant.resx @@ -187,7 +187,7 @@ 無法處理命令,因為 -ConfigurationName 需要一個為遠端端點設定名稱的引數。請指定此引數,然後再試一次。 - 無法處理命令,因為 -ConfigurationFile 需要一個為工作階段設定 (.pssc) 檔案路徑的引數。請指定此引數,然後再試一次。 + 無法處理命令,因為 -ConfigurationFile 需要一個為工作階段組態 (.pssc) 檔案路徑的引數。請指定此引數,然後再試一次。 無法處理命令,因為 -CustomPipeName 需要一個是您所想要使用之管道名稱的引數。請指定此引數,然後再試一次。 diff --git a/src/Microsoft.PowerShell.CoreCLR.Eventing/Microsoft.PowerShell.CoreCLR.Eventing.csproj b/src/Microsoft.PowerShell.CoreCLR.Eventing/Microsoft.PowerShell.CoreCLR.Eventing.csproj index 50eaa1ef791..956731b8024 100644 --- a/src/Microsoft.PowerShell.CoreCLR.Eventing/Microsoft.PowerShell.CoreCLR.Eventing.csproj +++ b/src/Microsoft.PowerShell.CoreCLR.Eventing/Microsoft.PowerShell.CoreCLR.Eventing.csproj @@ -8,7 +8,7 @@ - + diff --git a/src/Microsoft.PowerShell.GlobalTool.Shim/GlobalToolShim.cs b/src/Microsoft.PowerShell.GlobalTool.Shim/GlobalToolShim.cs deleted file mode 100644 index 356cde68152..00000000000 --- a/src/Microsoft.PowerShell.GlobalTool.Shim/GlobalToolShim.cs +++ /dev/null @@ -1,56 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. - -using System; -using System.Collections.Generic; -using System.IO; -using System.Runtime.InteropServices; - -namespace Microsoft.PowerShell.GlobalTool.Shim -{ - /// - /// Shim layer to chose the appropriate runtime for PowerShell DotNet Global tool. - /// - public static class EntryPoint - { - private const string PwshDllName = "pwsh.dll"; - - private const string WinFolderName = "win"; - - private const string UnixFolderName = "unix"; - - /// - /// Entry point for the global tool. - /// - /// Arguments passed to the global tool.' - /// Exit code returned by pwsh. - public static int Main(string[] args) - { - var currentPath = new FileInfo(System.Reflection.Assembly.GetEntryAssembly().Location).Directory.FullName; - var isWindows = OperatingSystem.IsWindows(); - - string platformFolder = isWindows ? WinFolderName : UnixFolderName; - - var arguments = new List(args.Length + 1); - var pwshPath = Path.Combine(currentPath, platformFolder, PwshDllName); - arguments.Add(pwshPath); - arguments.AddRange(args); - - if (File.Exists(pwshPath)) - { - Console.CancelKeyPress += (sender, e) => - { - e.Cancel = true; - }; - - var process = System.Diagnostics.Process.Start("dotnet", arguments); - process.WaitForExit(); - return process.ExitCode; - } - else - { - throw new FileNotFoundException(pwshPath); - } - } - } -} diff --git a/src/Microsoft.PowerShell.GlobalTool.Shim/Microsoft.PowerShell.GlobalTool.Shim.csproj b/src/Microsoft.PowerShell.GlobalTool.Shim/Microsoft.PowerShell.GlobalTool.Shim.csproj deleted file mode 100644 index d0203344cc2..00000000000 --- a/src/Microsoft.PowerShell.GlobalTool.Shim/Microsoft.PowerShell.GlobalTool.Shim.csproj +++ /dev/null @@ -1,18 +0,0 @@ - - - - - Shim for global tool to select appropriate runtime - Microsoft.PowerShell.GlobalTool.Shim - EXE - Microsoft.PowerShell.GlobalTool.Shim - False - - - - - - - - - diff --git a/src/Microsoft.PowerShell.GlobalTool.Shim/runtimeconfig.template.json b/src/Microsoft.PowerShell.GlobalTool.Shim/runtimeconfig.template.json deleted file mode 100644 index 4a5e3e367ec..00000000000 --- a/src/Microsoft.PowerShell.GlobalTool.Shim/runtimeconfig.template.json +++ /dev/null @@ -1,4 +0,0 @@ -// This is required to roll forward to supported minor.patch versions of the runtime. -{ - "rollForwardOnNoCandidateFx": 1 -} diff --git a/src/Microsoft.PowerShell.SDK/Microsoft.PowerShell.SDK.csproj b/src/Microsoft.PowerShell.SDK/Microsoft.PowerShell.SDK.csproj index 42270214c36..9edab48adfd 100644 --- a/src/Microsoft.PowerShell.SDK/Microsoft.PowerShell.SDK.csproj +++ b/src/Microsoft.PowerShell.SDK/Microsoft.PowerShell.SDK.csproj @@ -16,19 +16,19 @@ - - + + - - + + - - - + + + - + - + diff --git a/src/Modules/PSGalleryModules.csproj b/src/Modules/PSGalleryModules.csproj index 245f5018634..5895f866491 100644 --- a/src/Modules/PSGalleryModules.csproj +++ b/src/Modules/PSGalleryModules.csproj @@ -11,10 +11,10 @@ - + - - + + diff --git a/src/System.Management.Automation/System.Management.Automation.csproj b/src/System.Management.Automation/System.Management.Automation.csproj index cbee9283f2b..82906085171 100644 --- a/src/System.Management.Automation/System.Management.Automation.csproj +++ b/src/System.Management.Automation/System.Management.Automation.csproj @@ -32,12 +32,12 @@ - - - - - - + + + + + + diff --git a/src/System.Management.Automation/resources/AutomationExceptions.resx b/src/System.Management.Automation/resources/AutomationExceptions.resx index 9b48e92c0bc..0f13b9ef9da 100644 --- a/src/System.Management.Automation/resources/AutomationExceptions.resx +++ b/src/System.Management.Automation/resources/AutomationExceptions.resx @@ -205,6 +205,7 @@ Compiled Script Block Dot Source - Script block '{0}' invocation into current scope will be disallowed in Constrained Language mode. Script language mode: {1}, Context language mode: {2}. + Script block '{0}' invocation into current scope will be disallowed in ConstrainedLanguage mode. Script language mode: {1}, Context language mode: {2}. + {StrContains="ConstrainedLanguage"} diff --git a/src/System.Management.Automation/resources/CatalogStrings.resx b/src/System.Management.Automation/resources/CatalogStrings.resx index 9abd76d6bc8..072ffeb7f1a 100644 --- a/src/System.Management.Automation/resources/CatalogStrings.resx +++ b/src/System.Management.Automation/resources/CatalogStrings.resx @@ -151,7 +151,8 @@ Catalog version is not valid. We only support catalog version {0} and version {1}. - '{0}' is a version catalog that uses SHA0 or SHA1. Consider regenerating this catalog with '-CatalogVersion 2'. + '{0}' is a version 1 catalog that uses the weak SHA-1 hash algorithm. Consider regenerating this catalog with '-CatalogVersion 2'. + {StrContains="SHA-1"}{StrContains="-CatalogVersion 2"} Unable to open catalog definition file. diff --git a/src/System.Management.Automation/resources/CommandBaseStrings.resx b/src/System.Management.Automation/resources/CommandBaseStrings.resx index a5465c5b457..86038738eae 100644 --- a/src/System.Management.Automation/resources/CommandBaseStrings.resx +++ b/src/System.Management.Automation/resources/CommandBaseStrings.resx @@ -232,12 +232,14 @@ Reviewed by TArcher on 2010-07-20 Script Block Processing Dot-Source Check - Dot-Source processing for script block '{0}' will fail in Constrained Language mode because its language mode '{1}' does not match the current language mode '{2}'. + Dot-Source processing for script block '{0}' will fail in ConstrainedLanguage mode because its language mode '{1}' does not match the current language mode '{2}'. + {StrContains="ConstrainedLanguage"} Command Searcher Command '{0}' in module '{1}' is untrusted and will not be accessible in ConstrainedLanguage mode. + {StrContains="ConstrainedLanguage"} diff --git a/src/System.Management.Automation/resources/ExtendedTypeSystem.resx b/src/System.Management.Automation/resources/ExtendedTypeSystem.resx index 3ff5b77fab4..6c1c9cfec90 100644 --- a/src/System.Management.Automation/resources/ExtendedTypeSystem.resx +++ b/src/System.Management.Automation/resources/ExtendedTypeSystem.resx @@ -396,11 +396,13 @@ PS> [System.Collections.Generic.Comparer``1]::get_Default() Type conversion from HashTable to '{0}' will not be allowed in ConstrainedLanguage mode. + {StrContains="ConstrainedLanguage"} Extended Type System Hashtable Conversion Type conversion from '{0}' to '{1}' will not be allowed in ConstrainedLanguage mode. + {StrContains="ConstrainedLanguage"} diff --git a/src/System.Management.Automation/resources/InternalCommandStrings.resx b/src/System.Management.Automation/resources/InternalCommandStrings.resx index d368d449d20..de24aaf32c8 100644 --- a/src/System.Management.Automation/resources/InternalCommandStrings.resx +++ b/src/System.Management.Automation/resources/InternalCommandStrings.resx @@ -145,13 +145,15 @@ Input name "{0}" cannot be resolved to a method. - Cannot invoke a method in the restricted language mode. + Cannot invoke a method in the RestrictedLanguage mode. + {StrContains="RestrictedLanguage"} The -WhatIf and -Confirm parameters are not supported for script blocks. The '{0}' operation is not allowed in the RestrictedLanguage mode. + {StrContains="RestrictedLanguage"} An operator is required to compare the two specified values. Include a valid operator in the command, and then try the command again. For example, Get-Process | Where-Object -Property Name -eq Idle @@ -188,6 +190,7 @@ ErrorAction, WarningAction, InformationAction, PipelineVariable ForEach-Object Cmdlet - Method invocation on type '{0}' will not be allowed when run in Constrained Language mode. + Method invocation on type '{0}' will not be allowed when run in ConstrainedLanguage mode. + {StrContains="ConstrainedLanguage"} \ No newline at end of file diff --git a/src/System.Management.Automation/resources/Metadata.resx b/src/System.Management.Automation/resources/Metadata.resx index a9cdca1bc50..eab59300eb7 100644 --- a/src/System.Management.Automation/resources/Metadata.resx +++ b/src/System.Management.Automation/resources/Metadata.resx @@ -262,6 +262,7 @@ ValidateTrustedData Attribute Check Failure - The parameter argument '{0}' is not trusted and will fail the ValidateTrustedData parameter attribute check in Constrained Language mode. + The parameter argument '{0}' is not trusted and will fail the ValidateTrustedData parameter attribute check in ConstrainedLanguage mode. + {StrContains="ValidateTrustedData"}{StrContains="ConstrainedLanguage"} diff --git a/src/System.Management.Automation/resources/Modules.resx b/src/System.Management.Automation/resources/Modules.resx index 6319659f1a7..7f72989379a 100644 --- a/src/System.Management.Automation/resources/Modules.resx +++ b/src/System.Management.Automation/resources/Modules.resx @@ -626,6 +626,7 @@ Importing *.ps1 files as modules is not allowed in ConstrainedLanguage mode. + {StrContains="ConstrainedLanguage"} An error has occurred while loading script module {0} because it has a different language mode than the module manifest. The manifest language mode is {1} and the module language mode is {2}. Ensure all module files are signed or otherwise part of your application allow list configuration. @@ -638,6 +639,7 @@ Cannot create new module while the session is in ConstrainedLanguage mode. + {StrContains="ConstrainedLanguage"} Cannot find the built-in module '{0}' that is compatible with the 'Core' edition. Please make sure the PowerShell built-in modules are available. They usually come with the PowerShell package under the $PSHOME module path, and are required for PowerShell to function properly. @@ -646,42 +648,49 @@ Export-ModuleMember Cmdlet - Export of module members will fail in Constrained Language mode because module '{0}', has a language mode '{1}' that is different from the current session '{2}'. + Export of module members will fail in ConstrainedLanguage mode because module '{0}', has a language mode '{1}' that is different from the current session '{2}'. + {StrContains="ConstrainedLanguage"} Module Implicit Function Export - Implicit function export for module '{0}' will be denied because it is trusted (runs in Full Language mode) but the session is not trusted (runs in Constrained Language mode). It is best practice to always export module functions individually by full name. + Implicit function export for module '{0}' will be denied because it is trusted (runs in FullLanguage mode) but the session is not trusted (runs in ConstrainedLanguage mode). It is best practice to always export module functions individually by full name. + {StrContains="FullLanguage"}{StrContains="ConstrainedLanguage"} Importing Script File as Module Importing the script file '{0}' as a module will be disallowed in ConstrainedLanguage mode. + {StrContains="ConstrainedLanguage"} Module Contains Dot-Source Operator - Module '{0}' import will in fail Constrained Language mode because it exports functions using wildcard characters while also using the dot-source operator. + Module '{0}' import will in fail ConstrainedLanguage mode because it exports functions using wildcard characters while also using the dot-source operator. + {StrContains="ConstrainedLanguage"} - "Module Exporting Functions + Module Exporting Functions - Module '{0}' exports functions using name wildcard characters. Any nested module function names will be removed when running in Constrained Language mode. + Module '{0}' exports functions using name wildcard characters. Any nested module function names will be removed when running in ConstrainedLanguage mode. + {StrContains="ConstrainedLanguage"} - "New-Module Cmdlet + New-Module Cmdlet - A new module from an untrusted Constrained Language session will be blocked from providing the FullLanguage script block. + A new module from an untrusted ConstrainedLanguage session will be blocked from providing the FullLanguage script block. + {StrContains="ConstrainedLanguage"}{StrContains="FullLanguage"} - "Module Mismatched Language Modes + Module Mismatched Language Modes - A dependent module is being loaded that has a different language mode than the parent. This will be disallowed when in Constrained Language mode. + A dependent module is being loaded that has a different language mode than the parent. This will be disallowed when in ConstrainedLanguage mode. + {StrContains="ConstrainedLanguage"} diff --git a/src/System.Management.Automation/resources/ParameterBinderStrings.resx b/src/System.Management.Automation/resources/ParameterBinderStrings.resx index 23ee4865ff2..683cf3a9ade 100644 --- a/src/System.Management.Automation/resources/ParameterBinderStrings.resx +++ b/src/System.Management.Automation/resources/ParameterBinderStrings.resx @@ -250,12 +250,14 @@ Method or Property Invocation Not Allowed - Invocation of Method or Property '{0}' on type '{1}' will not be allowed in Constrained Language mode for untrusted scripts. + Invocation of Method or Property '{0}' on type '{1}' will not be allowed in ConstrainedLanguage mode for untrusted scripts. + {StrContains="ConstrainedLanguage"} Type Creation Not Allowed - Creation of Type '{0}' will not be allowed during parameter binding in Constrained Language mode for untrusted scripts. + Creation of Type '{0}' will not be allowed during parameter binding in ConstrainedLanguage mode for untrusted scripts. + {StrContains="ConstrainedLanguage"} diff --git a/src/System.Management.Automation/resources/ParserStrings.resx b/src/System.Management.Automation/resources/ParserStrings.resx index 680de71c01e..645697d5386 100644 --- a/src/System.Management.Automation/resources/ParserStrings.resx +++ b/src/System.Management.Automation/resources/ParserStrings.resx @@ -402,7 +402,8 @@ The correct form is: foreach ($a in $b) {...} Processing was stopped because the script is too complex. - The syntax is not supported by this runspace. This can occur if the runspace is in no-language mode. + The syntax is not supported by this runspace. This can occur if the runspace is in NoLanguage mode. + {StrContains="NoLanguage"} The combination of options with the -split operator is not valid. @@ -581,84 +582,111 @@ The correct form is: foreach ($a in $b) {...} The Data section is missing its statement block. + {StrContains="Data"} The "{0}" parameter of the Data section is not valid. The valid Data section parameter is SupportedCommand. + {StrContains="Data"}{StrContains="SupportedCommand"} - Array references are not allowed in restricted language mode or a Data section. + Array references are not allowed in RestrictedLanguage mode or a Data section. + {StrContains="RestrictedLanguage"}{StrContains="Data"} - Assignment statements are not allowed in restricted language mode or a Data section. + Assignment statements are not allowed in RestrictedLanguage mode or a Data section. + {StrContains="RestrictedLanguage"}{StrContains="Data"} - Redirection is not allowed in restricted language mode or a Data section. + Redirection is not allowed in RestrictedLanguage mode or a Data section. + {StrContains="RestrictedLanguage"}{StrContains="Data"} - The Do and While statements are not allowed in restricted language mode or a Data section. + The Do and While statements are not allowed in RestrictedLanguage mode or a Data section. + {StrContains="Do"}{StrContains="While"}{StrContains="RestrictedLanguage"}{StrContains="Data"} - Expandable strings are not allowed in restricted language mode or a Data section. + Expandable strings are not allowed in RestrictedLanguage mode or a Data section. + {StrContains="RestrictedLanguage"}{StrContains="Data"} - The '{0}' operator is not allowed in restricted language mode or a Data section. + The '{0}' operator is not allowed in RestrictedLanguage mode or a Data section. + {StrContains="RestrictedLanguage"}{StrContains="Data"} - The Trap statement is not allowed in restricted language mode or a Data section. + The Trap statement is not allowed in RestrictedLanguage mode or a Data section. + {StrContains="Trap"}{StrContains="RestrictedLanguage"}{StrContains="Data"} - The Try statement is not allowed in restricted language mode or a Data section. + The Try statement is not allowed in RestrictedLanguage mode or a Data section. + {StrContains="Try"}{StrContains="RestrictedLanguage"}{StrContains="Data"} - Flow control statements such as Break, Continue, Return, Exit, and Throw are not allowed in restricted language mode or a Data section. + Flow control statements such as Break, Continue, Return, Exit, and Throw are not allowed in RestrictedLanguage mode or a Data section. + {StrContains="Break"}{StrContains="Continue"}{StrContains="Return"}{StrContains="Exit"}{StrContains="Throw"}{StrContains="RestrictedLanguage"}{StrContains="Data"} - Foreach statements are not allowed in restricted language mode or a Data section. + Foreach statements are not allowed in RestrictedLanguage mode or a Data section. + {StrContains="Foreach"}{StrContains="RestrictedLanguage"}{StrContains="Data"} - For and While statements are not allowed in restricted language mode or a Data section. + For and While statements are not allowed in RestrictedLanguage mode or a Data section. + {StrContains="For"}{StrContains="While"}{StrContains="RestrictedLanguage"}{StrContains="Data"} - Function declarations are not allowed in restricted language mode or a Data section. + Function declarations are not allowed in RestrictedLanguage mode or a Data section. + {StrContains="Function"}{StrContains="RestrictedLanguage"}{StrContains="Data"} - Method calls are not allowed in restricted language mode or a Data section. + Method calls are not allowed in RestrictedLanguage mode or a Data section. + {StrContains="RestrictedLanguage"}{StrContains="Data"} - Parameter declarations are not allowed in restricted language mode or a Data section. + Parameter declarations are not allowed in RestrictedLanguage mode or a Data section. + {StrContains="RestrictedLanguage"}{StrContains="Data"} - Property references are not allowed in restricted language mode or a Data section. + Property references are not allowed in RestrictedLanguage mode or a Data section. + {StrContains="RestrictedLanguage"}{StrContains="Data"} - Script block literals are not allowed in restricted language mode or a Data section. + Script block literals are not allowed in RestrictedLanguage mode or a Data section. + {StrContains="RestrictedLanguage"}{StrContains="Data"} - The switch statement is not allowed in restricted language mode or a Data section. + The Switch statement is not allowed in RestrictedLanguage mode or a Data section. + {StrContains="Switch"}{StrContains="RestrictedLanguage"}{StrContains="Data"} - A variable that cannot be referenced in restricted language mode or a Data section is being referenced. Variables that can be referenced include the following: {0}. + A variable that cannot be referenced in RestrictedLanguage mode or a Data section is being referenced. Variables that can be referenced include the following: {0}. + {StrContains="RestrictedLanguage"}{StrContains="Data"} - The command '{0}' is not allowed in restricted language mode or a Data section. + The command '{0}' is not allowed in RestrictedLanguage mode or a Data section. + {StrContains="RestrictedLanguage"}{StrContains="Data"} - The data statement is not allowed in restricted language mode or another Data section. + The Data statement is not allowed in RestrictedLanguage mode or another Data section. + {StrContains="RestrictedLanguage"}{StrContains="Data"} The SupportedCommand parameter of the Data section is missing a value. Supply a cmdlet or function name to the parameter. + {StrContains="SupportedCommand"}{StrContains="Data"} - A Begin statement block, Process statement block, or parameter statement is not allowed in a Data section. + A Begin statement block, Process statement block, or Param statement is not allowed in a Data section. + {StrContains="Begin"}{StrContains="Process"}{StrContains="Param"}{StrContains="Data"} - String multiplication results with more than "{0}" characters are not allowed in restricted language mode or a Data section. + String multiplication results with more than "{0}" characters are not allowed in RestrictedLanguage mode or a Data section. + {StrContains="RestrictedLanguage"}{StrContains="Data"} - Array multiplication resulting in more than {0} elements is not allowed in restricted language mode or a Data section. + Array multiplication resulting in more than {0} elements is not allowed in RestrictedLanguage mode or a Data section. + {StrContains="RestrictedLanguage"}{StrContains="Data"} - Dot sourcing is not allowed in restricted language mode or a Data section. + Dot sourcing is not allowed in RestrictedLanguage mode or a Data section. + {StrContains="RestrictedLanguage"}{StrContains="Data"} Attribute argument must be a constant or a script block. @@ -721,10 +749,12 @@ The correct form is: foreach ($a in $b) {...} A null key is not allowed in a hash literal. - Attributes are not allowed in restricted language mode or a Data section. + Attributes are not allowed in RestrictedLanguage mode or a Data section. + {StrContains="RestrictedLanguage"}{StrContains="Data"} - The type {0} is not allowed in restricted language mode or a Data section. + The type {0} is not allowed in RestrictedLanguage mode or a Data section. + {StrContains="RestrictedLanguage"}{StrContains="Data"} '{0}' is a ReadOnly property. @@ -784,7 +814,8 @@ The correct form is: foreach ($a in $b) {...} Missing statement body after keyword '{0}'. - Parallel and sequence blocks are not allowed in restricted language mode or a Data section. + Parallel and Sequence blocks are not allowed in RestrictedLanguage mode or a Data section. + {StrContains="Parallel"}{StrContains="Sequence"}{StrContains="RestrictedLanguage"}{StrContains="Data"} Unexpected keyword '{0}'. @@ -796,7 +827,8 @@ The correct form is: foreach ($a in $b) {...} The method cannot be invoked. - Cannot convert hashtable to an object of the following type: {0}. Hashtable-to-Object conversion is not supported in restricted language mode or a Data section. + Cannot convert hashtable to an object of the following type: {0}. Hashtable-to-Object conversion is not supported in RestrictedLanguage mode or a Data section. + {StrContains="RestrictedLanguage"}{StrContains="Data"} Argument must be constant. @@ -842,7 +874,8 @@ The correct form is: foreach ($a in $b) {...} The schema file {0} was not found. Verify that any modules specified in a configuration statement contain a schema.mof file, and then try running the script again. - Cannot define data section. Definition of additional supported commands is not supported in this language mode. + Cannot define Data section. Definition of additional supported commands is not supported in this language mode. + {StrContains="Data"} Missing '{' in configuration statement. @@ -935,7 +968,8 @@ ModuleVersion : Version of module to import. If used, ModuleName must represent Unable to load resource '{0}': Resource not found. - Configuration keyword is not allowed in constrainedLanguage mode. + Configuration keyword is not allowed in ConstrainedLanguage mode. + {StrContains="ConstrainedLanguage"} The configuration name '{0}' is not valid. Standard names may only contain letters (a-z, A-Z), numbers (0-9), period (.), hyphen (-) and underscore (_). The name may not be null or empty, and should start with a letter. @@ -1321,6 +1355,7 @@ ModuleVersion : Version of module to import. If used, ModuleName must represent Class keyword is not allowed in ConstrainedLanguage mode. + {StrContains="Class"}{StrContains="ConstrainedLanguage"} Missing ':' in the ternary expression. @@ -1338,37 +1373,43 @@ ModuleVersion : Version of module to import. If used, ModuleName must represent Parser Configuration Keyword - The Configuration keyword will not be allowed in Constrained Language mode for untrusted script. + The Configuration keyword will not be allowed in ConstrainedLanguage mode for untrusted script. + {StrContains="Configuration"}{StrContains="ConstrainedLanguage"} Parser Class Keyword - The Class keyword will not be allowed in Constrained Language mode for untrusted script. + The Class keyword will not be allowed in ConstrainedLanguage mode for untrusted script. + {StrContains="Class"}{StrContains="ConstrainedLanguage"} Parser Data Section SupportedCommand - The Data Section that includes the SupportedCommand parameter would be disallowed in Constrained Language mode for untrusted script. + The Data section that includes the SupportedCommand parameter would be disallowed in ConstrainedLanguage mode for untrusted script. + {StrContains="Data"}{StrContains="SupportedCommand"}{StrContains="ConstrainedLanguage"} Module Scope Call Operator - The module scope call operator will be denied in Constrained Language mode. + The module scope call operator will be denied in ConstrainedLanguage mode. + {StrContains="ConstrainedLanguage"} ForEach Keyword Method Invocation - The ForEach keyword will fail '{0}' iteration item method invocation when run in Constrained Language mode. + The ForEach keyword will fail '{0}' iteration item method invocation when run in ConstrainedLanguage mode. + {StrContains="ForEach"}{StrContains="ConstrainedLanguage"} Expression Evaluation May Fail - Creating a steppable pipeline from a script block may require evaluating some expressions within the script block. The expression evaluation will silently fail and return 'null' in Constrained Language mode, unless the expression represents a constant value. + Creating a steppable pipeline from a script block may require evaluating some expressions within the script block. The expression evaluation will silently fail and return 'null' in ConstrainedLanguage mode, unless the expression represents a constant value. + {StrContains="ConstrainedLanguage"} Configuration keyword is not supported on ARM64 processors. diff --git a/src/System.Management.Automation/resources/RemotingErrorIdStrings.resx b/src/System.Management.Automation/resources/RemotingErrorIdStrings.resx index 029a7b47b6e..5809d413683 100644 --- a/src/System.Management.Automation/resources/RemotingErrorIdStrings.resx +++ b/src/System.Management.Automation/resources/RemotingErrorIdStrings.resx @@ -1022,6 +1022,7 @@ All WinRM sessions connected to PowerShell session configurations, such as Micro Language mode to apply when applied to a session. Can be 'NoLanguage' (recommended), 'RestrictedLanguage', 'ConstrainedLanguage', or 'FullLanguage' + {StrContains="NoLanguage"}{StrContains="RestrictedLanguage"}{StrContains="ConstrainedLanguage"}{StrContains="FullLanguage"} Modules to import when applied to a session @@ -1721,7 +1722,8 @@ SSH client process terminated before connection could be established. Expression Evaluation May Fail - Creating a PowerShell object from a script block may require evaluating some expressions within the script block. The expression evaluation will silently fail and return 'null' in Constrained Language mode, unless the expression represents a constant value. + Creating a PowerShell object from a script block may require evaluating some expressions within the script block. The expression evaluation will silently fail and return 'null' in ConstrainedLanguage mode, unless the expression represents a constant value. + {StrContains="ConstrainedLanguage"} Failed to get Hyper-V VM State. The value was of the type {0} but was expected to be Microsoft.HyperV.PowerShell.VMState or System.String. diff --git a/src/System.Management.Automation/resources/RunspaceStrings.resx b/src/System.Management.Automation/resources/RunspaceStrings.resx index e44f2d7a202..9a6093e3615 100644 --- a/src/System.Management.Automation/resources/RunspaceStrings.resx +++ b/src/System.Management.Automation/resources/RunspaceStrings.resx @@ -184,7 +184,8 @@ The session is busy. You will be connected to the session as soon as it is available. To cancel the Enter-PSSession command, press Ctrl-C. - The command cannot be completed. Script invocation is not supported in this session configuration. This can occur if the session configuration is in no-language mode. + The command cannot be completed. Script invocation is not supported in this session configuration. This can occur if the session configuration is in NoLanguage mode. + {StrContains="NoLanguage"} You cannot use Disconnect and Connect operations on local runspaces. diff --git a/src/System.Management.Automation/resources/SecuritySupportStrings.resx b/src/System.Management.Automation/resources/SecuritySupportStrings.resx index c8ad9f45ef6..cdb6ab6b535 100644 --- a/src/System.Management.Automation/resources/SecuritySupportStrings.resx +++ b/src/System.Management.Automation/resources/SecuritySupportStrings.resx @@ -164,5 +164,6 @@ Script file '{0}' is not trusted by policy and will run in ConstrainedLanguage mode. + {StrContains="ConstrainedLanguage"} diff --git a/src/System.Management.Automation/resources/SessionStateStrings.resx b/src/System.Management.Automation/resources/SessionStateStrings.resx index b106f073d7f..27d3505d36f 100644 --- a/src/System.Management.Automation/resources/SessionStateStrings.resx +++ b/src/System.Management.Automation/resources/SessionStateStrings.resx @@ -653,5 +653,6 @@ Changing or creating the variable '{0}' scope to AllScope will be prevented in ConstrainedLanguage mode. + {StrContains="ConstrainedLanguage"} diff --git a/src/System.Management.Automation/resources/cs/AutomationExceptions.cs.resx b/src/System.Management.Automation/resources/cs/AutomationExceptions.cs.resx index b275efa4c55..d9911753597 100644 --- a/src/System.Management.Automation/resources/cs/AutomationExceptions.cs.resx +++ b/src/System.Management.Automation/resources/cs/AutomationExceptions.cs.resx @@ -205,6 +205,7 @@ Zkompilovaný blok skriptu načtený do aktuálního oboru platnosti (dot source) - Vyvolání bloku skriptu {0} do aktuálního oboru bude v režimu Constrained Language zakázáno. Režim jazyka skriptu: {1}, režim jazyka kontextu: {2}. + Blok skriptu '{0}' vyvolání do aktuálního oboru bude v režimu ConstrainedLanguage zakázán. Režim skriptovacího jazyka: {1}, režim kontextového jazyka: {2}. + {StrContains="ConstrainedLanguage"} \ No newline at end of file diff --git a/src/System.Management.Automation/resources/cs/CatalogStrings.cs.resx b/src/System.Management.Automation/resources/cs/CatalogStrings.cs.resx index f71f66f773b..3ab3e990145 100644 --- a/src/System.Management.Automation/resources/cs/CatalogStrings.cs.resx +++ b/src/System.Management.Automation/resources/cs/CatalogStrings.cs.resx @@ -151,7 +151,8 @@ Verze katalogu není platná. Podporujeme jen katalog verze {0} a verze {1}. - '{0}' is a version catalog that uses SHA0 or SHA1. Consider regenerating this catalog with '-CatalogVersion 2'. + {0} je katalog verze 1, který používá slabý hashovací algoritmus SHA-1. Zvažte opětovné vygenerování tohoto katalogu pomocí -CatalogVersion 2. + {StrContains="SHA-1"}{StrContains="-CatalogVersion 2"} Soubor s definicí katalogu nejde otevřít. diff --git a/src/System.Management.Automation/resources/cs/CommandBaseStrings.cs.resx b/src/System.Management.Automation/resources/cs/CommandBaseStrings.cs.resx index 078d56b5f97..0036a0d8cd4 100644 --- a/src/System.Management.Automation/resources/cs/CommandBaseStrings.cs.resx +++ b/src/System.Management.Automation/resources/cs/CommandBaseStrings.cs.resx @@ -232,12 +232,14 @@ Reviewed by TArcher on 2010-07-20 Kontrola zpracování bloku skriptu pomocí tečkové notace - Zpracování bloku skriptu {0} pomocí tečkové notace v režimu omezeného jazyka selže, protože jeho jazykový režim {1} neodpovídá aktuálnímu jazykovému režimu {2}. + Zpracování bloku skriptu {0} pomocí operátoru dot-source v režimu ConstrainedLanguage selže, protože jeho režim jazyka {1} neodpovídá aktuálnímu režimu jazyka {2}. + {StrContains="ConstrainedLanguage"} Vyhledávač příkazů Příkaz {0} v modulu {1} není důvěryhodný a v režimu ConstrainedLanguage nebude přístupný. + {StrContains="ConstrainedLanguage"} \ No newline at end of file diff --git a/src/System.Management.Automation/resources/cs/ExtendedTypeSystem.cs.resx b/src/System.Management.Automation/resources/cs/ExtendedTypeSystem.cs.resx index 9c0ad1bfe55..de27913a388 100644 --- a/src/System.Management.Automation/resources/cs/ExtendedTypeSystem.cs.resx +++ b/src/System.Management.Automation/resources/cs/ExtendedTypeSystem.cs.resx @@ -396,11 +396,13 @@ PS> [System.Collections.Generic.Comparer``1]::get_Default() V režimu ConstrainedLanguage nebude povolen převod typu HashTable na {0}. + {StrContains="ConstrainedLanguage"} Převod tabulky Hashtable v rozšířeném systému typů V režimu ConstrainedLanguage nebude povolen převod typu {0} na {1}. + {StrContains="ConstrainedLanguage"} \ No newline at end of file diff --git a/src/System.Management.Automation/resources/cs/InternalCommandStrings.cs.resx b/src/System.Management.Automation/resources/cs/InternalCommandStrings.cs.resx index d588d17fe67..efabee626f2 100644 --- a/src/System.Management.Automation/resources/cs/InternalCommandStrings.cs.resx +++ b/src/System.Management.Automation/resources/cs/InternalCommandStrings.cs.resx @@ -145,13 +145,15 @@ Název vstupu {0} nelze přiřadit metodě. - Nelze vyvolat metodu v režimu omezeného jazyka. + V režimu RestrictedLanguage nelze vyvolat metodu. + {StrContains="RestrictedLanguage"} Parametry -WhatIf a -Confirm nejsou podporovány pro bloky skriptu. Operace {0} není v režimu RestrictedLanguage povolena. + {StrContains="RestrictedLanguage"} K porovnání dvou zadaných hodnot je vyžadován operátor. Do příkazu zahrňte platný operátor a potom příkaz spusťte znovu. Například Get-Process | Where-Object -Property Name -eq Idle @@ -188,6 +190,7 @@ ErrorAction, WarningAction, InformationAction, PipelineVariable Rutina ForEach-Object - Vyvolání metody u typu {0} nebude povoleno, pokud bude spuštěno v režimu omezeného jazyka. + Volání metody u typu '{0}' nebude při spuštění v režimu ConstrainedLanguage povoleno. + {StrContains="ConstrainedLanguage"} \ No newline at end of file diff --git a/src/System.Management.Automation/resources/cs/Metadata.cs.resx b/src/System.Management.Automation/resources/cs/Metadata.cs.resx index 4d5ad4f8fb4..fcd6be76590 100644 --- a/src/System.Management.Automation/resources/cs/Metadata.cs.resx +++ b/src/System.Management.Automation/resources/cs/Metadata.cs.resx @@ -262,6 +262,7 @@ Selhání kontroly atributu ValidateTrustedData - Argument parametru {0} není důvěryhodný a v režimu Constrained Language neprojde kontrolou atributu parametru ValidateTrustedData. + Argument parametru '{0}' není důvěryhodný a v režimu ConstrainedLanguage neprojde kontrolou atributu ValidateTrustedData parametru. + {StrContains="ValidateTrustedData"}{StrContains="ConstrainedLanguage"} \ No newline at end of file diff --git a/src/System.Management.Automation/resources/cs/Modules.cs.resx b/src/System.Management.Automation/resources/cs/Modules.cs.resx index dc1ee22f194..43af5ef0569 100644 --- a/src/System.Management.Automation/resources/cs/Modules.cs.resx +++ b/src/System.Management.Automation/resources/cs/Modules.cs.resx @@ -626,6 +626,7 @@ Import souborů *.ps1 jako modulů není v režimu ConstrainedLanguage povolený. + {StrContains="ConstrainedLanguage"} Při načítání modulu skriptu {0} došlo k chybě, protože má jiný jazykový režim než manifest modulu. Jazykový režim manifestu je {1} a jazykový režim modulu je {2}. Ověřte, že jsou všechny soubory modulu podepsané nebo jinak zahrnuté v konfiguraci seznamu povolených aplikací. @@ -638,6 +639,7 @@ V režimu ConstrainedLanguage nejde vytvořit nový modul. + {StrContains="ConstrainedLanguage"} Nejde najít předdefinovaný modul {0}, který je kompatibilní s edicí Core. Ověřte, že jsou předdefinované moduly PowerShellu dostupné. Obvykle jsou součástí balíčku PowerShellu v cestě modulu $PSHOME a PowerShell je potřebuje ke správnému fungování. @@ -646,42 +648,49 @@ Rutina Export-ModuleMember - Export členů modulu v režimu Constrained Language selže, protože modul {0} má jazykový režim {1}, který se liší od aktuální relace {2}. + Export členů modulu se v režimu ConstrainedLanguage nezdaří, protože modul '{0}' má '{1}' jazykového režimu, který se liší od aktuálního '{2}' relace. + {StrContains="ConstrainedLanguage"} Implicitní export funkcí modulu - Implicitní export funkcí modulu {0} bude zamítnut, protože modul je důvěryhodný (běží v režimu Full Language), ale relace důvěryhodná není (běží v režimu Constrained Language). Osvědčeným postupem je vždy exportovat funkce modulu jednotlivě pod úplným názvem. + Implicitní export funkcí z modulu {0} bude odepřen, protože modul je důvěryhodný (běží v režimu FullLanguage), ale relace důvěryhodná není (běží v režimu ConstrainedLanguage). Osvědčeným postupem je vždy exportovat funkce modulu jednotlivě pod úplným názvem. + {StrContains="FullLanguage"}{StrContains="ConstrainedLanguage"} Import souboru skriptu jako modulu Import souboru skriptu {0} jako modulu nebude v režimu ConstrainedLanguage povolený. + {StrContains="ConstrainedLanguage"} Modul obsahuje operátor dot-source - Import modulu {0} v režimu ConstrainedLanguage selže, protože modul exportuje funkce pomocí zástupných znaků a zároveň používá operátor dot-source. + Import modulu {0} v režimu ConstrainedLanguage selže, protože modul exportuje funkce pomocí zástupných znaků a současně používá operátor dot-source. + {StrContains="ConstrainedLanguage"} - Funkce exportované modulem + Export funkcí z modulu - Modul {0} exportuje funkce pomocí zástupných znaků v názvech. Při spuštění v režimu Constrained Language se odeberou všechny názvy funkcí vnořených modulů. + Modul '{0}' exportuje funkce pomocí zástupných znaků názvu. Všechny vnořené názvy funkcí modulu se při spuštění v režimu ConstrainedLanguage odeberou. + {StrContains="ConstrainedLanguage"} Rutina New-Module - Novému modulu z nedůvěryhodné relace Constrained Language bude zablokováno poskytování bloku skriptu FullLanguage. + Nový modul z nedůvěryhodné relace v režimu ConstrainedLanguage nebude moct poskytovat blok skriptu v režimu FullLanguage. + {StrContains="ConstrainedLanguage"}{StrContains="FullLanguage"} - Neshodné jazykové režimy modulu + Neshodné režimy jazyka modulů - Načítá se závislý modul, který má jiný jazykový režim než nadřazený modul. V režimu Constrained Language to nebude povolené. + Načítá se závislý modul, který má jiný jazykový režim než nadřazený modul. V režimu ConstrainedLanguage to nebude povolené. + {StrContains="ConstrainedLanguage"} \ No newline at end of file diff --git a/src/System.Management.Automation/resources/cs/ParameterBinderStrings.cs.resx b/src/System.Management.Automation/resources/cs/ParameterBinderStrings.cs.resx index 726cdb04f43..737cc62724d 100644 --- a/src/System.Management.Automation/resources/cs/ParameterBinderStrings.cs.resx +++ b/src/System.Management.Automation/resources/cs/ParameterBinderStrings.cs.resx @@ -250,12 +250,14 @@ Volání metody nebo vlastnosti není povolené - Volání metody nebo vlastnosti {0} u typu {1} nebude v režimu omezeného jazyka povolené pro nedůvěryhodné skripty. + Vyvolání metody nebo vlastnosti '{0}' typu '{1}' nebude v režimu ConstrainedLanguage pro nedůvěryhodné skripty povoleno. + {StrContains="ConstrainedLanguage"} Vytvoření typu není povolené - Vytvoření typu {0} nebude při vazbě parametrů v režimu omezeného jazyka povolené pro nedůvěryhodné skripty. + Vytvoření typu '{0}' nebude povoleno během vazby parametrů v režimu ConstrainedLanguage pro nedůvěryhodné skripty. + {StrContains="ConstrainedLanguage"} \ No newline at end of file diff --git a/src/System.Management.Automation/resources/cs/ParserStrings.cs.resx b/src/System.Management.Automation/resources/cs/ParserStrings.cs.resx index 8b53ff4eabe..926f3241e2a 100644 --- a/src/System.Management.Automation/resources/cs/ParserStrings.cs.resx +++ b/src/System.Management.Automation/resources/cs/ParserStrings.cs.resx @@ -402,7 +402,8 @@ Správný tvar je: foreach ($a in $b) {...} Zpracování se zastavilo, protože skript je příliš složitý. - Tato syntaxe není v tomto runspace podporovaná. K tomu může dojít, pokud je runspace v režimu bez jazyka. + Tato syntaxe není v tomto prostředí runspace podporovaná. K tomu může dojít, pokud je prostředí runspace v režimu NoLanguage. + {StrContains="NoLanguage"} Kombinace možností s operátorem -split není platná. @@ -581,84 +582,111 @@ Správný tvar je: foreach ($a in $b) {...} Oddílu Data chybí blok příkazů. + {StrContains="Data"} Parametr {0} oddílu Data není platný. Platný parametr oddílu Data je SupportedCommand. + {StrContains="Data"}{StrContains="SupportedCommand"} - Odkazy na pole nejsou povolené v režimu omezeného jazyka ani v oddílu Data. + Odkazy na pole nejsou v režimu RestrictedLanguage ani v oddílu Data povolené. + {StrContains="RestrictedLanguage"}{StrContains="Data"} - Příkazy přiřazení nejsou povolené v režimu omezeného jazyka ani v oddílu Data. + Příkazy přiřazení nejsou v režimu RestrictedLanguage ani v oddílu Data povolené. + {StrContains="RestrictedLanguage"}{StrContains="Data"} - Přesměrování není povolené v režimu omezeného jazyka ani v oddílu Data. + Přesměrování není v režimu RestrictedLanguage ani v oddílu Data povolené. + {StrContains="RestrictedLanguage"}{StrContains="Data"} - Příkazy Do a While nejsou povolené v režimu omezeného jazyka ani v oddílu Data. + Příkazy Do a While nejsou v režimu RestrictedLanguage ani v oddílu Data povolené. + {StrContains="Do"}{StrContains="While"}{StrContains="RestrictedLanguage"}{StrContains="Data"} - Rozbalitelné řetězce nejsou povolené v režimu omezeného jazyka ani v oddílu Data. + Rozbalitelné řetězce nejsou v režimu RestrictedLanguage ani v oddílu Data povolené. + {StrContains="RestrictedLanguage"}{StrContains="Data"} - Operátor {0} není povolený v režimu omezeného jazyka ani v oddílu Data. + Operátor '{0}' není v režimu RestrictedLanguage nebo v oddílu Data povolen. + {StrContains="RestrictedLanguage"}{StrContains="Data"} - Příkaz Trap není povolený v režimu omezeného jazyka ani v oddílu Data. + Příkaz Trap není v režimu RestrictedLanguage ani v oddílu Data povolený. + {StrContains="Trap"}{StrContains="RestrictedLanguage"}{StrContains="Data"} - Příkaz Try není povolený v režimu omezeného jazyka ani v oddílu Data. + Příkaz Try není v režimu RestrictedLanguage ani v oddílu Data povolený. + {StrContains="Try"}{StrContains="RestrictedLanguage"}{StrContains="Data"} - Příkazy řízení toku, například Break, Continue, Return, Exit a Throw, nejsou povolené v režimu omezeného jazyka ani v oddílu Data. + Příkazy řízení toku, jako jsou Break, Continue, Return, Exit a Throw, nejsou v režimu RestrictedLanguage nebo oddílu Data povoleny. + {StrContains="Break"}{StrContains="Continue"}{StrContains="Return"}{StrContains="Exit"}{StrContains="Throw"}{StrContains="RestrictedLanguage"}{StrContains="Data"} - Příkazy Foreach nejsou povolené v režimu omezeného jazyka ani v oddílu Data. + Příkazy Foreach nejsou v režimu RestrictedLanguage ani v oddílu Data povolené. + {StrContains="Foreach"}{StrContains="RestrictedLanguage"}{StrContains="Data"} - Příkazy For a While nejsou povolené v režimu omezeného jazyka ani v oddílu Data. + Příkazy For a While nejsou v režimu RestrictedLanguage ani v oddílu Data povolené. + {StrContains="For"}{StrContains="While"}{StrContains="RestrictedLanguage"}{StrContains="Data"} - Deklarace funkcí nejsou povolené v režimu omezeného jazyka ani v oddílu Data. + Deklarace funkcí (Function) nejsou v režimu RestrictedLanguage ani v oddílu Data povolené. + {StrContains="Function"}{StrContains="RestrictedLanguage"}{StrContains="Data"} - Volání metod nejsou povolená v režimu omezeného jazyka ani v oddílu Data. + Volání metod nejsou v režimu RestrictedLanguage ani v oddílu Data povolená. + {StrContains="RestrictedLanguage"}{StrContains="Data"} - Deklarace parametrů nejsou povolené v režimu omezeného jazyka ani v oddílu Data. + Deklarace parametrů nejsou v režimu RestrictedLanguage ani v oddílu Data povolené. + {StrContains="RestrictedLanguage"}{StrContains="Data"} - Odkazy na vlastnosti nejsou povolené v režimu omezeného jazyka ani v oddílu Data. + Odkazy na vlastnosti nejsou v režimu RestrictedLanguage ani v oddílu Data povolené. + {StrContains="RestrictedLanguage"}{StrContains="Data"} - Literály bloků skriptů nejsou povolené v režimu omezeného jazyka ani v oddílu Data. + Literály bloků skriptu nejsou v režimu RestrictedLanguage ani v oddílu Data povolené. + {StrContains="RestrictedLanguage"}{StrContains="Data"} - Příkaz switch není povolený v režimu omezeného jazyka ani v oddílu Data. + Příkaz Switch není v režimu RestrictedLanguage ani v oddílu Data povolený. + {StrContains="Switch"}{StrContains="RestrictedLanguage"}{StrContains="Data"} - Odkazuje se na proměnnou, na kterou v režimu omezeného jazyka ani v oddílu Data odkazovat nejde. Mezi proměnné, na které lze odkazovat, patří: {0}. + Odkazuje se na proměnnou, na kterou v režimu RestrictedLanguage ani v oddílu Data odkazovat nelze. Mezi proměnné, na které lze odkazovat, patří: {0}. + {StrContains="RestrictedLanguage"}{StrContains="Data"} - Příkaz {0} není povolený v režimu omezeného jazyka ani v oddílu Data. + Příkaz '{0}' není v režimu RestrictedLanguage nebo v oddílu Data povolen. + {StrContains="RestrictedLanguage"}{StrContains="Data"} - Příkaz Data není povolený v režimu omezeného jazyka ani v jiném oddílu Data. + Příkaz Data není v režimu RestrictedLanguage ani v jiném oddílu Data povolený. + {StrContains="RestrictedLanguage"}{StrContains="Data"} Parametru SupportedCommand oddílu Data chybí hodnota. Zadejte parametru název rutiny nebo funkce. + {StrContains="SupportedCommand"}{StrContains="Data"} - Blok příkazů Begin, blok příkazů Process ani příkaz parametru nejsou v oddílu Data povolené. + V oddílu Data není povolený blok příkazu Begin, blok příkazu Process ani příkaz Param. + {StrContains="Begin"}{StrContains="Process"}{StrContains="Param"}{StrContains="Data"} - Výsledky násobení řetězců s více než {0} znaky nejsou povolené v režimu omezeného jazyka ani v oddílu Data. + Výsledky násobení řetězců s více než "{0}" znaky nejsou v režimu RestrictedLanguage nebo v oddílu Data povoleny. + {StrContains="RestrictedLanguage"}{StrContains="Data"} - Násobení pole s výsledkem obsahujícím více než {0} prvků není povolené v režimu omezeného jazyka ani v oddílu Data. + Násobení polí, jehož výsledkem je více než {0} prvků, není v režimu RestrictedLanguage nebo v oddílu Data povoleno. + {StrContains="RestrictedLanguage"}{StrContains="Data"} - Dot sourcing není povolený v režimu omezeného jazyka ani v oddílu Data. + Použití operátoru dot-source není v režimu RestrictedLanguage ani v oddílu Data povolené. + {StrContains="RestrictedLanguage"}{StrContains="Data"} Argument atributu musí být konstanta nebo blok skriptu. @@ -721,10 +749,12 @@ Správný tvar je: foreach ($a in $b) {...} Klíč null není v literálu hashovací tabulky povolený. - Atributy nejsou povolené v režimu omezeného jazyka ani v oddílu Data. + Atributy nejsou v režimu RestrictedLanguage ani v oddílu Data povolené. + {StrContains="RestrictedLanguage"}{StrContains="Data"} - Typ {0} není povolený v režimu omezeného jazyka ani v oddílu Data. + Typ {0} není v režimu RestrictedLanguage ani v oddílu Data povolený. + {StrContains="RestrictedLanguage"}{StrContains="Data"} {0} je vlastnost jen pro čtení. @@ -784,7 +814,8 @@ Správný tvar je: foreach ($a in $b) {...} Za klíčovým slovem {0} chybí tělo příkazu. - Bloky Parallel a Sequence nejsou povolené v režimu omezeného jazyka ani v oddílu Data. + Bloky Parallel a Sequence nejsou v režimu RestrictedLanguage ani v oddílu Data povolené. + {StrContains="Parallel"}{StrContains="Sequence"}{StrContains="RestrictedLanguage"}{StrContains="Data"} Neočekávané klíčové slovo {0}. @@ -796,7 +827,8 @@ Správný tvar je: foreach ($a in $b) {...} Tuto metodu nelze vyvolat. - Hashovací tabulku nejde převést na objekt následujícího typu: {0}. Převod hashovací tabulky na objekt není podporovaný v režimu omezeného jazyka ani v oddílu Data. + Hashovací tabulku nejde převést na objekt následujícího typu: {0}. Převod hashovací tabulky na objekt není v režimu RestrictedLanguage ani v oddílu Data podporovaný. + {StrContains="RestrictedLanguage"}{StrContains="Data"} Argument musí být konstanta. @@ -842,7 +874,8 @@ Správný tvar je: foreach ($a in $b) {...} Soubor schématu {0} se nenašel. Ověřte, že všechny moduly zadané v příkazu konfigurace obsahují soubor schema.mof, a potom zkuste skript spustit znovu. - Oddíl Data nejde definovat. Definování dalších podporovaných příkazů není v tomto jazykovém režimu podporované. + Nelze definovat oddíl Data. Definování dalších podporovaných příkazů není v tomto jazykovém režimu podporované. + {StrContains="Data"} V příkazu konfigurace chybí {. @@ -935,7 +968,8 @@ ModuleVersion : Verze modulu k importu. Pokud se použije, ModuleName musí podl Prostředek {0} se nepodařilo načíst: Prostředek se nenašel. - Klíčové slovo Configuration není v režimu constrainedLanguage povolené. + Klíčové slovo konfigurace není v režimu ConstrainedLanguage povoleno. + {StrContains="ConstrainedLanguage"} Název konfigurace {0} není platný. Standardní názvy můžou obsahovat jen písmena (a-z, A-Z), číslice (0-9), tečku (.), spojovník (-) a podtržítko (_). Název nesmí být null ani prázdný a měl by začínat písmenem. @@ -1321,6 +1355,7 @@ ModuleVersion : Verze modulu k importu. Pokud se použije, ModuleName musí podl Klíčové slovo Class není v režimu ConstrainedLanguage povolené. + {StrContains="Class"}{StrContains="ConstrainedLanguage"} V ternárním výrazu chybí :. @@ -1338,37 +1373,43 @@ ModuleVersion : Verze modulu k importu. Pokud se použije, ModuleName musí podl Klíčové slovo Configuration parseru - Klíčové slovo Configuration nebude v režimu Constrained Language u nedůvěryhodného skriptu povolené. + Klíčové slovo Configuration nebude v nedůvěryhodném skriptu v režimu ConstrainedLanguage povolené. + {StrContains="Configuration"}{StrContains="ConstrainedLanguage"} Klíčové slovo Class parseru - Klíčové slovo Class nebude v režimu Constrained Language u nedůvěryhodného skriptu povolené. + Klíčové slovo Class nebude v nedůvěryhodném skriptu v režimu ConstrainedLanguage povolené. + {StrContains="Class"}{StrContains="ConstrainedLanguage"} SupportedCommand oddílu Data parseru - Oddíl Data, který obsahuje parametr SupportedCommand, nebude v režimu Constrained Language u nedůvěryhodného skriptu povolený. + V nedůvěryhodném skriptu by oddíl Data s parametrem SupportedCommand nebyl v režimu ConstrainedLanguage povolený. + {StrContains="Data"}{StrContains="SupportedCommand"}{StrContains="ConstrainedLanguage"} Operátor volání oboru modulu - Operátor volání oboru modulu bude v režimu Constrained Language zamítnutý. + Použití operátoru volání v oboru modulu bude v režimu ConstrainedLanguage odepřeno. + {StrContains="ConstrainedLanguage"} Vyvolání metody klíčového slova ForEach - Klíčové slovo ForEach při spuštění v režimu Constrained Language selže při vyvolání metody položky iterace {0}. + Klíčové slovo ForEach selže '{0}' vyvolání metody položky iterace při spuštění v režimu ConstrainedLanguage. + {StrContains="ForEach"}{StrContains="ConstrainedLanguage"} Vyhodnocení výrazu může selhat - Vytvoření postupně spustitelného kanálu z bloku skriptu může vyžadovat vyhodnocení některých výrazů v bloku skriptu. Vyhodnocení výrazu v tichém režimu selže a vrátí hodnotu null v režimu omezeného jazyka, pokud výraz nepředstavuje konstantní hodnotu. + Vytvoření postupně spustitelného kanálu z bloku skriptu může vyžadovat vyhodnocení některých výrazů v bloku skriptu. V režimu ConstrainedLanguage vyhodnocení výrazu bez upozornění selže a vrátí hodnotu null, pokud výraz nepředstavuje konstantní hodnotu. + {StrContains="ConstrainedLanguage"} Klíčové slovo Configuration není na procesorech ARM64 podporované. diff --git a/src/System.Management.Automation/resources/cs/RemotingErrorIdStrings.cs.resx b/src/System.Management.Automation/resources/cs/RemotingErrorIdStrings.cs.resx index b0afdeaf659..9ab50585176 100644 --- a/src/System.Management.Automation/resources/cs/RemotingErrorIdStrings.cs.resx +++ b/src/System.Management.Automation/resources/cs/RemotingErrorIdStrings.cs.resx @@ -1022,6 +1022,7 @@ Všechny relace WinRM připojené ke konfiguracím relací PowerShellu, jako je Jazykový režim, který se použije při použití v relaci. Může být NoLanguage (doporučeno), RestrictedLanguage, ConstrainedLanguage nebo FullLanguage + {StrContains="NoLanguage"}{StrContains="RestrictedLanguage"}{StrContains="ConstrainedLanguage"}{StrContains="FullLanguage"} Moduly, které se mají importovat při použití v relaci @@ -1721,7 +1722,8 @@ Proces klienta SSH se ukončil dříve, než bylo možné navázat připojení.< Vyhodnocení výrazu může selhat - Vytvoření objektu PowerShellu z bloku skriptu může vyžadovat vyhodnocení některých výrazů uvnitř bloku skriptu. Vyhodnocení výrazu v tichém režimu selže a vrátí hodnotu null v režimu omezeného jazyka, pokud výraz nepředstavuje konstantní hodnotu. + Vytvoření objektu PowerShellu z bloku skriptu může vyžadovat vyhodnocení některých výrazů uvnitř bloku skriptu. V režimu ConstrainedLanguage vyhodnocení výrazu bez upozornění selže a vrátí hodnotu null, pokud výraz nepředstavuje konstantní hodnotu. + {StrContains="ConstrainedLanguage"} Nepovedlo se získat stav virtuálního počítače Hyper-V. Hodnota byla typu {0}, ale očekávala se hodnota Microsoft.HyperV.PowerShell.VMState nebo System.String. diff --git a/src/System.Management.Automation/resources/cs/RunspaceStrings.cs.resx b/src/System.Management.Automation/resources/cs/RunspaceStrings.cs.resx index 3e5c659135f..7bc1e69b53f 100644 --- a/src/System.Management.Automation/resources/cs/RunspaceStrings.cs.resx +++ b/src/System.Management.Automation/resources/cs/RunspaceStrings.cs.resx @@ -184,7 +184,8 @@ Relace je zaneprázdněna. Jakmile bude relace dostupná, budete k ní připojeni. Pokud chcete zrušit příkaz Enter-PSSession, stiskněte Ctrl+C. - Příkaz nelze dokončit. Spouštění skriptů není v této konfiguraci relace podporováno. K tomu může dojít, pokud je konfigurace relace v režimu bez jazyka. + Příkaz nelze dokončit. Spouštění skriptů není v této konfiguraci relace podporováno. K tomu může dojít, pokud je konfigurace relace v režimu NoLanguage. + {StrContains="NoLanguage"} Operace Disconnect a Connect nelze používat v místních prostředích runspace. diff --git a/src/System.Management.Automation/resources/cs/SecuritySupportStrings.cs.resx b/src/System.Management.Automation/resources/cs/SecuritySupportStrings.cs.resx index 130d1dff600..e767c712d35 100644 --- a/src/System.Management.Automation/resources/cs/SecuritySupportStrings.cs.resx +++ b/src/System.Management.Automation/resources/cs/SecuritySupportStrings.cs.resx @@ -164,5 +164,6 @@ Soubor skriptu {0} není podle zásad důvěryhodný a bude spuštěn v režimu ConstrainedLanguage. + {StrContains="ConstrainedLanguage"} \ No newline at end of file diff --git a/src/System.Management.Automation/resources/cs/SessionStateStrings.cs.resx b/src/System.Management.Automation/resources/cs/SessionStateStrings.cs.resx index 56dc99ffbd4..1eb8ed72adf 100644 --- a/src/System.Management.Automation/resources/cs/SessionStateStrings.cs.resx +++ b/src/System.Management.Automation/resources/cs/SessionStateStrings.cs.resx @@ -653,5 +653,6 @@ V režimu ConstrainedLanguage nebude možné změnit ani vytvořit proměnnou {0} s oborem AllScope. + {StrContains="ConstrainedLanguage"} \ No newline at end of file diff --git a/src/System.Management.Automation/resources/de/AutomationExceptions.de.resx b/src/System.Management.Automation/resources/de/AutomationExceptions.de.resx index f044f634e0e..50a9b3d57fe 100644 --- a/src/System.Management.Automation/resources/de/AutomationExceptions.de.resx +++ b/src/System.Management.Automation/resources/de/AutomationExceptions.de.resx @@ -205,6 +205,7 @@ Punktquellen des kompilierten Skriptblocks - Der Aufruf des Skriptblocks „{0}“ im aktuellen Bereich ist im eingeschränkten Sprachmodus nicht zulässig. Skriptsprachmodus: {1}, Kontextsprachmodus: {2}. + Der Aufruf des Skriptblocks „{0}“ im aktuellen Bereich ist im ConstrainedLanguage-Modus nicht zulässig. Skriptsprachmodus: {1}, Kontextsprachmodus: {2}. + {StrContains="ConstrainedLanguage"} \ No newline at end of file diff --git a/src/System.Management.Automation/resources/de/CatalogStrings.de.resx b/src/System.Management.Automation/resources/de/CatalogStrings.de.resx index 89625898f81..c58f38efb06 100644 --- a/src/System.Management.Automation/resources/de/CatalogStrings.de.resx +++ b/src/System.Management.Automation/resources/de/CatalogStrings.de.resx @@ -151,7 +151,8 @@ Die Katalogversion ist ungültig. Wir unterstützen nur die Katalogversion {0} und Version {1}. - '{0}' is a version catalog that uses SHA0 or SHA1. Consider regenerating this catalog with '-CatalogVersion 2'. + „{0}“ ist ein Katalog der Version 1 und verwendet den schwachen SHA-1-Hashalgorithmus. Erstellen Sie diesen Katalog mit „-CatalogVersion 2“ neu. + {StrContains="SHA-1"}{StrContains="-CatalogVersion 2"} Die Katalogdefinitionsdatei kann nicht geöffnet werden. diff --git a/src/System.Management.Automation/resources/de/CommandBaseStrings.de.resx b/src/System.Management.Automation/resources/de/CommandBaseStrings.de.resx index f48e5775089..ccd9baecdf6 100644 --- a/src/System.Management.Automation/resources/de/CommandBaseStrings.de.resx +++ b/src/System.Management.Automation/resources/de/CommandBaseStrings.de.resx @@ -232,12 +232,14 @@ Reviewed by TArcher on 2010-07-20 Skriptblockverarbeitung Punkt-Quelle-Überprüfung - Die Dot-Source-Verarbeitung für den Skriptblock „{0}“ schlägt im Modus „Eingeschränkte Sprache“ fehl, da der Sprachmodus „{1}“ nicht mit dem aktuellen Sprachmodus „{2}“ übereinstimmt. + Die Dot-Source-Verarbeitung für den Skriptblock „{0}“ schlägt im Modus „ConstrainedLanguage-Modus“ fehl, da der Sprachmodus „{1}“ nicht mit dem aktuellen Sprachmodus „{2}“ übereinstimmt. + {StrContains="ConstrainedLanguage"} Befehlssuche - Der Befehl „{0}“ im Modul „{1}“ ist nicht vertrauenswürdig und im ConstrainedLanguage-Modus nicht zugänglich. + Der Befehl '{0}' im Modul '{1}' ist nicht vertrauenswürdig und im ConstrainedLanguage-Modus nicht zugänglich. + {StrContains="ConstrainedLanguage"} \ No newline at end of file diff --git a/src/System.Management.Automation/resources/de/EventResource.de.resx b/src/System.Management.Automation/resources/de/EventResource.de.resx index 8d4234e353d..eb428a913ee 100644 --- a/src/System.Management.Automation/resources/de/EventResource.de.resx +++ b/src/System.Management.Automation/resources/de/EventResource.de.resx @@ -135,7 +135,7 @@ WorkflowId: {0} - Der Workflowrunspacepool wurde erstellt. + Workflow-Runspace-Pool wurde erstellt. WorkflowId: {0} ManagedNode: {1} diff --git a/src/System.Management.Automation/resources/de/ExtendedTypeSystem.de.resx b/src/System.Management.Automation/resources/de/ExtendedTypeSystem.de.resx index 590cb3f736f..01bbe8ed590 100644 --- a/src/System.Management.Automation/resources/de/ExtendedTypeSystem.de.resx +++ b/src/System.Management.Automation/resources/de/ExtendedTypeSystem.de.resx @@ -395,12 +395,14 @@ PS> [System.Collections.Generic.Comparer``1]::get_Default() Erweiterte Typsystem-Hashtabellenkonvertierung - Die Typkonvertierung von „HashTable“ in „{0}“ ist im ConstrainedLanguage-Modus nicht zulässig. + Typkonvertierung von HashTable zu '{0}' im ConstrainedLanguage-Modus nicht zulässig. + {StrContains="ConstrainedLanguage"} Erweiterte Typsystem-Hashtabellenkonvertierung - Die Typkonvertierung von „{0}“ in „{1}“ ist im ConstrainedLanguage-Modus nicht zulässig. + Typkonvertierung von '{0}' zu '{1}' im ConstrainedLanguage-Modus nicht zulässig. + {StrContains="ConstrainedLanguage"} \ No newline at end of file diff --git a/src/System.Management.Automation/resources/de/InternalCommandStrings.de.resx b/src/System.Management.Automation/resources/de/InternalCommandStrings.de.resx index 2b466978704..04cf4d5be40 100644 --- a/src/System.Management.Automation/resources/de/InternalCommandStrings.de.resx +++ b/src/System.Management.Automation/resources/de/InternalCommandStrings.de.resx @@ -145,13 +145,15 @@ Der Eingabename „{0}“ kann keiner Methode zugeordnet werden. - Im Modus für eingeschränkte Sprache kann keine Methode aufgerufen werden. + Im Modus für RestrictedLanguage kann keine Methode aufgerufen werden. + {StrContains="RestrictedLanguage"} Die Parameter -WhatIf und -Confirm werden für Skriptblöcke nicht unterstützt. - Der Vorgang „{0}“ ist im RestrictedLanguage-Modus nicht zulässig. + Der Vorgang '{0}' ist im RestrictedLanguage-Modus nicht zulässig. + {StrContains="RestrictedLanguage"} Zum Vergleichen der beiden angegebenen Werte ist ein Operator erforderlich. Fügen Sie dem Befehl einen gültigen Operator hinzu, und versuchen Sie den Befehl dann erneut. Beispiel: Get-Process | Where-Object -Property Name -eq Idle @@ -188,6 +190,7 @@ ErrorAction, WarningAction, InformationAction, PipelineVariable ForEach-Object Cmdlet - Ein Methodenaufruf für den Typ „{0}“ ist im Modus für eingeschränkte Sprache nicht zulässig. + Ein Methodenaufruf für den Typ „{0}“ ist im Modus für ConstrainedLanguage nicht zulässig. + {StrContains="ConstrainedLanguage"} \ No newline at end of file diff --git a/src/System.Management.Automation/resources/de/Metadata.de.resx b/src/System.Management.Automation/resources/de/Metadata.de.resx index e3f4b09e6ea..2a6ef514e9f 100644 --- a/src/System.Management.Automation/resources/de/Metadata.de.resx +++ b/src/System.Management.Automation/resources/de/Metadata.de.resx @@ -262,6 +262,7 @@ Fehler bei der Prüfung des ValidateTrustedData-Attributs. - Das Parameterargument „{0}“ ist nicht vertrauenswürdig und führt im Modus für eingeschränkte Sprache zur Überprüfung des Parameterattributs „ValidateTrustedData“. + Das Parameterargument „{0}“ ist nicht vertrauenswürdig und führt im Modus für ConstrainedLanguage zur Überprüfung des Parameterattributs „ValidateTrustedData“. + {StrContains="ValidateTrustedData"}{StrContains="ConstrainedLanguage"} \ No newline at end of file diff --git a/src/System.Management.Automation/resources/de/Modules.de.resx b/src/System.Management.Automation/resources/de/Modules.de.resx index 2e46017ae62..1ff15a61e6d 100644 --- a/src/System.Management.Automation/resources/de/Modules.de.resx +++ b/src/System.Management.Automation/resources/de/Modules.de.resx @@ -625,7 +625,8 @@ Der Switch-Parameter „-SkipEditionCheck“ kann nicht ohne den Switch-Parameter „-ListAvailable“ verwendet werden. - Das Importieren von *.ps1-Dateien als Module ist im ConstrainedLanguage-Modus nicht zulässig. + Importieren von *.ps1-Dateien als Module im ConstrainedLanguage-Modus nicht zulässig. + {StrContains="ConstrainedLanguage"} Beim Laden des Skriptmoduls „{0}“ ist ein Fehler aufgetreten, da es einen anderen Sprachmodus als das Modulmanifest hat. Der Sprachmodus des Manifests ist „{1}“, und der Sprachmodus des Moduls ist „{2}“. Stellen Sie sicher, dass alle Moduldateien signiert sind oder anderweitig Teil der Konfiguration der Zulassungsliste der App sind. @@ -638,6 +639,7 @@ Es kann kein neues Modul erstellt werden, während sich die Sitzung im ConstrainedLanguage-Modus befindet. + {StrContains="ConstrainedLanguage"} Das integrierte Modul „{0}“, das mit der „Core“-Edition kompatibel ist, wurde nicht gefunden. Stellen Sie sicher, dass die integrierten PowerShell-Module verfügbar sind. Sie werden in der Regel mit dem PowerShell-Paket unter dem Modulpfad $PSHOME bereitgestellt und sind erforderlich, damit PowerShell ordnungsgemäß funktioniert. @@ -646,42 +648,49 @@ Export-ModuleMember-Cmdlet - Das Exportieren von Modulelementen schlägt im Eingeschränkten Sprachmodus fehl, da das Modul „{0}“ einen Sprachmodus „{1}“ aufweist, der sich von der aktuellen Sitzung „{2}“ unterscheidet. + Das Exportieren von Modulelementen schlägt im ConstrainedLanguage-Modus fehl, da das Modul „{0}“ einen Sprachmodus „{1}“ aufweist, der sich von der aktuellen Sitzung „{2}“ unterscheidet. + {StrContains="ConstrainedLanguage"} Export impliziter Modulfunktionen - Der implizite Funktionsexport für das Modul „{0}“ wird verweigert, da es vertrauenswürdig ist (wird im Uneingeschränkten Sprachmodus ausgeführt), die Sitzung jedoch nicht vertrauenswürdig ist (wird im Eingeschränkten Sprachmodus ausgeführt). Es hat sich bewährt, Modulfunktionen immer einzeln unter dem vollständigen Namen zu exportieren. + Der implizite Funktionsexport für das Modul „{0}“ wird verweigert, da es vertrauenswürdig ist (wird im FullLanguage-Modus ausgeführt), die Sitzung jedoch nicht vertrauenswürdig ist (wird im ConstrainedLanguage-Modus ausgeführt). Es hat sich bewährt, Modulfunktionen immer einzeln unter dem vollständigen Namen zu exportieren. + {StrContains="FullLanguage"}{StrContains="ConstrainedLanguage"} Die Skriptdatei wird als Modul importiert. - Das Importieren der Skriptdatei „{0}“ als Modul ist im ConstrainedLanguage-Modus nicht zulässig. + Das Importieren der Skriptdatei '{0}' als Modul ist im ConstrainedLanguage-Modus nicht zulässig. + {StrContains="ConstrainedLanguage"} Modul enthält dot-source-Operator - Der Import des Moduls „{0}“ schlägt im Eingeschränkten Sprachmodus fehl, da Funktionen mit Platzhalterzeichen exportiert werden und gleichzeitig der dot-source-Operator verwendet wird. + Der Import des Moduls „{0}“ schlägt im ConstrainedLanguage-Modus fehl, da Funktionen mit Platzhalterzeichen exportiert werden und gleichzeitig der dot-source-Operator verwendet wird. + {StrContains="ConstrainedLanguage"} - "Modulexportfunktionen + Modulexportfunktionen - Modul „{0}“ exportiert Funktionen mit Namensplatzhaltern. Alle Funktionsnamen aus geschachtelten Modulen werden im Eingeschränkten Sprachmodus entfernt. + Modul „{0}“ exportiert Funktionen mit Namensplatzhaltern. Alle Funktionsnamen aus geschachtelten Modulen werden im ConstrainedLanguage-Modus entfernt. + {StrContains="ConstrainedLanguage"} - "New-Module-Cmdlet + New-Module-Cmdlet - Ein neues Modul aus einer nicht vertrauenswürdigen Eingeschränkten Sprachsitzung wird daran gehindert, den FullLanguage-Skriptblock bereitzustellen. + Ein neues Modul aus einer nicht vertrauenswürdigen ConstrainedLanguage wird daran gehindert, den FullLanguage-Skriptblock bereitzustellen. + {StrContains="ConstrainedLanguage"}{StrContains="FullLanguage"} - "Nicht übereinstimmende Modulsprachmodi + Nicht übereinstimmende Modulsprachmodi - Ein abhängiges Modul wird geladen, das einen anderen Sprachmodus als das übergeordnete Modul verwendet. Dies ist im Eingeschränkten Sprachmodus nicht zulässig. + Ein abhängiges Modul wird geladen, das einen anderen Sprachmodus als das übergeordnete Modul verwendet. Dies ist im ConstrainedLanguage-Modus nicht zulässig. + {StrContains="ConstrainedLanguage"} \ No newline at end of file diff --git a/src/System.Management.Automation/resources/de/ParameterBinderStrings.de.resx b/src/System.Management.Automation/resources/de/ParameterBinderStrings.de.resx index 95a3a323953..f46af68b82e 100644 --- a/src/System.Management.Automation/resources/de/ParameterBinderStrings.de.resx +++ b/src/System.Management.Automation/resources/de/ParameterBinderStrings.de.resx @@ -250,12 +250,14 @@ Methoden- oder Eigenschaftsaufruf nicht zulässig - Der Aufruf der Methode oder Eigenschaft „{0}“ für Typ „{1}“ ist im Constrained Language-Modus für nicht vertrauenswürdige Skripts nicht zulässig. + Der Aufruf der Methode oder Eigenschaft „{0}“ für den Typ „{1}“ ist im ConstrainedLanguage-Modus für nicht vertrauenswürdige Skripts nicht zulässig. + {StrContains="ConstrainedLanguage"} Typerstellung nicht zulässig - Die Erstellung des Typs „{0}“ ist während der Parameterbindung im eingeschränkten Sprachmodus für nicht vertrauenswürdige Skripts nicht zulässig. + Die Erstellung des Typs „{0}“ ist während der Parameterbindung im ConstrainedLanguage-Modus für nicht vertrauenswürdige Skripts nicht zulässig. + {StrContains="ConstrainedLanguage"} \ No newline at end of file diff --git a/src/System.Management.Automation/resources/de/ParserStrings.de.resx b/src/System.Management.Automation/resources/de/ParserStrings.de.resx index 1a61b2ae267..bb17efb11d5 100644 --- a/src/System.Management.Automation/resources/de/ParserStrings.de.resx +++ b/src/System.Management.Automation/resources/de/ParserStrings.de.resx @@ -402,7 +402,8 @@ Die richtige Form lautet: foreach ($a in $b) {...} Die Verarbeitung wurde gestoppt, da das Skript zu komplex ist. - Die Syntax wird von diesem Runspace nicht unterstützt. Dies kann vorkommen, wenn sich der Runspace im No-Language-Modus befindet. + Die Syntax wird von diesem Runspace nicht unterstützt. Dies kann vorkommen, wenn sich der Runspace im NoLanguage-Modus befindet. + {StrContains="NoLanguage"} Die Kombination von Optionen mit dem „-split“-Operator ist ungültig. @@ -580,85 +581,112 @@ Die richtige Form lautet: foreach ($a in $b) {...} Verwenden Sie `{ statt { in Variablennamen. - Im Abschnitt „Data“ fehlt der Anweisungsblock. + Im Data-Abschnitt fehlt der Anweisungsblock. + {StrContains="Data"} - Der Parameter „{0}“ des „Data“-Abschnitts ist ungültig. Der gültige Parameter für den „Data“-Abschnitt ist SupportedCommand. + Parameter „{0}“ des Data-Abschnitts ist ungültig. Der gültige Parameter für den Data-Abschnitt ist SupportedCommand. + {StrContains="Data"}{StrContains="SupportedCommand"} - Arrayverweise sind im eingeschränkten Sprachmodus oder in einem „Data“-Abschnitt nicht zulässig. + Arrayverweise sind im RestrictedLanguage-Modus oder in einem Data-Abschnitt nicht zulässig. + {StrContains="RestrictedLanguage"}{StrContains="Data"} - Zuweisungsanweisungen sind im eingeschränkten Sprachmodus oder in einem „Data“-Abschnitt nicht zulässig. + Zuweisungsanweisungen sind im RestrictedLanguage-Modus oder in einem Data-Abschnitt nicht zulässig. + {StrContains="RestrictedLanguage"}{StrContains="Data"} - Eine Umleitung ist im eingeschränkten Sprachmodus oder einem „Data“-Abschnitt nicht zulässig. + Eine Umleitung ist im RestrictedLanguage-Modus oder einem Data-Abschnitt nicht zulässig. + {StrContains="RestrictedLanguage"}{StrContains="Data"} - Die Do- und While-Anweisungen sind im eingeschränkten Sprachmodus oder in einem „Data“-Abschnitt nicht zulässig. + Die Do- und While-Anweisungen sind im RestrictedLanguage-Modus oder in einem Data-Abschnitt nicht zulässig. + {StrContains="Do"}{StrContains="While"}{StrContains="RestrictedLanguage"}{StrContains="Data"} - Erweiterbare Zeichenfolgen sind im eingeschränkten Sprachmodus oder in einem „Data“-Abschnitt nicht zulässig. + Erweiterbare Zeichenfolgen sind im RestrictedLanguage-Modus oder in einem Data-Abschnitt nicht zulässig. + {StrContains="RestrictedLanguage"}{StrContains="Data"} - Der Operator „{0}“ ist im eingeschränkten Sprachmodus oder in einem „Data“-Abschnitt nicht zulässig. + Der Operator „{0}“ ist im RestrictedLanguage-Modus oder in einem Data-Abschnitt nicht zulässig. + {StrContains="RestrictedLanguage"}{StrContains="Data"} - Die Trap-Anweisung ist im eingeschränkten Sprachmodus oder in einem „Data“-Abschnitt nicht zulässig. + Die Trap-Anweisung ist im RestrictedLanguage-Modus oder in einem Data-Abschnitt nicht zulässig. + {StrContains="Trap"}{StrContains="RestrictedLanguage"}{StrContains="Data"} - Die Try-Anweisung ist im eingeschränkten Sprachmodus oder in einem „Data“-Abschnitt nicht zulässig. + Die Try-Anweisung ist im RestrictedLanguage oder in einem Data-Abschnitt nicht zulässig. + {StrContains="Try"}{StrContains="RestrictedLanguage"}{StrContains="Data"} - Flusssteuerungsanweisungen wie „Break“, „Continue“, „Return“, „Exit“ und „Throw“ sind im eingeschränkten Sprachmodus oder in einem „Data“-Abschnitt nicht zulässig. + Flusssteuerungsanweisungen wie „Break“, „Continue“, „Return“, „Exit“ und „Throw“ sind im RestrictedLanguage-Modus oder in einem Data-Abschnitt nicht zulässig. + {StrContains="Break"}{StrContains="Continue"}{StrContains="Return"}{StrContains="Exit"}{StrContains="Throw"}{StrContains="RestrictedLanguage"}{StrContains="Data"} - Foreach-Anweisungen sind im eingeschränkten Sprachmodus oder in einem „Data“-Abschnitt nicht zulässig. + Foreach-Anweisungen sind im RestrictedLanguage-Modus oder in einem Data-Abschnitt nicht zulässig. + {StrContains="Foreach"}{StrContains="RestrictedLanguage"}{StrContains="Data"} - For- und While-Anweisungen sind im eingeschränkten Sprachmodus oder in einem „Data“-Abschnitt nicht zulässig. + For- und While-Anweisungen sind im RestrictedLanguage-Modus oder in einem Data-Abschnitt nicht zulässig. + {StrContains="For"}{StrContains="While"}{StrContains="RestrictedLanguage"}{StrContains="Data"} - Funktionsdeklarationen sind im eingeschränkten Sprachmodus oder in einem „Data“-Abschnitt nicht zulässig. + Function-Deklarationen sind im RestrictedLanguage-Modus oder in einem Data-Abschnitt nicht zulässig. + {StrContains="Function"}{StrContains="RestrictedLanguage"}{StrContains="Data"} - Methodenaufrufe sind im eingeschränkten Sprachmodus oder in einem „Data“-Abschnitt nicht zulässig. + Methodenaufrufe sind im RestrictedLanguage-Modus oder in einem Data-Abschnitt nicht zulässig. + {StrContains="RestrictedLanguage"}{StrContains="Data"} - Parameterdeklarationen sind im eingeschränkten Sprachmodus oder in einem „Data“-Abschnitt nicht zulässig. + Parameterdeklarationen sind im RestrictedLanguage-Modus oder in einem Data-Abschnitt nicht zulässig. + {StrContains="RestrictedLanguage"}{StrContains="Data"} - Eigenschaftenverweise sind im eingeschränkten Sprachmodus oder in einem Datenabschnitt nicht zulässig. + Eigenschaftenverweise sind im RestrictedLanguage-Modus oder in einem Data-Abschnitt nicht zulässig. + {StrContains="RestrictedLanguage"}{StrContains="Data"} - Skriptblockliterale sind im eingeschränkten Sprachmodus oder in einem „Data“-Abschnitt nicht zulässig. + Skriptblockliterale sind im RestrictedLanguage oder in einem Data-Abschnitt nicht zulässig. + {StrContains="RestrictedLanguage"}{StrContains="Data"} - Die switch-Anweisung ist im eingeschränkten Sprachmodus oder in einem „Data“-Abschnitt nicht zulässig. + Die Switch-Anweisung ist im RestrictedLanguage-Modus oder in einem Data-Abschnitt nicht zulässig. + {StrContains="Switch"}{StrContains="RestrictedLanguage"}{StrContains="Data"} - Es wird auf eine Variable verwiesen, auf die im eingeschränkten Sprachmodus oder in einem „Data“-Abschnitt nicht verwiesen werden kann. Zu den Variablen, auf die verwiesen werden kann, gehören die folgenden: {0}. + Es wird auf eine Variable verwiesen, auf die im RestrictedLanguage oder in einem Data-Abschnitt nicht verwiesen werden kann. Zu den Variablen, auf die verwiesen werden kann, gehören die folgenden: {0}. + {StrContains="RestrictedLanguage"}{StrContains="Data"} - Der Befehl „{0}“ ist im eingeschränkten Sprachmodus oder in einem „Data“-Abschnitt nicht zulässig. + Der Befehl „{0}“ ist im RestrictedLanguage-Modus oder in einem Data-Abschnitt nicht zulässig. + {StrContains="RestrictedLanguage"}{StrContains="Data"} - Die Datenanweisung ist im eingeschränkten Sprachmodus oder in einem anderen „Data“-Abschnitt nicht zulässig. + Die Datenanweisung ist im RestrictedLanguage-Modus oder in einem anderen Data-Abschnitt nicht zulässig. + {StrContains="RestrictedLanguage"}{StrContains="Data"} - Dem Parameter SupportedCommand des „Data“-Abschnitts fehlt ein Wert. Geben Sie einen Cmdlet- oder Funktionsnamen für den Parameter an. + Dem Parameter SupportedCommand des Data-Abschnitts fehlt ein Wert. Geben Sie einen Cmdlet- oder Funktionsnamen für den Parameter an. + {StrContains="SupportedCommand"}{StrContains="Data"} - Ein Begin-Anweisungsblock, ein Process-Anweisungsblock oder eine Parameteranweisung ist in einem Data-Abschnitt nicht zulässig. + Ein Begin-Anweisungsblock, ein Process-Anweisungsblock oder eine Parameteranweisung sind in einem Data-Abschnitt nicht zulässig. + {StrContains="Begin"}{StrContains="Process"}{StrContains="Param"}{StrContains="Data"} - Ergebnisse von Zeichenfolgenmultiplikationen mit mehr als „{0}“ Zeichen sind im eingeschränkten Sprachmodus oder in einem „Data“-Abschnitt nicht zulässig. + Ergebnisse der Zeichenfolgenmultiplikation mit mehr als "{0}" Zeichen sind in RestrictedLanguage Modus oder einem Data Abschnitt nicht zulässig. + {StrContains="RestrictedLanguage"}{StrContains="Data"} - Eine Arraymultiplikation, die zu mehr als {0} Elementen führt, ist im eingeschränkten Sprachmodus oder in einem „Data“-Abschnitt nicht zulässig. + Eine Arraymultiplikation, die zu mehr als {0} Elementen führt, ist im RestrictedLanguage-Modus oder in einem Data-Abschnitt nicht zulässig. + {StrContains="RestrictedLanguage"}{StrContains="Data"} - Dot-Sourcing ist im eingeschränkten Sprachmodus oder in einem „Data“-Abschnitt nicht zulässig. + Dot-Sourcing ist im RestrictedLanguage-Modus oder in einem Data-Abschnitt nicht zulässig. + {StrContains="RestrictedLanguage"}{StrContains="Data"} Das Attributargument muss eine Konstante oder ein Skriptblock sein. @@ -721,10 +749,12 @@ Die richtige Form lautet: foreach ($a in $b) {...} Ein NULL-Schlüssel ist in einem Hashliteral nicht zulässig. - Attribute sind im eingeschränkten Sprachmodus oder in einem „Data“-Abschnitt nicht zulässig. + Attribute sind im RestrictedLanguage-Modus oder in einem Data-Abschnitt nicht zulässig. + {StrContains="RestrictedLanguage"}{StrContains="Data"} - Der Typ {0} ist im eingeschränkten Sprachmodus oder einem „Data“-Abschnitt nicht zulässig. + Der Typ {0} ist im RestrictedLanguage-Modus oder einem Data-Abschnitt nicht zulässig. + {StrContains="RestrictedLanguage"}{StrContains="Data"} „{0}“ ist eine ReadOnly-Eigenschaft. @@ -784,7 +814,8 @@ Die richtige Form lautet: foreach ($a in $b) {...} Fehlender Anweisungstext nach dem Schlüsselwort „{0}“. - Parallele und sequenzielle Blöcke sind im eingeschränkten Sprachmodus oder in einem „Data“-Abschnitt nicht zulässig. + Parallele und Sequence-Blöcke sind im RestrictedLanguage-Modus oder in einem Data-Abschnitt nicht zulässig. + {StrContains="Parallel"}{StrContains="Sequence"}{StrContains="RestrictedLanguage"}{StrContains="Data"} Unerwartetes Schlüsselwort: „{0}“. @@ -796,7 +827,8 @@ Die richtige Form lautet: foreach ($a in $b) {...} Die Methode kann nicht aufgerufen werden. - Die Hashtabelle kann nicht in ein Objekt des folgenden Typs konvertiert werden: {0}. Die Konvertierung von Hashtabellen in Objekte wird im eingeschränkten Sprachmodus oder in einem „Data“-Abschnitt nicht unterstützt. + Die Hashtabelle kann nicht in ein Objekt des folgenden Typs konvertiert werden: {0}. Die Konvertierung von Hashtabellen in Objekte wird im RestrictedLanguage-Modus oder in einem Data-Abschnitt nicht unterstützt. + {StrContains="RestrictedLanguage"}{StrContains="Data"} Das Argument muss konstant sein. @@ -842,7 +874,8 @@ Die richtige Form lautet: foreach ($a in $b) {...} Die Schemadatei {0} wurde nicht gefunden. Stellen Sie sicher, dass alle in einer Konfigurationsanweisung angegebenen Module eine schema.mof-Datei enthalten, und führen Sie das Skript dann erneut aus. - Der Datenabschnitt kann nicht definiert werden. Die Definition zusätzlicher unterstützter Befehle wird in diesem Sprachmodus nicht unterstützt. + Der Data-Abschnitt kann nicht definiert werden. Die Definition zusätzlicher unterstützter Befehle wird in diesem Sprachmodus nicht unterstützt. + {StrContains="Data"} „{“ fehlt in der Konfigurationsanweisung. @@ -935,7 +968,8 @@ ModuleVersion: Version des zu importierenden Moduls. Falls verwendet, darf „Mo Die Ressource „{0}“ kann nicht geladen werden: Ressource nicht gefunden. - Das Konfigurationsschlüsselwort ist im constrainedLanguage-Modus nicht zulässig. + Das Konfigurationsschlüsselwort ist im ConstrainedLanguage-Modus nicht zulässig. + {StrContains="ConstrainedLanguage"} Der Konfigurationsname „{0}“ ist ungültig. Standardnamen dürfen nur Buchstaben (a-z, A-Z), Zahlen (0-9), Punkte (.), Bindestriche (-) und Unterstriche (_) enthalten. Der Name darf nicht NULL oder leer sein und sollte mit einem Buchstaben beginnen. @@ -1320,7 +1354,8 @@ ModuleVersion: Version des zu importierenden Moduls. Falls verwendet, darf „Mo Die Operatoren „&“ oder „.“ können nicht verwendet werden, um einen Befehl im Modulbereich über Sprachgrenzen hinweg aufzurufen. - Das Klassenschlüsselwort ist im ConstrainedLanguage-Modus nicht zulässig. + Das Class schlüsselwort ist im ConstrainedLanguage-Modus nicht zulässig. + {StrContains="Class"}{StrContains="ConstrainedLanguage"} In dem ternären Ausdruck fehlt ein „:“. @@ -1338,37 +1373,43 @@ ModuleVersion: Version des zu importierenden Moduls. Falls verwendet, darf „Mo Schlüsselwort für Parserkonfiguration - Das Configuration-Schlüsselwort ist im eingeschränkten Sprachmodus für nicht vertrauenswürdige Skripts nicht zulässig. + Das Configuration-Schlüsselwort ist im ConstrainedLanguage-Modus für nicht vertrauenswürdige Skripts nicht zulässig. + {StrContains="Configuration"}{StrContains="ConstrainedLanguage"} Schlüsselwort für Parserklassen - Das Class-Schlüsselwort ist im eingeschränkten Sprachmodus für nicht vertrauenswürdige Skripts nicht zulässig. + Das Class-Schlüsselwort ist im ConstrainedLanguage-Modus für nicht vertrauenswürdige Skripts nicht zulässig. + {StrContains="Class"}{StrContains="ConstrainedLanguage"} Parserdatenabschnitt SupportedCommand - Der Datenabschnitt, der den SupportedCommand-Parameter enthält, wird im eingeschränkten Sprachmodus für nicht vertrauenswürdige Skripts nicht zugelassen. + Der Data-Abschnitt, der den SupportedCommand-Parameter enthält, wird im ConstrainedLanguage-Modus für nicht vertrauenswürdige Skripts nicht zugelassen. + {StrContains="Data"}{StrContains="SupportedCommand"}{StrContains="ConstrainedLanguage"} Aufrufoperator für den Modulbereich - Der Modulbereichsaufrufoperator wird im eingeschränkten Sprachmodus abgelehnt. + Der Modulbereichsaufrufoperator wird im ConstrainedLanguage-Modus abgelehnt. + {StrContains="ConstrainedLanguage"} ForEach-Schlüsselwortmethodenaufruf - Das ForEach-Schlüsselwort schlägt beim Aufruf der Iterationselementmethode „{0}“ fehl, wenn es im eingeschränkten Sprachmodus ausgeführt wird. + Das ForEach-Schlüsselwort schlägt beim Aufruf der Iterationselementmethode „{0}“ fehl, wenn es im ConstrainedLanguage-Modus ausgeführt wird. + {StrContains="ForEach"}{StrContains="ConstrainedLanguage"} Ausdrucksauswertung kann fehlschlagen - Um aus einem Skriptblock eine schrittweise durchlaufbare Pipeline zu erstellen, müssen möglicherweise einige Ausdrücke innerhalb des Skriptblocks ausgewertet werden. Im eingeschränkten Sprachmodus schlägt die Auswertung des Ausdrucks ohne Fehlermeldung fehl und gibt „null“ zurück, es sei denn, der Ausdruck stellt einen konstanten Wert dar. + Um aus einem Skriptblock eine schrittweise durchlaufbare Pipeline zu erstellen, müssen möglicherweise einige Ausdrücke innerhalb des Skriptblocks ausgewertet werden. Im ConstrainedLanguage-Modus schlägt die Auswertung des Ausdrucks ohne Fehlermeldung fehl und gibt „null“ zurück, es sei denn, der Ausdruck stellt einen konstanten Wert dar. + {StrContains="ConstrainedLanguage"} Das Konfigurationsschlüsselwort wird auf ARM64-Prozessoren nicht unterstützt. diff --git a/src/System.Management.Automation/resources/de/PowerShellStrings.de.resx b/src/System.Management.Automation/resources/de/PowerShellStrings.de.resx index 3cf93d82ec6..52bf7db8bad 100644 --- a/src/System.Management.Automation/resources/de/PowerShellStrings.de.resx +++ b/src/System.Management.Automation/resources/de/PowerShellStrings.de.resx @@ -154,7 +154,7 @@ Es ist kein Runspace zum Ausführen von Befehlen in diesem Thread verfügbar. Sie können einen in der DefaultRunspace-Eigenschaft des Typs „System.Management.Automation.Runspaces.Runspace“ angeben. Der Befehl, den Sie aufrufen wollten, war: {0} - Für dieses PowerShell-Objekt kann keine Verbindung hergestellt werden, da es keinem Remoterunspace oder Runspacepool zugeordnet ist. + Für dieses PowerShell-Objekt kann keine Verbindung hergestellt werden, da es keinem Remote-Runspace oder Runspace-Pool zugeordnet ist. Der ausgeführte Befehl wurde getrennt, wird aber weiterhin auf dem Remoteserver ausgeführt. Stellen Sie die Verbindung wieder her, um den Status des Befehlsvorgangs und die Ausgabedaten abzurufen. diff --git a/src/System.Management.Automation/resources/de/RemotingErrorIdStrings.de.resx b/src/System.Management.Automation/resources/de/RemotingErrorIdStrings.de.resx index 44edb076e16..c97be746cfa 100644 --- a/src/System.Management.Automation/resources/de/RemotingErrorIdStrings.de.resx +++ b/src/System.Management.Automation/resources/de/RemotingErrorIdStrings.de.resx @@ -318,7 +318,7 @@ Der Server, auf dem PowerShell ausgeführt wird, kann den Verbindungsvorgang nicht verarbeiten, da der Server entweder nicht gestartet wurde oder gerade heruntergefahren wird. - Der Server, auf dem PowerShell ausgeführt wird, kann den Verbindungsvorgang nicht verarbeiten, da die Eigenschaften des Server-Runspacepools nicht mit den vom Clientcomputer angegebenen Eigenschaften übereinstimmen. + Der Server, auf dem PowerShell ausgeführt wird, kann den Verbindungsvorgang nicht verarbeiten, da die Eigenschaften des Server-Runspace-Pools nicht mit den vom Clientcomputer angegebenen Eigenschaften übereinstimmen. {0}. Die Aushandlung mit dem Client ist fehlgeschlagen. Stellen Sie sicher, dass der Client mit dem Build {1} und der Protokollversion {2} von PowerShell kompatibel ist. @@ -1022,6 +1022,7 @@ Alle WinRM-Sitzungen, die mit PowerShell-Sitzungskonfigurationen verbunden sind, Sprachmodus, der für diese Sitzungskonfiguration standardmäßig angewendet werden soll. Kann „NoLanguage“ (empfohlen), „RestrictedLanguage“, „ConstrainedLanguage“ oder „FullLanguage“ sein + {StrContains="NoLanguage"}{StrContains="RestrictedLanguage"}{StrContains="ConstrainedLanguage"}{StrContains="FullLanguage"} Module, die bei der Anwendung auf eine Sitzung importiert werden sollen @@ -1069,7 +1070,7 @@ Alle WinRM-Sitzungen, die mit PowerShell-Sitzungskonfigurationen verbunden sind, Externe Befehle (Skripts und Anwendungen), die sichtbar gemacht werden sollen, wenn sie auf eine Sitzung angewendet werden - Der Pfad der PSSession-Konfigurationsdatei „{0}“ ist ungültig. Das Pfadargument muss zu einer einzelnen Datei im Dateisystem mit der Erweiterung „.pssc“ aufgelöst werden. Korrigieren Sie die Pfadangabe, und versuchen Sie es erneut. + Der Pfad der PSSession-Konfigurationsdatei '{0}' ist ungültig. Das Pfadargument muss zu einer einzelnen Datei im Dateisystem mit der Erweiterung '.pssc' aufgelöst werden. Korrigieren Sie die Pfadangabe, und versuchen Sie es erneut. Der Pfad der Rollenfähigkeitsdatei „{0}“ ist ungültig. Das Pfadargument muss zu einer einzelnen Datei im Dateisystem mit der Erweiterung „.psrc“ aufgelöst werden. Korrigieren Sie die Pfadangabe, und versuchen Sie es erneut. @@ -1721,7 +1722,8 @@ Der SSH-Clientprozess wurde beendet, bevor die Verbindung hergestellt werden kon Ausdrucksauswertung kann fehlschlagen - Um aus einem Skriptblock ein PowerShell-Objekt zu erstellen, müssen möglicherweise einige Ausdrücke innerhalb des Skriptblocks ausgewertet werden. Im eingeschränkten Sprachmodus schlägt die Auswertung des Ausdrucks ohne Fehlermeldung fehl und gibt „null“ zurück, es sei denn, der Ausdruck stellt einen konstanten Wert dar. + Um aus einem Skriptblock ein PowerShell-Objekt zu erstellen, müssen möglicherweise einige Ausdrücke innerhalb des Skriptblocks ausgewertet werden. Im ConstrainedLanguage-Modus schlägt die Auswertung des Ausdrucks ohne Fehlermeldung fehl und gibt „null“ zurück, es sei denn, der Ausdruck stellt einen konstanten Wert dar. + {StrContains="ConstrainedLanguage"} Fehler beim Abrufen des Hyper-V-VM-Status. Der Wert hatte den Typ „{0}“, erwartet wurde jedoch Microsoft.HyperV.PowerShell.VMState oder System.String. diff --git a/src/System.Management.Automation/resources/de/RunspacePoolStrings.de.resx b/src/System.Management.Automation/resources/de/RunspacePoolStrings.de.resx index 87751d11ee5..81076f023e2 100644 --- a/src/System.Management.Automation/resources/de/RunspacePoolStrings.de.resx +++ b/src/System.Management.Automation/resources/de/RunspacePoolStrings.de.resx @@ -127,13 +127,13 @@ Die minimale Poolgröße darf nicht größer als die maximale Poolgröße sein. - Der Zustand des Runspacepools ist für diesen Vorgang ungültig. + Der Zustand des Runspace-Pools ist für diesen Vorgang ungültig. - Der Vorgang kann nicht ausgeführt werden, da sich der Runspacepool nicht im Zustand „{0}“ befindet. Der aktuelle Status ist „{1}“. + Der Vorgang kann nicht ausgeführt werden, da sich der Runspace-Pool nicht im Zustand '{0}' befindet. Aktueller Status: '{1}'. - Der Runspacepool kann nicht geöffnet werden, da er sich nicht im Zustand „BeforeOpen“ befindet. Der aktuelle Status ist „{0}“. + Der Runspace-Pool kann nicht geöffnet werden, da er sich nicht im Zustand 'BeforeOpen' befindet. Aktueller Status: '{0}'. Das {0} Objekt wurde nicht durch Aufrufen von {1} der aktuellen RunspacePool-Instanz erstellt. @@ -142,22 +142,22 @@ Der Runspace kann nicht für den aktuellen Pool freigegeben werden, da der Runspace nicht zum aktuellen Pool gehört. - Diese Eigenschaft kann nicht mehr geändert werden, nachdem der Runspacepool geöffnet wurde. + Diese Eigenschaft kann nicht mehr geändert werden, nachdem der Runspace-Pool geöffnet wurde. Dieser Runspace unterstützt keine Trennungs- und Verbindungsvorgänge. - Der Vorgang kann nicht ausgeführt werden, da sich der Runspacepool im Zustand „Getrennt“ befindet. + Der Vorgang kann nicht ausgeführt werden, da sich der Runspace-Pool im Zustand „Getrennt“ befindet. - Der Trennvorgang wird auf dem Server nicht unterstützt. Auf dem Server muss PowerShell 3.0 oder höher ausgeführt werden, damit die Trennung von Remoterunspacepools unterstützt wird. + Der Trennvorgang wird auf dem Server nicht unterstützt. Auf dem Server muss PowerShell 3.0 oder höher ausgeführt werden, damit die Trennung von Runspace-Remotepools unterstützt wird. - Dieser Runspacepool {0} ist nicht für die Bereitstellung getrennter PowerShell-Objekte für Befehle konfiguriert, die auf dem Remoteserver ausgeführt werden. Verwenden Sie die statische GetRunspacePools()-Methode der RunspacePool-Klasse, um den Server abzufragen und Runspacepoolobjekte zurückzugeben, die dafür konfiguriert sind. + Dieser Runspace-Pool {0} ist nicht für die Bereitstellung getrennter PowerShell-Objekte für Befehle konfiguriert, die auf dem Remoteserver ausgeführt werden. Verwenden Sie die statische GetRunspacePools()-Methode der RunspacePool-Klasse, um den Server abzufragen und Runspace-Pool-Objekte zurückzugeben, die dafür konfiguriert sind. - Dieser Runspacepool kann nicht verbunden werden, da der entsprechende serverseitige Runspacepool mit einem anderen Client verbunden ist. + Dieser Runspace-Pool kann nicht verbunden werden, da der entsprechende serverseitige Runspace-Pool mit einem anderen Client verbunden ist. ResetRunspaceState wird auf dem Server nicht unterstützt. Auf dem Server muss PowerShell 5.0 oder höher ausgeführt werden. diff --git a/src/System.Management.Automation/resources/de/RunspaceStrings.de.resx b/src/System.Management.Automation/resources/de/RunspaceStrings.de.resx index 7461d495385..f4da19f7ebc 100644 --- a/src/System.Management.Automation/resources/de/RunspaceStrings.de.resx +++ b/src/System.Management.Automation/resources/de/RunspaceStrings.de.resx @@ -184,7 +184,8 @@ Die Sitzung ist ausgelastet. Sie werden mit der Sitzung verbunden, sobald sie verfügbar ist. Um den Enter-PSSession-Befehl abzubrechen, drücken Sie STRG + C. - Der Befehl kann nicht abgeschlossen werden. Skriptaufrufe werden in dieser Sitzungskonfiguration nicht unterstützt. Dies kann vorkommen, wenn sich die Sitzungskonfiguration im Nur-Sprachmodus befindet. + Der Befehl kann nicht abgeschlossen werden. Der Skriptaufruf wird in dieser Sitzungskonfiguration nicht unterstützt. Dies kann vorkommen, wenn sich die Sitzungskonfiguration in NoLanguage Modus befindet. + {StrContains="NoLanguage"} Für lokale Runspaces können keine Vorgänge zum Trennen und Verbinden verwendet werden. diff --git a/src/System.Management.Automation/resources/de/SecuritySupportStrings.de.resx b/src/System.Management.Automation/resources/de/SecuritySupportStrings.de.resx index fc233244245..c8eccdd75ef 100644 --- a/src/System.Management.Automation/resources/de/SecuritySupportStrings.de.resx +++ b/src/System.Management.Automation/resources/de/SecuritySupportStrings.de.resx @@ -163,6 +163,7 @@ Skriptdatei lesen - Die Skriptdatei „{0}“ ist von der Richtlinie nicht vertrauenswürdig und wird im ConstrainedLanguage-Modus ausgeführt. + Skriptdatei '{0}' ist laut Richtlinie nicht vertrauenswürdig und wird im ConstrainedLanguage-Modus ausgeführt. + {StrContains="ConstrainedLanguage"} \ No newline at end of file diff --git a/src/System.Management.Automation/resources/de/SessionStateStrings.de.resx b/src/System.Management.Automation/resources/de/SessionStateStrings.de.resx index d74fd4151e9..f9cbdc0e288 100644 --- a/src/System.Management.Automation/resources/de/SessionStateStrings.de.resx +++ b/src/System.Management.Automation/resources/de/SessionStateStrings.de.resx @@ -652,6 +652,7 @@ Sitzungszustandsvariablen - Das Ändern oder Erstellen des Bereichs der Variablen „{0}“ in AllScope wird im ConstrainedLanguage-Modus verhindert. + Das Ändern oder Erstellen des Scope der Variablen '{0}' in AllScope wird im ConstrainedLanguage-Modus verhindert. + {StrContains="ConstrainedLanguage"} \ No newline at end of file diff --git a/src/System.Management.Automation/resources/de/TabCompletionStrings.de.resx b/src/System.Management.Automation/resources/de/TabCompletionStrings.de.resx index 399531801ea..c2b0d22a3d5 100644 --- a/src/System.Management.Automation/resources/de/TabCompletionStrings.de.resx +++ b/src/System.Management.Automation/resources/de/TabCompletionStrings.de.resx @@ -425,7 +425,7 @@ Dies kann entweder eine Zeichenfolgendarstellung einer SID oder eine Domäne und [string[]] -Wählt Ereignisse mit einem der angegebenen Werte im Abschnitt „EventData“ aus. +Wählt Ereignisse mit einem der angegebenen Werte im EventData-Abschnitt aus. [hashtable] diff --git a/src/System.Management.Automation/resources/es/AutomationExceptions.es.resx b/src/System.Management.Automation/resources/es/AutomationExceptions.es.resx index eb554c39426..c1ad9a001d2 100644 --- a/src/System.Management.Automation/resources/es/AutomationExceptions.es.resx +++ b/src/System.Management.Automation/resources/es/AutomationExceptions.es.resx @@ -205,6 +205,7 @@ Origen de punto del bloque de script compilado - La invocación del bloque de script "{0}" en el ámbito actual no se permitirá en el modo de lenguaje restringido. Modo de lenguaje de script: {1}, modo de lenguaje de contexto: {2}. + La invocación del bloque de script '{0}' en el ámbito actual no se permitirá en modo ConstrainedLanguage. Modo de lenguaje de script: {1}, modo de lenguaje de contexto: {2}. + {StrContains="ConstrainedLanguage"} \ No newline at end of file diff --git a/src/System.Management.Automation/resources/es/CatalogStrings.es.resx b/src/System.Management.Automation/resources/es/CatalogStrings.es.resx index 9bdf0f89e25..fa84fa7708a 100644 --- a/src/System.Management.Automation/resources/es/CatalogStrings.es.resx +++ b/src/System.Management.Automation/resources/es/CatalogStrings.es.resx @@ -151,7 +151,8 @@ La versión del catálogo no es válida. Solo se admite la versión del catálogo {0} y la versión {1}. - '{0}' is a version catalog that uses SHA0 or SHA1. Consider regenerating this catalog with '-CatalogVersion 2'. + '{0}' es un catálogo de la versión 1 que usa el algoritmo hash de SHA-1 débil. Considere la posibilidad de volver a generar este catálogo con '-CatalogVersion 2'. + {StrContains="SHA-1"}{StrContains="-CatalogVersion 2"} No se puede abrir el archivo de definición del catálogo. diff --git a/src/System.Management.Automation/resources/es/CommandBaseStrings.es.resx b/src/System.Management.Automation/resources/es/CommandBaseStrings.es.resx index 2748fc3e9e0..f7adbacf95a 100644 --- a/src/System.Management.Automation/resources/es/CommandBaseStrings.es.resx +++ b/src/System.Management.Automation/resources/es/CommandBaseStrings.es.resx @@ -232,12 +232,14 @@ Reviewed by TArcher on 2010-07-20 Comprobación de operador punto del procesamiento de bloques de script - El procesamiento de operador punto para el bloque de script "{0}" fallará en modo de lenguaje restringido porque su modo de lenguaje "{1}" no coincide con el modo de lenguaje actual "{2}". + Dot-Source procesamiento del bloque de script '{0}' producirá un error en el modo ConstrainedLanguage porque su '{1}' de modo de lenguaje no coincide con el modo de lenguaje actual '{2}'. + {StrContains="ConstrainedLanguage"} Buscador de comandos El comando "{0}" del módulo "{1}" no es de confianza y no estará disponible en el modo ConstrainedLanguage. + {StrContains="ConstrainedLanguage"} \ No newline at end of file diff --git a/src/System.Management.Automation/resources/es/EventResource.es.resx b/src/System.Management.Automation/resources/es/EventResource.es.resx index c497d164fff..34e2cd092d9 100644 --- a/src/System.Management.Automation/resources/es/EventResource.es.resx +++ b/src/System.Management.Automation/resources/es/EventResource.es.resx @@ -135,7 +135,7 @@ WorkflowId: {0} - Se creó un grupo de espacio de ejecución de flujo de trabajo. + Se creó un grupo de espacios de ejecución de flujo de trabajo. WorkflowId: {0} ManagedNode: {1} diff --git a/src/System.Management.Automation/resources/es/ExtendedTypeSystem.es.resx b/src/System.Management.Automation/resources/es/ExtendedTypeSystem.es.resx index 04211f16d6f..e5b3e2a2337 100644 --- a/src/System.Management.Automation/resources/es/ExtendedTypeSystem.es.resx +++ b/src/System.Management.Automation/resources/es/ExtendedTypeSystem.es.resx @@ -396,11 +396,13 @@ PS> [System.Collections.Generic.Comparer``1]::get_Default() La conversión de tipos de HashTable a "{0}" no se permitirá en el modo ConstrainedLanguage. + {StrContains="ConstrainedLanguage"} Conversión de tabla hash del sistema de tipos extendidos La conversión de tipos de "{0}" a "{1}" no se permitirá en el modo ConstrainedLanguage. + {StrContains="ConstrainedLanguage"} \ No newline at end of file diff --git a/src/System.Management.Automation/resources/es/InternalCommandStrings.es.resx b/src/System.Management.Automation/resources/es/InternalCommandStrings.es.resx index 99163bfb47e..905e9e752a2 100644 --- a/src/System.Management.Automation/resources/es/InternalCommandStrings.es.resx +++ b/src/System.Management.Automation/resources/es/InternalCommandStrings.es.resx @@ -145,13 +145,15 @@ El nombre de entrada "{0}" no se puede resolver en un método. - No se puede invocar un método en el modo de lenguaje restringido. + No se puede invocar un método en el modo RestrictedLanguage. + {StrContains="RestrictedLanguage"} Los parámetros -WhatIf y -Confirm no se admiten para los bloques de script. No se permite la operación "{0}" en el modo RestrictedLanguage. + {StrContains="RestrictedLanguage"} Se requiere un operador para comparar los dos valores especificados. Incluya un operador válido en el comando e inténtelo de nuevo. Por ejemplo, Get-Process | Where-Object -Property Name -eq Idle @@ -188,6 +190,7 @@ ErrorAction, WarningAction, InformationAction, PipelineVariable ForEach-Object Cmdlet - No se permitirá la invocación de métodos en el tipo "{0}" al ejecutarse en modo de lenguaje restringido. + No se permitirá la invocación de métodos en el tipo '{0}' cuando se ejecute en modo ConstrainedLanguage. + {StrContains="ConstrainedLanguage"} \ No newline at end of file diff --git a/src/System.Management.Automation/resources/es/Metadata.es.resx b/src/System.Management.Automation/resources/es/Metadata.es.resx index ee55d1bb9a7..edc3b230e75 100644 --- a/src/System.Management.Automation/resources/es/Metadata.es.resx +++ b/src/System.Management.Automation/resources/es/Metadata.es.resx @@ -262,6 +262,7 @@ Error en la comprobación del atributo ValidateTrustedData - El argumento de parámetro "{0}" no es de confianza y se producirá un error en la comprobación del atributo de parámetro ValidateTrustedData en el modo de lenguaje restringido. + El argumento de parámetro '{0}' no es de confianza y producirá un error en la comprobación del atributo de parámetro de ValidateTrustedData en modo ConstrainedLanguage. + {StrContains="ValidateTrustedData"}{StrContains="ConstrainedLanguage"} \ No newline at end of file diff --git a/src/System.Management.Automation/resources/es/Modules.es.resx b/src/System.Management.Automation/resources/es/Modules.es.resx index 1970254de11..21d9ad5efe9 100644 --- a/src/System.Management.Automation/resources/es/Modules.es.resx +++ b/src/System.Management.Automation/resources/es/Modules.es.resx @@ -626,6 +626,7 @@ No se permite importar archivos *.ps1 como módulos en el modo ConstrainedLanguage. + {StrContains="ConstrainedLanguage"} Error al cargar el módulo {0} de script porque tiene un modo de lenguaje diferente al manifiesto del módulo. El modo de lenguaje del manifiesto es {1} y el modo de lenguaje del módulo es {2}. Asegúrese de que todos los archivos de módulo están firmados o forman parte de la configuración de la lista de permitidos de la aplicación. @@ -638,6 +639,7 @@ No se puede crear un nuevo módulo mientras la sesión está en modo ConstrainedLanguage. + {StrContains="ConstrainedLanguage"} No se encuentra el módulo integrado "{0}" compatible con la edición "Core". Asegúrese de que los módulos integrados de PowerShell están disponibles. Normalmente vienen con el paquete de PowerShell en la ruta de acceso del módulo $PSHOME y son necesarios para que PowerShell funcione correctamente. @@ -646,42 +648,49 @@ Cmdlet Export-ModuleMember - Se producirá un error en la exportación de los miembros del módulo en el modo de lenguaje restringido porque el módulo "{0}" tiene un modo de lenguaje "{1}" que es diferente de la sesión actual "{2}". + Se producirá un error en la exportación de los miembros del módulo en el modo ConstrainedLanguage porque el módulo "{0}" tiene un modo de lenguaje "{1}" que es diferente de la sesión actual "{2}". + {StrContains="ConstrainedLanguage"} Exportación de funciones implícitas del módulo - Se denegará la exportación implícita de funciones para el módulo "{0}" porque es de confianza (se ejecuta en modo de lenguaje completo), pero la sesión no es de confianza (se ejecuta en modo de lenguaje restringido). Se recomienda exportar siempre las funciones del módulo individualmente por nombre completo. + Se denegará la exportación implícita de funciones para el módulo "{0}" porque es de confianza (se ejecuta en modo FullLanguage), pero la sesión no es de confianza (se ejecuta en modo ConstrainedLanguage). Se recomienda exportar siempre las funciones del módulo individualmente por nombre completo. + {StrContains="FullLanguage"}{StrContains="ConstrainedLanguage"} Importando archivo de script como módulo La importación del archivo de script "{0}" como módulo no se permitirá en el modo ConstrainedLanguage. + {StrContains="ConstrainedLanguage"} El módulo contiene el operador dot-source - La importación del módulo "{0}" producirá un error en el modo de lenguaje restringido porque exporta funciones con caracteres comodín mientras también usa el operador dot-source. + La importación del módulo "{0}" producirá un error en el modo ConstrainedLanguage porque exporta funciones con caracteres comodín mientras también usa el operador dot-source. + {StrContains="ConstrainedLanguage"} - "Funciones de exportación de módulos + Funciones de exportación de módulos - El módulo "{0}" exporta funciones con caracteres comodín de nombre. Los nombres de función de módulo anidados se quitarán cuando se ejecuten en modo de lenguaje restringido. + El módulo '{0}' exporta funciones mediante caracteres comodín de nombre. Los nombres de función de módulo anidados se quitarán cuando se ejecuten en modo ConstrainedLanguage. + {StrContains="ConstrainedLanguage"} - "Cmdlet New-Module + Cmdlet New-Module - Se bloqueará un nuevo módulo de una sesión de lenguaje restringido que no sea de confianza para que no proporcione el bloque de script FullLanguage. + Un módulo nuevo de una sesión de ConstrainedLanguage que no es de confianza no podrá proporcionar el bloque de script FullLanguage. + {StrContains="ConstrainedLanguage"}{StrContains="FullLanguage"} - "Modos de idioma no coincidentes del módulo + Modos de idioma no coincidentes del módulo - Se está cargando un módulo dependiente que tiene un modo de lenguaje diferente al primario. Esto no se permitirá cuando esté en modo de lenguaje restringido. + Se está cargando un módulo dependiente que tiene un modo de lenguaje diferente al del primario. Esto no se permitirá cuando esté en modo ConstrainedLanguage. + {StrContains="ConstrainedLanguage"} \ No newline at end of file diff --git a/src/System.Management.Automation/resources/es/ParameterBinderStrings.es.resx b/src/System.Management.Automation/resources/es/ParameterBinderStrings.es.resx index fd86fb11c7b..17d360a9e10 100644 --- a/src/System.Management.Automation/resources/es/ParameterBinderStrings.es.resx +++ b/src/System.Management.Automation/resources/es/ParameterBinderStrings.es.resx @@ -250,12 +250,14 @@ No se permite invocar una propiedad o un método - No se permitirá invocar el Método o la Propiedad "{0}" en el tipo "{1}" en el modo de lenguaje restringido para scripts que no son de confianza. + La invocación del método o la propiedad "{0}" en el tipo "{1}" no se permitirá en el modo ConstrainedLanguage para scripts que no son de confianza. + {StrContains="ConstrainedLanguage"} No se permite crear tipos - No se permitirá la creación del tipo "{0}" durante el enlace de parámetros en el modo de lenguaje restringido para scripts que no son de confianza. + No se permitirá la creación del tipo "{0}" durante el enlace de parámetros en modo ConstrainedLanguage para scripts que no son de confianza. + {StrContains="ConstrainedLanguage"} \ No newline at end of file diff --git a/src/System.Management.Automation/resources/es/ParserStrings.es.resx b/src/System.Management.Automation/resources/es/ParserStrings.es.resx index 6d4f3d460f3..5bf86fac20c 100644 --- a/src/System.Management.Automation/resources/es/ParserStrings.es.resx +++ b/src/System.Management.Automation/resources/es/ParserStrings.es.resx @@ -402,7 +402,8 @@ La forma correcta es: foreach ($a en $b) {...} Se detuvo el procesamiento porque el script es demasiado complejo. - Este espacio de ejecución no admite la sintaxis. Esto puede ocurrir si el espacio de ejecución está en modo sin lenguaje. + Este espacio de ejecución no admite la sintaxis. Esto puede ocurrir si el espacio de ejecución está en modo NoLanguage. + {StrContains="NoLanguage"} La combinación de opciones con el operador -split no es válida. @@ -580,85 +581,112 @@ La forma correcta es: foreach ($a en $b) {...} Use `{ en lugar de { en los nombres de variable. - Falta el bloque de instrucciones en la Sección de datos. + Falta el bloque de instrucciones en la Sección de Data. + {StrContains="Data"} - El parámetro "{0}" de la Sección de datos no es válido. El parámetro válido de la Sección de datos es SupportedCommand. + El parámetro "{0}" de la Sección de Data no es válido. El parámetro válido de la Sección de Data es SupportedCommand. + {StrContains="Data"}{StrContains="SupportedCommand"} - No se permiten referencias de matriz en el modo de lenguaje restringido o en una Sección de datos. + No se permiten referencias de matriz en el modo RestrictedLanguage ni en una sección Data. + {StrContains="RestrictedLanguage"}{StrContains="Data"} - No se permiten instrucciones de asignación en el modo de lenguaje restringido ni en una Sección de datos. + No se permiten instrucciones de asignación en el modo RestrictedLanguage ni en una sección Data. + {StrContains="RestrictedLanguage"}{StrContains="Data"} - No se permite el redireccionamiento en el modo de lenguaje restringido ni en una Sección de datos. + No se permite el redireccionamiento en el modo RestrictedLanguage ni en una sección Data. + {StrContains="RestrictedLanguage"}{StrContains="Data"} - No se permiten las instrucciones Do y While en el modo de lenguaje restringido o en una Sección de datos. + Las instrucciones Do y While no se permiten en el modo RestrictedLanguage ni en una sección Data. + {StrContains="Do"}{StrContains="While"}{StrContains="RestrictedLanguage"}{StrContains="Data"} - No se permiten cadenas expansibles en el modo de lenguaje restringido ni en una Sección de datos. + No se permiten cadenas expansibles en el modo RestrictedLanguage ni en una sección Data. + {StrContains="RestrictedLanguage"}{StrContains="Data"} - No se permite el operador "{0}" en el modo de lenguaje restringido ni en una Sección de datos. + No se permite el operador '{0}' en el modo RestrictedLanguage o en una sección Data. + {StrContains="RestrictedLanguage"}{StrContains="Data"} - No se permite la instrucción Trap en el modo de lenguaje restringido ni en una Sección de datos. + La instrucción Trap no se permite en el modo RestrictedLanguage ni en una sección Data. + {StrContains="Trap"}{StrContains="RestrictedLanguage"}{StrContains="Data"} - No se permite la instrucción Try en el modo de lenguaje restringido ni en una Sección de datos. + La instrucción Try no está permitida en el modo RestrictedLanguage ni en una sección Data. + {StrContains="Try"}{StrContains="RestrictedLanguage"}{StrContains="Data"} - No se permiten instrucciones de control de flujo como Break, Continue, Return, Exit y Throw en el modo de lenguaje restringido o en una Sección de datos. + Las instrucciones de control de flujo como Break, Continue, Return, Exit y Throw no se permiten en el modo RestrictedLanguage ni en una sección Data. + {StrContains="Break"}{StrContains="Continue"}{StrContains="Return"}{StrContains="Exit"}{StrContains="Throw"}{StrContains="RestrictedLanguage"}{StrContains="Data"} - Las instrucciones Foreach no se permiten en el modo de lenguaje restringido ni en una Sección de datos. + No se permiten instrucciones Foreach en el modo RestrictedLanguage ni en una sección Data. + {StrContains="Foreach"}{StrContains="RestrictedLanguage"}{StrContains="Data"} - Las instrucciones For y While no se permiten en el modo de lenguaje restringido ni en una Sección de datos. + Las instrucciones For y While no se permiten en el modo RestrictedLanguage ni en una sección Data. + {StrContains="For"}{StrContains="While"}{StrContains="RestrictedLanguage"}{StrContains="Data"} - Las declaraciones de función no se permiten en el modo de lenguaje restringido ni en una sección Data. + No se permiten declaraciones de Function en el modo RestrictedLanguage ni en una sección Data. + {StrContains="Function"}{StrContains="RestrictedLanguage"}{StrContains="Data"} - Las llamadas a métodos no se permiten en el modo de lenguaje restringido ni en una Sección de datos. + Las llamadas a métodos no se permiten en el modo RestrictedLanguage ni en una sección Data. + {StrContains="RestrictedLanguage"}{StrContains="Data"} - No se permiten declaraciones de parámetros en modo de lenguaje restringido ni en una Sección de datos. + No se permiten declaraciones de parámetros en el modo RestrictedLanguage ni en una sección Data. + {StrContains="RestrictedLanguage"}{StrContains="Data"} - No se permiten referencias de propiedad en el modo de lenguaje restringido ni en una Sección de datos. + No se permiten referencias de propiedad en el modo RestrictedLanguage ni en una sección Data. + {StrContains="RestrictedLanguage"}{StrContains="Data"} - No se permiten literales de bloque de script en modo de lenguaje restringido ni en una Sección de datos. + No se permiten literales de bloque de script en el modo RestrictedLanguage ni en una sección Data. + {StrContains="RestrictedLanguage"}{StrContains="Data"} - La instrucción switch no se permite en el modo de lenguaje restringido ni en una Sección de datos. + No se permite la instrucción Switch en el modo RestrictedLanguage ni en una sección Data. + {StrContains="Switch"}{StrContains="RestrictedLanguage"}{StrContains="Data"} - Se está haciendo referencia a una variable a la que no se puede hacer referencia en el modo de lenguaje restringido ni en una Sección de datos. Entre las variables a las que se puede hacer referencia se incluyen las siguientes: {0}. + Variable a la que no se puede hacer referencia en modo RestrictedLanguage o se hace referencia a una sección Data. Entre las variables a las que se puede hacer referencia se incluyen las siguientes: {0}. + {StrContains="RestrictedLanguage"}{StrContains="Data"} - No se permite el comando "{0}" en el modo de lenguaje restringido ni en una Sección de datos. + No se permite la '{0}' de comandos en el modo RestrictedLanguage o en una sección Data. + {StrContains="RestrictedLanguage"}{StrContains="Data"} - La instrucción de datos no se permite en el modo de lenguaje restringido u otra Sección de datos. + La instrucción Data no se permite en el modo RestrictedLanguage ni en otra sección Data. + {StrContains="RestrictedLanguage"}{StrContains="Data"} - Falta un valor en el parámetro SupportedCommand de la Sección de datos. Proporcione un cmdlet o un nombre de función al parámetro. + Falta un valor en el parámetro SupportedCommand de la Sección de Data. Proporcione un cmdlet o un nombre de función al parámetro. + {StrContains="SupportedCommand"}{StrContains="Data"} - No se permite un bloque de instrucciones Begin, un bloque de instrucciones Process ni una instrucción de parámetro en una Sección de datos. + No se permite un bloque de instrucciones Begin, un bloque de instrucciones Process ni una instrucción Param en una sección Data. + {StrContains="Begin"}{StrContains="Process"}{StrContains="Param"}{StrContains="Data"} - Los resultados de multiplicación de cadenas con más de "{0}" caracteres no se permiten en el modo de lenguaje restringido ni en una sección Data. + Los resultados de multiplicación de cadenas con más de "{0}" no se permiten en el modo RestrictedLanguage ni en una sección Data. + {StrContains="RestrictedLanguage"}{StrContains="Data"} - No se permite la multiplicación de matrices que da como resultado más de {0} elementos en el modo de lenguaje restringido o en una Sección de datos. + No se permite la multiplicación de matrices que da como resultado más de {0} elementos en el modo RestrictedLanguage o en una sección Data. + {StrContains="RestrictedLanguage"}{StrContains="Data"} - No se permite el aprovisionamiento de puntos en el modo de lenguaje restringido ni en una Sección de datos. + No se permite el aprovisionamiento de puntos en el modo RestrictedLanguage ni en una sección Data. + {StrContains="RestrictedLanguage"}{StrContains="Data"} El argumento de atributo debe ser una constante o un bloque de script. @@ -721,10 +749,12 @@ La forma correcta es: foreach ($a en $b) {...} No se permite una clave NULL en un literal hash. - No se permiten atributos en el modo de lenguaje restringido ni en una Sección de datos. + No se permiten atributos en el modo RestrictedLanguage ni en una sección Data. + {StrContains="RestrictedLanguage"}{StrContains="Data"} - No se permite el tipo {0} en el modo de lenguaje restringido ni en una Sección de datos. + No se permite el tipo {0} en el modo RestrictedLanguage o en una sección Data. + {StrContains="RestrictedLanguage"}{StrContains="Data"} "{0}" es una propiedad ReadOnly. @@ -784,7 +814,8 @@ La forma correcta es: foreach ($a en $b) {...} Falta el cuerpo de la instrucción después de la palabra clave "{0}". - Los bloques paralelos y de secuencia no se permiten en el modo de lenguaje restringido ni en una Sección de datos. + No se permiten bloques Parallel ni Sequence en el modo RestrictedLanguage ni en una sección Data. + {StrContains="Parallel"}{StrContains="Sequence"}{StrContains="RestrictedLanguage"}{StrContains="Data"} Palabra clave inesperada "{0}". @@ -796,7 +827,8 @@ La forma correcta es: foreach ($a en $b) {...} No se puede invocar al método. - No se puede convertir la tabla hash en un objeto del tipo siguiente: {0}. No se admite la conversión de tabla hash a objeto en el modo de lenguaje restringido o en una Sección de datos. + No se puede convertir la tabla hash en un objeto del siguiente tipo: {0}. No se admite la conversión de tabla hash a objeto en el modo RestrictedLanguage o en una sección Data. + {StrContains="RestrictedLanguage"}{StrContains="Data"} El argumento debe ser constante. @@ -842,7 +874,8 @@ La forma correcta es: foreach ($a en $b) {...} No se encontró el archivo de esquema {0}. Compruebe que los módulos especificados en una instrucción de configuración contienen un archivo schema.mof e intente ejecutar el script de nuevo. - No se puede definir la sección de datos. No se admite la definición de comandos admitidos adicionales en este modo de lenguaje. + No se puede definir Data sección. No se admite la definición de comandos admitidos adicionales en este modo de lenguaje. + {StrContains="Data"} Falta "{" en la instrucción de configuración. @@ -935,7 +968,8 @@ ModuleVersion: versión del módulo que se va a importar. Si se usa, ModuleName No se puede cargar el recurso "{0}": recurso no encontrado. - La palabra clave Configuration no se permite en el modo constrainedLanguage. + No se permite la palabra clave Configuration en el modo ConstrainedLanguage. + {StrContains="ConstrainedLanguage"} El nombre de configuración "{0}" no es válido. Los nombres Standard solo pueden contener letras (a-z, A-Z), números (0-9), puntos (.), guiones (-) y guiones bajos (_). El nombre no puede ser nulo ni estar vacío y debe comenzar con una letra. @@ -1321,6 +1355,7 @@ ModuleVersion: versión del módulo que se va a importar. Si se usa, ModuleName La palabra clave Class no se permite en el modo ConstrainedLanguage. + {StrContains="Class"}{StrContains="ConstrainedLanguage"} Falta ":" en la expresión ternaria. @@ -1338,37 +1373,43 @@ ModuleVersion: versión del módulo que se va a importar. Si se usa, ModuleName Palabra clave de configuración del analizador - La palabra clave Configuration no se permitirá en el modo de lenguaje restringido para scripts que no sean de confianza. + No se permitirá la palabra clave Configuration en modo ConstrainedLanguage para scripts que no sean de confianza. + {StrContains="Configuration"}{StrContains="ConstrainedLanguage"} Palabra clave de clase Parser - La palabra clave Class no se permitirá en el modo de lenguaje restringido para scripts que no sean de confianza. + No se permitirá la palabra clave Class en modo ConstrainedLanguage para scripts que no sean de confianza. + {StrContains="Class"}{StrContains="ConstrainedLanguage"} Sección de datos del analizador SupportedCommand - La Sección de datos que incluye el parámetro SupportedCommand no se permite en el modo de lenguaje restringido para scripts que no son de confianza. + La sección Data que incluye el parámetro SupportedCommand no se permite en el modo ConstrainedLanguage para el script que no es de confianza. + {StrContains="Data"}{StrContains="SupportedCommand"}{StrContains="ConstrainedLanguage"} Operador de llamada de ámbito de módulo - El operador de llamada de ámbito de módulo se denegará en el modo de lenguaje restringido. + El operador de llamada de ámbito de módulo se denegará en modo ConstrainedLanguage. + {StrContains="ConstrainedLanguage"} Invocación del método de palabra clave ForEach - La palabra clave ForEach producirá un error al invocar el método del elemento de iteración "{0}" cuando se ejecute en el modo de lenguaje restringido. + La palabra clave ForEach producirá un error en la invocación del método de elemento de iteración "{0}" cuando se ejecute en modo ConstrainedLanguage. + {StrContains="ForEach"}{StrContains="ConstrainedLanguage"} Puede producirse un error en la evaluación de expresiones - La creación de una canalización paso a paso a partir de un bloque de script puede requerir la evaluación de algunas expresiones dentro del bloque de script. La evaluación de expresiones producirá un error en modo silencioso y devolverá "null" en el modo de lenguaje restringido, a menos que la expresión represente un valor constante. + La creación de una canalización paso a paso a partir de un bloque de script puede requerir la evaluación de algunas expresiones dentro del bloque de script. La evaluación de expresiones producirá un error en modo silencioso y devolverá "null" en el modo ConstrainedLanguage, a menos que la expresión represente un valor constante. + {StrContains="ConstrainedLanguage"} La palabra clave de configuración no se admite en procesadores ARM64. diff --git a/src/System.Management.Automation/resources/es/RemotingErrorIdStrings.es.resx b/src/System.Management.Automation/resources/es/RemotingErrorIdStrings.es.resx index ddfdef76394..cb618f51366 100644 --- a/src/System.Management.Automation/resources/es/RemotingErrorIdStrings.es.resx +++ b/src/System.Management.Automation/resources/es/RemotingErrorIdStrings.es.resx @@ -318,7 +318,7 @@ El servidor que ejecuta PowerShell no puede procesar la operación de conexión porque el servidor no se ha iniciado o se está cerrando. - El servidor que ejecuta PowerShell no puede procesar la operación de conexión porque las propiedades del grupo de espacio de ejecución del servidor no coincidían con las propiedades especificadas del equipo cliente. + El servidor que ejecuta PowerShell no puede procesar la operación de conexión porque las propiedades del grupo de espacios de ejecución del servidor no coincidían con las propiedades especificadas del equipo cliente. {0}. Error en la negociación con el cliente. Asegúrese de que el cliente es compatible con la compilación {1} y la versión {2} de protocolo de PowerShell. @@ -1022,6 +1022,7 @@ Todas las sesiones de WinRM conectadas a configuraciones de sesión de PowerShel Modo de lenguaje que se aplicará cuando se aplique a una sesión. Puede ser "NoLanguage" (recomendado), "RestrictedLanguage","ConstrainedLanguage" o "FullLanguage" + {StrContains="NoLanguage"}{StrContains="RestrictedLanguage"}{StrContains="ConstrainedLanguage"}{StrContains="FullLanguage"} Módulos que se van a importar cuando se aplican a una sesión @@ -1342,10 +1343,10 @@ Todas las sesiones de WinRM conectadas a configuraciones de sesión de PowerShel PSSession {0} se creó con el parámetro EnableNetworkAccess y solo se puede volver a conectar desde el equipo local. - No se puede iniciar el trabajo. El modo de idioma de esta sesión no es compatible con el modo de idioma de todo el sistema. + No se puede iniciar el trabajo. El modo de lenguaje de esta sesión no es compatible con el modo de lenguaje de todo el sistema. - No se puede crear el espacio de ejecución. El modo de idioma para esta configuración no es compatible con el modo de idioma de todo el sistema. + No se puede crear el espacio de ejecución. El modo de lenguaje para esta configuración no es compatible con el modo de lenguaje de todo el sistema. No se puede salir de una canalización anidada porque la canalización no está en el estado anidado. @@ -1721,7 +1722,8 @@ El proceso de cliente SSH finalizó antes de que se pudiera establecer la conexi Puede producirse un error en la evaluación de expresiones - La creación de un objeto de PowerShell a partir de un bloque de script puede requerir la evaluación de algunas expresiones dentro del bloque de script. La evaluación de expresiones producirá un error en modo silencioso y devolverá "null" en el modo de lenguaje restringido, a menos que la expresión represente un valor constante. + La creación de un objeto de PowerShell a partir de un bloque de script puede requerir la evaluación de algunas expresiones dentro del bloque de script. La evaluación de expresiones producirá un error en modo silencioso y devolverá "null" en el modo ConstrainedLanguage, a menos que la expresión represente un valor constante. + {StrContains="ConstrainedLanguage"} Error al obtener el estado de la máquina virtual de Hyper-V. El valor era del tipo {0}, pero se esperaba que fuera Microsoft.HyperV.PowerShell.VMState o System.String. diff --git a/src/System.Management.Automation/resources/es/RunspacePoolStrings.es.resx b/src/System.Management.Automation/resources/es/RunspacePoolStrings.es.resx index 0bb3a8c54ab..689bce353bb 100644 --- a/src/System.Management.Automation/resources/es/RunspacePoolStrings.es.resx +++ b/src/System.Management.Automation/resources/es/RunspacePoolStrings.es.resx @@ -130,7 +130,7 @@ El estado del grupo de espacios de ejecución no es válido para esta operación. - No se puede realizar la operación porque el grupo de espacio de ejecución no se encuentra en el estado "{0}". El estado actual es "{1}". + No se puede realizar la operación porque el grupo de espacios de ejecución no se encuentra en el estado "{0}". El estado actual es "{1}". No se puede abrir el grupo de espacios de ejecución porque no está en el estado "BeforeOpen". El estado actual es "{0}". @@ -148,7 +148,7 @@ Este espacio de ejecución no admite operaciones de desconexión y conexión. - No se puede realizar la operación porque el grupo de espacio de ejecución está en estado Desconectado. + No se puede realizar la operación porque el grupo de espacios de ejecución está en estado Desconectado. La operación Desconectar no se admite en el servidor. El servidor debe ejecutar PowerShell 3.0 o una versión posterior para admitir la desconexión del grupo de espacios de ejecución remoto. diff --git a/src/System.Management.Automation/resources/es/RunspaceStrings.es.resx b/src/System.Management.Automation/resources/es/RunspaceStrings.es.resx index d2ca017ecec..abc5f48848b 100644 --- a/src/System.Management.Automation/resources/es/RunspaceStrings.es.resx +++ b/src/System.Management.Automation/resources/es/RunspaceStrings.es.resx @@ -172,7 +172,7 @@ Las opciones de subproceso solo se pueden cambiar si el estado del contenedor es contenedor multiproceso (MTA), las opciones actuales son UseNewThread o UseCurrentThread y el nuevo valor es ReuseThread. - {0} no puede ser false cuando el modo de idioma es {1} o {2}. + {0} no puede ser false cuando el modo de lenguaje es {1} o {2}. No se puede desconectar un espacio de ejecución solo local. @@ -184,7 +184,8 @@ La sesión está ocupada. Se conectará a la sesión en cuanto esté disponible. Para cancelar el comando Enter-PSSession, presione Ctrl-C. - El comando no se ha podido completar. No se admite la invocación de scripts en esta configuración de sesión. Esto puede ocurrir si la configuración de sesión está en modo sin idioma. + No se puede completar el comando. No se admite la invocación de scripts en esta configuración de sesión. Esto puede ocurrir si la configuración de la sesión está en modo NoLanguage. + {StrContains="NoLanguage"} No puede usar las operaciones Disconnect y Connect en espacios de ejecución locales. diff --git a/src/System.Management.Automation/resources/es/SecuritySupportStrings.es.resx b/src/System.Management.Automation/resources/es/SecuritySupportStrings.es.resx index 06bf01991d5..87390c20621 100644 --- a/src/System.Management.Automation/resources/es/SecuritySupportStrings.es.resx +++ b/src/System.Management.Automation/resources/es/SecuritySupportStrings.es.resx @@ -164,5 +164,6 @@ La directiva no confía en el archivo de script "{0}" y se ejecutará en modo ConstrainedLanguage. + {StrContains="ConstrainedLanguage"} \ No newline at end of file diff --git a/src/System.Management.Automation/resources/es/SessionStateStrings.es.resx b/src/System.Management.Automation/resources/es/SessionStateStrings.es.resx index 5461b89efaf..17617cb7f05 100644 --- a/src/System.Management.Automation/resources/es/SessionStateStrings.es.resx +++ b/src/System.Management.Automation/resources/es/SessionStateStrings.es.resx @@ -653,5 +653,6 @@ El cambio o creación del ámbito de la variable "{0}" a AllScope se impedirá en el modo ConstrainedLanguage. + {StrContains="ConstrainedLanguage"} \ No newline at end of file diff --git a/src/System.Management.Automation/resources/fr/AutomationExceptions.fr.resx b/src/System.Management.Automation/resources/fr/AutomationExceptions.fr.resx index 4799a780b5e..1ebb649d909 100644 --- a/src/System.Management.Automation/resources/fr/AutomationExceptions.fr.resx +++ b/src/System.Management.Automation/resources/fr/AutomationExceptions.fr.resx @@ -205,6 +205,7 @@ Source point de bloc de script compilée - L’appel du bloc de script «{0}» dans l’étendue actuelle ne sera pas autorisé en mode langue contrainte. Mode de langage de script : {1}, mode de langage de contexte : {2}. + L’appel du bloc de script '{0}' dans l’étendue actuelle ne sera pas autorisé en mode ConstrainedLanguage. Mode de langage de script : {1}, mode de langage de contexte : {2}. + {StrContains="ConstrainedLanguage"} \ No newline at end of file diff --git a/src/System.Management.Automation/resources/fr/CatalogStrings.fr.resx b/src/System.Management.Automation/resources/fr/CatalogStrings.fr.resx index 8e07cfedfb5..754e6b937bb 100644 --- a/src/System.Management.Automation/resources/fr/CatalogStrings.fr.resx +++ b/src/System.Management.Automation/resources/fr/CatalogStrings.fr.resx @@ -151,7 +151,8 @@ La version de catalogue n’est pas valide. Nous prenons uniquement en charge la version {0} et la version {1} du catalogue. - '{0}' is a version catalog that uses SHA0 or SHA1. Consider regenerating this catalog with '-CatalogVersion 2'. + « {0} » est un catalogue de version 1 qui utilise l’algorithme de hachage SHA-1, qui n’est pas sécurisé. Envisagez de régénérer ce catalogue avec « -CatalogVersion 2 ». + {StrContains="SHA-1"}{StrContains="-CatalogVersion 2"} Nous ne pouvons pas ouvrir le fichier de définition de catalogue. diff --git a/src/System.Management.Automation/resources/fr/CommandBaseStrings.fr.resx b/src/System.Management.Automation/resources/fr/CommandBaseStrings.fr.resx index cd7b81a21dd..163e147bec5 100644 --- a/src/System.Management.Automation/resources/fr/CommandBaseStrings.fr.resx +++ b/src/System.Management.Automation/resources/fr/CommandBaseStrings.fr.resx @@ -232,12 +232,14 @@ Reviewed by TArcher on 2010-07-20 Vérification du dot-sourcing des blocs de script - Le traitement Dot-Source du bloc de script « {0} » échouera en mode de langage contraint, car son mode de langage « {1} » ne correspond pas au mode de langage actuel « {2} ». + Le traitement Dot-Source du bloc de script « {0} » échouera en mode ConstrainedLanguage, car son mode langage « {1} » ne correspond pas au mode langage actuel « {2} ». + {StrContains="ConstrainedLanguage"} Outil de recherche de commandes La commande « {0} » du module « {1} » n’est pas approuvée et ne sera pas accessible en mode ConstrainedLanguage. + {StrContains="ConstrainedLanguage"} \ No newline at end of file diff --git a/src/System.Management.Automation/resources/fr/DiscoveryExceptions.fr.resx b/src/System.Management.Automation/resources/fr/DiscoveryExceptions.fr.resx index 0dafcb78fe9..f138cb62aa1 100644 --- a/src/System.Management.Automation/resources/fr/DiscoveryExceptions.fr.resx +++ b/src/System.Management.Automation/resources/fr/DiscoveryExceptions.fr.resx @@ -217,7 +217,7 @@ Pour plus d’informations, exécutez « Import-Module {1} ». Aucune commande correspondante n’inclut un paramètre nommé « {0} ». Vérifiez l’orthographe du nom du paramètre, puis réessayez. - Nous ne pouvons pas effectuer un dot-source sur cette commande, car elle a été définie dans un autre mode de langage. Pour appeler cette commande sans importer son contenu, omettez l’opérateur '.'. + Nous ne pouvons pas effectuer un dot-source sur cette commande, car elle a été définie dans un autre mode langage. Pour appeler cette commande sans importer son contenu, omettez l’opérateur '.'. Les paramètres ShowCommandInfo et Syntax ne peuvent pas être spécifiés ensemble. diff --git a/src/System.Management.Automation/resources/fr/ExtendedTypeSystem.fr.resx b/src/System.Management.Automation/resources/fr/ExtendedTypeSystem.fr.resx index 2cd620ef1b9..969d68ff2df 100644 --- a/src/System.Management.Automation/resources/fr/ExtendedTypeSystem.fr.resx +++ b/src/System.Management.Automation/resources/fr/ExtendedTypeSystem.fr.resx @@ -377,7 +377,7 @@ PS> [System.Collections.Generic.Comparer``1]::get_Default() La valeur « {0} » ne peut pas être convertie en tableau de chaînes. - Impossible de convertir la valeur en type « {0} ». Seuls les types principaux sont pris en charge dans ce mode de langage. + Impossible de convertir la valeur en type « {0} ». Seuls les types principaux sont pris en charge dans ce mode langage. Impossible de convertir en type ByRef-like « {0} ». Les types similaires à ByRef ne sont pas pris en charge dans PowerShell. @@ -396,11 +396,13 @@ PS> [System.Collections.Generic.Comparer``1]::get_Default() La conversion de type de HashTable vers « {0} » ne sera pas autorisée en mode ConstrainedLanguage. + {StrContains="ConstrainedLanguage"} Conversion de table de hachage du système de types étendus La conversion de type de « {0} » vers « {1} » ne sera pas autorisée en mode ConstrainedLanguage. + {StrContains="ConstrainedLanguage"} \ No newline at end of file diff --git a/src/System.Management.Automation/resources/fr/InternalCommandStrings.fr.resx b/src/System.Management.Automation/resources/fr/InternalCommandStrings.fr.resx index e32d59813bb..3c8052e1db7 100644 --- a/src/System.Management.Automation/resources/fr/InternalCommandStrings.fr.resx +++ b/src/System.Management.Automation/resources/fr/InternalCommandStrings.fr.resx @@ -145,13 +145,15 @@ Le nom d’entrée « {0} » ne peut pas être résolu en méthode. - Nous ne pouvons pas appeler une méthode en mode de langage restreint. + Impossible d’appeler une méthode en mode RestrictedLanguage. + {StrContains="RestrictedLanguage"} Les paramètres -WhatIf et -Confirm ne sont pas pris en charge pour les blocs de script. L’opération « {0} » n’est pas autorisée en mode RestrictedLanguage. + {StrContains="RestrictedLanguage"} Un opérateur est requis pour comparer les deux valeurs spécifiées. Incluez un opérateur valide dans la commande, puis réessayez. Par exemple, Get-Process | Where-Object -Property Name -eq Idle @@ -188,6 +190,7 @@ ErrorAction, WarningAction, InformationAction, PipelineVariable Cmdlet ForEach-Object - L’appel de méthode sur le type « {0} » ne sera pas autorisé lors de l’exécution en mode de langage contraint. + L’appel de méthode sur le type '{0}' n’est pas autorisé en cas d’exécution en mode ConstrainedLanguage. + {StrContains="ConstrainedLanguage"} \ No newline at end of file diff --git a/src/System.Management.Automation/resources/fr/Metadata.fr.resx b/src/System.Management.Automation/resources/fr/Metadata.fr.resx index f7e2c7fc1c1..548d25795f1 100644 --- a/src/System.Management.Automation/resources/fr/Metadata.fr.resx +++ b/src/System.Management.Automation/resources/fr/Metadata.fr.resx @@ -262,6 +262,7 @@ Échec de la vérification d’attribut ValidateTrustedData - L’argument de paramètre «{0}» n’est pas approuvé et échoue à la vérification de l’attribut de paramètre ValidateTrustedData en mode langue contrainte. + L’argument de paramètre '{0}' n’est pas approuvé et l’attribut de paramètre ValidateTrustedData échouera case activée en mode ConstrainedLanguage. + {StrContains="ValidateTrustedData"}{StrContains="ConstrainedLanguage"} \ No newline at end of file diff --git a/src/System.Management.Automation/resources/fr/Modules.fr.resx b/src/System.Management.Automation/resources/fr/Modules.fr.resx index ed6b95bdb54..406e94318a0 100644 --- a/src/System.Management.Automation/resources/fr/Modules.fr.resx +++ b/src/System.Management.Automation/resources/fr/Modules.fr.resx @@ -626,18 +626,20 @@ L’importation de fichiers *.ps1 en tant que modules n’est pas autorisée en mode ConstrainedLanguage. + {StrContains="ConstrainedLanguage"} - Une erreur s’est produite lors du chargement du module de script {0}, car son mode de langage est différent de celui du manifeste du module. Le mode de langage du manifeste est {1} et le mode de langage du module est {2}. Vérifiez que tous les fichiers du module sont signés ou qu’ils font partie de la configuration de la liste d’autorisation de votre application. + Une erreur s’est produite lors du chargement du module de script {0}, car son mode langage est différent de celui du manifeste du module. Le mode langage du manifeste est {1} et le mode langage du module est {2}. Vérifiez que tous les fichiers du module sont signés ou qu’ils font partie de la configuration de la liste d’autorisation de votre application. Ce module utilise l’opérateur dot-source lors de l’exportation de fonctions à l’aide de caractères génériques, ce qui n’est pas autorisé lorsque le système est soumis à obligation de vérification des applications. - Impossible d’exporter des membres de module à partir d’un module dont le mode de langage est différent de celui de la session en cours. + Impossible d’exporter des membres de module à partir d’un module dont le mode langage est différent de celui de la session en cours. Impossible de créer un nouveau module tant que la session est en mode ConstrainedLanguage. + {StrContains="ConstrainedLanguage"} Impossible de trouver le module intégré « {0} » compatible avec l’édition « Core ». Vérifiez que les modules intégrés PowerShell sont disponibles. Ils sont généralement fournis avec le package PowerShell sous le chemin de module $PSHOME, et sont nécessaires au bon fonctionnement de PowerShell. @@ -646,42 +648,49 @@ Cmdlet Export-ModuleMember - L’exportation des membres du module échouera en mode de langage contraint, car le module « {0} » a un mode de langage « {1} » différent du mode de la session actuelle « {2} ». + L’exportation des membres du module échouera en mode ConstrainedLanguage, car le module '{0}' a un mode de langage '{1}' différent du '{2}' de la session actuelle. + {StrContains="ConstrainedLanguage"} Exportation implicite des fonctions du module - L’exportation implicite de fonctions pour le module « {0} » sera refusée, car il est approuvé (il s’exécute en mode de langage complet), mais la session ne l’est pas (elle s’exécute en mode de langage contraint). Il est recommandé d’exporter systématiquement les fonctions du module individuellement, avec leur nom complet. + L’exportation implicite de fonctions du module « {0} » sera refusée, car il est approuvé (il s’exécute en mode FullLanguage), mais la session ne l’est pas (elle s’exécute en mode ConstrainedLanguage). L’exportation systématiquement des fonctions du module individuellement, avec leur nom complet, constitue la meilleure pratique. + {StrContains="FullLanguage"}{StrContains="ConstrainedLanguage"} Importation du fichier de script en tant que module L’importation du fichier de script « {0} » en tant que module ne sera pas autorisée en mode ConstrainedLanguage. + {StrContains="ConstrainedLanguage"} Le module contient un opérateur Dot-Source - L’importation du module « {0} » échouera en mode de langage contraint, car il exporte des fonctions à l’aide de caractères génériques tout en utilisant l’opérateur dot-source. + L’importation du module '{0}' échouera en mode ConstrainedLanguage, car il exporte des fonctions à l’aide de caractères génériques tout en utilisant l’opérateur dot-source. + {StrContains="ConstrainedLanguage"} - « Fonctions d’exportation de module + Fonctions d’exportation de module - Le module « {0} » exporte des fonctions à l’aide de caractères génériques dans le nom. Tous les noms de fonctions des modules imbriqués seront supprimés lors de l’exécution en mode de langage contraint. + Le module '{0}' exporte des fonctions à l’aide de caractères génériques de nom. Tous les noms de fonctions de module imbriqués seront supprimés lors de l’exécution en mode ConstrainedLanguage. + {StrContains="ConstrainedLanguage"} - «Cmdlet New-Module + Cmdlet New-Module - Un nouveau module provenant d’une session de langage contraint non approuvée sera empêché de fournir le bloc de script FullLanguage. + Un nouveau module d’une session ConstrainedLanguage non approuvée ne pourra pas fournir le bloc de script FullLanguage. + {StrContains="ConstrainedLanguage"}{StrContains="FullLanguage"} - « Modes de langage incompatibles avec les modules + Modes de langage incompatibles avec les modules - Un module dépendant est en cours de chargement avec un mode de langue différent de celui du module parent. Cela ne sera pas autorisé en mode de langage contraint. + Un module dépendant est en cours de chargement avec un mode de langue différent de celui du parent. Cela ne sera pas autorisé en mode ConstrainedLanguage. + {StrContains="ConstrainedLanguage"} \ No newline at end of file diff --git a/src/System.Management.Automation/resources/fr/ParameterBinderStrings.fr.resx b/src/System.Management.Automation/resources/fr/ParameterBinderStrings.fr.resx index 8426323ccfa..b715ec54976 100644 --- a/src/System.Management.Automation/resources/fr/ParameterBinderStrings.fr.resx +++ b/src/System.Management.Automation/resources/fr/ParameterBinderStrings.fr.resx @@ -250,12 +250,14 @@ Appel de méthode ou de propriété non autorisé - L’appel d’une méthode ou d’une propriété « {0} » sur le type « {1} » n’est pas autorisé en mode de langage contraint pour les scripts non approuvés. + L’appel de la méthode ou de la propriété '{0}' sur le type '{1}' n’est pas autorisé en mode ConstrainedLanguage pour les scripts non approuvés. + {StrContains="ConstrainedLanguage"} Création de type non autorisée - La création du type « {0} » n’est pas autorisée lors de la liaison de paramètres en mode de langage contraint pour les scripts non approuvés. + La création du type '{0}' n’est pas autorisée lors de la liaison de paramètres en mode ConstrainedLanguage pour les scripts non approuvés. + {StrContains="ConstrainedLanguage"} \ No newline at end of file diff --git a/src/System.Management.Automation/resources/fr/ParserStrings.fr.resx b/src/System.Management.Automation/resources/fr/ParserStrings.fr.resx index a2418a21064..f6253cae024 100644 --- a/src/System.Management.Automation/resources/fr/ParserStrings.fr.resx +++ b/src/System.Management.Automation/resources/fr/ParserStrings.fr.resx @@ -402,7 +402,8 @@ La forme correcte est : foreach ($a in $b) {...} Le traitement a été arrêté, car le script est trop complexe. - La syntaxe n’est pas prise en charge par cette instance d’exécution. Cela peut se produire si l’instance d’exécution est en mode sans langage. + La syntaxe n’est pas prise en charge par cette instance d’exécution. Cela peut se produire si l’instance d’exécution est en mode NoLanguage. + {StrContains="NoLanguage"} La combinaison d’options avec l’opérateur -split n’est pas valide. @@ -580,85 +581,112 @@ La forme correcte est : foreach ($a in $b) {...} Utilisez « { » au lieu de « { » dans les noms de variables. - Le bloc d’instructions est manquant dans la section de données. + Le bloc d’instructions est manquant dans la section de Data. + {StrContains="Data"} - Le paramètre « {0} » de la section de données n’est pas valide. Le paramètre valide pour la section de données est SupportedCommand. + Le paramètre « {0} » de la section de Data n’est pas valide. Le paramètre valide pour la section de Data est SupportedCommand. + {StrContains="Data"}{StrContains="SupportedCommand"} - Les références de tableau ne sont pas autorisées en mode de langage restreint ou dans une section de données. + Les références à un tableau ne sont pas autorisées en mode RestrictedLanguage ou dans une section Data. + {StrContains="RestrictedLanguage"}{StrContains="Data"} - Les instructions d’affectation ne sont pas autorisées en mode de langage restreint ou dans une section de données. + Les instructions d’assignation ne sont pas autorisées en mode RestrictedLanguage ou dans une section Data. + {StrContains="RestrictedLanguage"}{StrContains="Data"} - La redirection n’est pas autorisée en mode de langage restreint ou dans une section de données. + La redirection n’est pas autorisée en mode RestrictedLanguage ou dans une section Data. + {StrContains="RestrictedLanguage"}{StrContains="Data"} - Les instructions Do et While ne sont pas autorisées en mode de langage restreint ou dans une section de données. + Les instructions Do et While ne sont pas autorisées en mode RestrictedLanguage ou dans une section Data. + {StrContains="Do"}{StrContains="While"}{StrContains="RestrictedLanguage"}{StrContains="Data"} - Les chaînes extensibles ne sont pas autorisées en mode de langage restreint ou dans une section de données. + Les chaînes extensibles ne sont pas autorisées en mode RestrictedLanguage ou dans une section Data. + {StrContains="RestrictedLanguage"}{StrContains="Data"} - L’opérateur « {0} » n’est pas autorisé en mode de langage restreint ou dans une section de données. + L’opérateur '{0}' n’est pas autorisé en mode RestrictedLanguage ou dans une section Data. + {StrContains="RestrictedLanguage"}{StrContains="Data"} - L’instruction Trap n’est pas autorisée en mode de langage restreint ou dans une section de données. + L’instruction Trap n’est pas autorisée en mode RestrictedLanguage ou dans une section Data. + {StrContains="Trap"}{StrContains="RestrictedLanguage"}{StrContains="Data"} - L’instruction Try n’est pas autorisée en mode de langage restreint ou dans une section de données. + L’instruction Try n’est pas autorisée en mode RestrictedLanguage ou dans une section Data. + {StrContains="Try"}{StrContains="RestrictedLanguage"}{StrContains="Data"} - Les instructions de contrôle de flux telles que Break, Continue, Return, Exit et Throw ne sont pas autorisées en mode de langage restreint ou dans une section de données. + Les instructions de contrôle de flux telles que Break, Continue, Return, Exit et Throw ne sont pas autorisées en mode RestrictedLanguage ou dans une section de Data. + {StrContains="Break"}{StrContains="Continue"}{StrContains="Return"}{StrContains="Exit"}{StrContains="Throw"}{StrContains="RestrictedLanguage"}{StrContains="Data"} - Les instructions foreach ne sont pas autorisées en mode de langage restreint ou dans une section de données. + Foreach instructions ne sont pas autorisées en mode RestrictedLanguage ou dans une section Data. + {StrContains="Foreach"}{StrContains="RestrictedLanguage"}{StrContains="Data"} - Les instructions For et While ne sont pas autorisées en mode de langage restreint ou dans une section de données. + Les instructions For et While ne sont pas autorisées en mode RestrictedLanguage ou dans une section Data. + {StrContains="For"}{StrContains="While"}{StrContains="RestrictedLanguage"}{StrContains="Data"} - Les déclarations de fonctions ne sont pas autorisées en mode de langage restreint ou dans une section de données. + Function déclarations ne sont pas autorisées en mode RestrictedLanguage ou dans une section Data. + {StrContains="Function"}{StrContains="RestrictedLanguage"}{StrContains="Data"} - Les appels de méthode ne sont pas autorisés en mode de langage restreint ou dans une section de données. + Les appels de méthode ne sont pas autorisés en mode RestrictedLanguage ou dans une section Data. + {StrContains="RestrictedLanguage"}{StrContains="Data"} - Les déclarations de paramètres ne sont pas autorisées en mode de langage restreint ou dans une section de données. + Les déclarations de paramètres ne sont pas autorisées en mode RestrictedLanguage ou dans une section Data. + {StrContains="RestrictedLanguage"}{StrContains="Data"} - Les références de propriété ne sont pas autorisées en mode de langage restreint ou dans une section de données. + Les références de propriété ne sont pas autorisées en mode RestrictedLanguage ou dans une section Data. + {StrContains="RestrictedLanguage"}{StrContains="Data"} - Les littéraux de bloc de script ne sont pas autorisés en mode de langage restreint ou dans une section de données. + Les littéraux de bloc de script ne sont pas autorisés en mode RestrictedLanguage ou dans une section Data. + {StrContains="RestrictedLanguage"}{StrContains="Data"} - L’instruction switch n’est pas autorisée en mode de langage restreint ou dans une section de données. + L’instruction Switch n’est pas autorisée en mode RestrictedLanguage ou dans une section Data. + {StrContains="Switch"}{StrContains="RestrictedLanguage"}{StrContains="Data"} - Une variable qui ne peut pas être référencée en mode de langage restreint ou dans une section de données est en cours de référencement. Les variables qui peuvent être référencées sont les suivantes : {0}. + Une variable qui ne peut pas être référencée en mode RestrictedLanguage ou une section Data est en cours de référencement. Les variables qui peuvent être référencées sont les suivantes : {0}. + {StrContains="RestrictedLanguage"}{StrContains="Data"} - La commande « {0} » n’est pas autorisée en mode de langage restreint ou dans une section de données. + Le '{0}' de commande n’est pas autorisé en mode RestrictedLanguage ou dans une section Data. + {StrContains="RestrictedLanguage"}{StrContains="Data"} - L’instruction data n’est pas autorisée en mode de langage restreint ou dans une autre section de données. + L’instruction Data n’est pas autorisée en mode RestrictedLanguage ou dans une autre section Data. + {StrContains="RestrictedLanguage"}{StrContains="Data"} - Une valeur manque dans le paramètre SupportedCommand de la section de données. Fournissez une cmdlet ou un nom de fonction pour ce paramètre. + Une valeur manque dans le paramètre SupportedCommand de la section de Data. Fournissez une cmdlet ou un nom de fonction pour ce paramètre. + {StrContains="SupportedCommand"}{StrContains="Data"} - Les blocs d’instructions Begin, les blocs d’instructions Process ou les instructions parameter ne sont pas autorisés dans une section de données. + Les blocs d’instructions Begin, les blocs d’instructions Process ou les instructions Param ne sont pas autorisés dans une section de Data. + {StrContains="Begin"}{StrContains="Process"}{StrContains="Param"}{StrContains="Data"} - Les résultats de multiplication de chaînes comportant plus de « {0} » caractères ne sont pas autorisés en mode de langage restreint ou dans une section Data. + Les résultats de multiplication de chaînes comportant plus de "{0}" caractères ne sont pas autorisés en mode RestrictedLanguage ou dans une section Data. + {StrContains="RestrictedLanguage"}{StrContains="Data"} - La multiplication de tableaux aboutissant à plus de {0} éléments n’est pas autorisée en mode de langage restreint ou dans une section de données. + La multiplication de tableaux générant plus de {0} éléments n’est pas autorisée en mode RestrictedLanguage ou dans une section Data. + {StrContains="RestrictedLanguage"}{StrContains="Data"} - Le sourçage de données n’est pas autorisé en mode de langage restreint ou dans une section de données. + Le dot-sourcing n’est pas autorisé en mode RestrictedLanguage ou dans une section de Data. + {StrContains="RestrictedLanguage"}{StrContains="Data"} L’argument d’attribut doit être une constante ou un bloc de script. @@ -721,10 +749,12 @@ La forme correcte est : foreach ($a in $b) {...} Les clés nulles ne sont pas autorisées dans un littéral de hachage. - Les attributs ne sont pas autorisés en mode de langage restreint ou dans une section de données. + Les attributs ne sont pas autorisés en mode RestrictedLanguage ou dans une section Data. + {StrContains="RestrictedLanguage"}{StrContains="Data"} - Le type {0} n’est pas autorisée en mode de langage restreint ou dans une section de données. + Le type {0} n’est pas autorisé en mode RestrictedLanguage ou dans une section Data. + {StrContains="RestrictedLanguage"}{StrContains="Data"} « {0} » est une propriété ReadOnly. @@ -784,7 +814,8 @@ La forme correcte est : foreach ($a in $b) {...} Corps de l’instruction manquant après le mot clé « {0} ». - Les blocs parallèles et séquentiels ne sont pas autorisés en mode de langage restreint ni dans une section de données. + Parallel et les blocs Sequence ne sont pas autorisés en mode RestrictedLanguage ou dans une section Data. + {StrContains="Parallel"}{StrContains="Sequence"}{StrContains="RestrictedLanguage"}{StrContains="Data"} Mot-clé inattendu « {0} ». @@ -796,7 +827,8 @@ La forme correcte est : foreach ($a in $b) {...} Impossible d’appeler la méthode. - Impossible de convertir la table de hachage en objet du type suivant : {0}. La conversion d’une table de hachage en objet n’est pas prise en charge en mode de langage restreint ou dans une section de données. + Impossible de convertir la table de hachage en objet du type suivant : {0}. La conversion de la table de hachage en objet n’est pas prise en charge en mode RestrictedLanguage ou dans une section Data. + {StrContains="RestrictedLanguage"}{StrContains="Data"} L’argument doit être constant. @@ -820,10 +852,10 @@ La forme correcte est : foreach ($a in $b) {...} Les caractères génériques ne sont pas pris en charge pour les noms de modules. - Impossible d’appeler la méthode. L’appel de méthode est pris en charge uniquement sur les types principaux dans ce mode de langage. + Impossible d’appeler la méthode. L’appel de méthode est pris en charge uniquement sur les types principaux dans ce mode langage. - Impossible de définir la propriété. La définition de propriété est prise en charge uniquement sur les types principaux dans ce mode de langage. + Impossible de définir la propriété. La définition de propriété est prise en charge uniquement sur les types principaux dans ce mode langage. Un nom d’attribut non valide a été trouvé pour la ressource « {0} ». Un nom d’attribut doit être une chaîne simple et ne peut pas contenir de variables ou d’expressions. Remplacez « {1} » par une chaîne simple. @@ -842,7 +874,8 @@ La forme correcte est : foreach ($a in $b) {...} Le fichier de schéma {0} n’a pas été trouvé. Vérifiez que tous les modules spécifiés dans une instruction de configuration contiennent un fichier schema.mof, puis réessayez d’exécuter le script. - Impossible de définir la section de données. La définition de commandes supplémentaires prises en charge n’est pas prise en charge dans ce mode de langage. + Impossible de définir Data section. La définition de commandes supplémentaires prises en charge n’est pas prise en charge dans ce mode de langage. + {StrContains="Data"} Accolade ouvrante « { » manquante dans l’instruction configuration. @@ -935,7 +968,8 @@ ModuleVersion : version du module à importer. En cas d’utilisation, ModuleNa Impossible de charger la ressource « {0} » : ressource introuvable. - Le mot clé Configuration n’est pas autorisé en mode constrainedLanguage. + Le mot clé Configuration n’est pas autorisé en mode ConstrainedLanguage. + {StrContains="ConstrainedLanguage"} Le nom de configuration « {0} » n’est pas valide. Les noms standard ne peuvent contenir que des lettres (a-z, A-Z), des chiffres (0-9), des points (.), des traits d’union (-) et des traits de soulignement (_). Le nom ne peut pas être nul ou vide et doit commencer par une lettre. @@ -1293,7 +1327,7 @@ ModuleVersion : version du module à importer. En cas d’utilisation, ModuleNa La configuration partielle PartialConfiguration « {0} » a un mode d’actualisation défini sur Désactivé, ce qui n’est pas un mode valide pour les configurations partielles. Utilisez le mode d’actualisation Pull ou Push. - Nous ne pouvons pas créer le type. Seuls les types principaux sont pris en charge dans ce mode de langage. + Nous ne pouvons pas créer le type. Seuls les types principaux sont pris en charge dans ce mode langage. Import-DscResource ne peut pas être spécifié dans le contexte Node @@ -1321,6 +1355,7 @@ ModuleVersion : version du module à importer. En cas d’utilisation, ModuleNa Le mot clé Class n’est pas autorisé en mode ConstrainedLanguage. + {StrContains="Class"}{StrContains="ConstrainedLanguage"} « : » manquant dans l’expression ternaire. @@ -1338,37 +1373,43 @@ ModuleVersion : version du module à importer. En cas d’utilisation, ModuleNa Mot clé Configuration de l’analyseur - Le mot clé Configuration ne sera pas autorisé en mode de langage contraint pour un script non approuvé. + Le Configuration mot clé ne sera pas autorisé en mode ConstrainedLanguage pour un script non approuvé. + {StrContains="Configuration"}{StrContains="ConstrainedLanguage"} Mot clé Class (classe) de l’analyseur - Le mot clé Class ne sera pas autorisé en mode de langage contraint pour un script non approuvé. + Le mot clé Class ne sera pas autorisé en mode ConstrainedLanguage pour un script non approuvé. + {StrContains="Class"}{StrContains="ConstrainedLanguage"} Paramètre SupportedCommand de la section de données de l’analyseur - La section de données qui inclut le paramètre SupportedCommand est interdite en mode de langage contraint pour un script non approuvé. + La section Data qui inclut le paramètre SupportedCommand n’est pas autorisée en mode ConstrainedLanguage script non approuvé. + {StrContains="Data"}{StrContains="SupportedCommand"}{StrContains="ConstrainedLanguage"} Opérateur d’appel d’étendue du module - L’opérateur d’appel d’étendue du module sera refusé en mode de langage contraint. + L’opérateur d’appel de portée du module sera refusé en mode ConstrainedLanguage. + {StrContains="ConstrainedLanguage"} Appel de méthode du mot clé ForEach - Le mot clé ForEach entraîne l’échec de l’appel de méthode de l’élément d’itération « {0} » lorsqu’il est exécuté en mode de langage contraint. + Le ForEach mot clé échoue '{0}''appel de méthode d’élément d’itération lorsqu’il est exécuté en mode ConstrainedLanguage. + {StrContains="ForEach"}{StrContains="ConstrainedLanguage"} L’évaluation de l’expression peut échouer - La création d’un pipeline pas à pas depuis un bloc de script peut nécessiter l’évaluation de certaines expressions dans le bloc de script. L’évaluation de l’expression échouera silencieusement et renverra « null » en mode de langage contraint, sauf si l’expression représente une valeur constante. + La création d’un pipeline pas à pas depuis un bloc de script peut nécessiter l’évaluation de certaines expressions dans le bloc de script. L’évaluation de l’expression échouera silencieusement et renverra « null » en mode ConstrainedLanguage, sauf si l’expression représente une valeur constante. + {StrContains="ConstrainedLanguage"} Le mot clé Configuration n’est pas pris en charge sur les processeurs ARM64. diff --git a/src/System.Management.Automation/resources/fr/RemotingErrorIdStrings.fr.resx b/src/System.Management.Automation/resources/fr/RemotingErrorIdStrings.fr.resx index 5ee337f3a24..946d394c90a 100644 --- a/src/System.Management.Automation/resources/fr/RemotingErrorIdStrings.fr.resx +++ b/src/System.Management.Automation/resources/fr/RemotingErrorIdStrings.fr.resx @@ -1021,7 +1021,8 @@ Toutes les sessions WinRM connectées à des configurations de session PowerShel Indique s’il faut exécuter cette configuration de session en tant que compte d’administrateur (virtuel) de l’ordinateur - Mode de langue à appliquer lorsqu’il est appliqué à une session. Peut être « NoLanguage » (recommandé), « RestrictedLanguage », « ConstrainedLanguage » ou « FullLanguage » + Mode langage à appliquer lorsqu’il est appliqué à une session. Peut être « NoLanguage » (recommandé), « RestrictedLanguage », « ConstrainedLanguage » ou « FullLanguage » + {StrContains="NoLanguage"}{StrContains="RestrictedLanguage"}{StrContains="ConstrainedLanguage"}{StrContains="FullLanguage"} Modules à importer lorsqu’ils sont appliqués à une session @@ -1342,10 +1343,10 @@ Toutes les sessions WinRM connectées à des configurations de session PowerShel PSSession {0} a été créé à l’aide du paramètre EnableNetworkAccess et ne peut être reconnecté qu’à partir de l’ordinateur local. - Impossible de démarrer le travail. Le mode de langage de cette session n’est pas compatible avec le mode de langage à l’échelle du système. + Impossible de démarrer le travail. Le mode langage de cette session n’est pas compatible avec le mode langage à l’échelle du système. - Impossible de créer un espace d'exécution. Le mode de langue de cette configuration n’est pas compatible avec le mode de langue à l’échelle du système. + Impossible de créer un espace d'exécution. Le mode langage de cette configuration n’est pas compatible avec le mode langage à l’échelle du système. Impossible de quitter un pipeline imbriqué, car le pipeline n’est pas dans l’état imbriqué. @@ -1721,7 +1722,8 @@ Le processus client SSH s’est arrêté avant que la connexion puisse être ét L’évaluation de l’expression peut échouer - La création d’un objet PowerShell à partir d’un bloc de script peut nécessiter l’évaluation de certaines expressions dans le bloc de script. L'évaluation de l'expression échouera silencieusement et renverra « null » en mode de langage restreint (Constrained Language mode), à ​​moins que l'expression ne représente une valeur constante. + La création d’un objet PowerShell à partir d’un bloc de script peut nécessiter l’évaluation de certaines expressions dans le bloc de script. L’évaluation de l’expression échouera silencieusement et renverra « null » en mode ConstrainedLanguage, sauf si l’expression représente une valeur constante. + {StrContains="ConstrainedLanguage"} Échec de l’obtention de l’état de la machine virtuelle Hyper-V. La valeur était de type {0}, mais était censée être Microsoft.HyperV.PowerShell.VMState ou System.String. diff --git a/src/System.Management.Automation/resources/fr/RunspacePoolStrings.fr.resx b/src/System.Management.Automation/resources/fr/RunspacePoolStrings.fr.resx index 54b00712c8b..95ba28c7420 100644 --- a/src/System.Management.Automation/resources/fr/RunspacePoolStrings.fr.resx +++ b/src/System.Management.Automation/resources/fr/RunspacePoolStrings.fr.resx @@ -154,7 +154,7 @@ L’opération de déconnexion n’est pas prise en charge sur le serveur. Le serveur doit exécuter PowerShell 3.0 ou une version ultérieure pour prendre en charge la déconnexion du pool d’instances d’exécution distantes. - Ce pool d’espaces d’exécution {0} n’est pas configuré pour fournir des objets PowerShell déconnectés pour les commandes exécutées sur le serveur distant. Utilisez la méthode statique GetRunspacePools() de la classe RunspacePool pour interroger le serveur et renvoyer les objets de pool d’espaces d’exécution configurés à cet effet. + Ce pool d’instances d’exécution {0} n’est pas configuré pour fournir des objets PowerShell déconnectés pour les commandes exécutées sur le serveur distant. Utilisez la méthode statique GetRunspacePools() de la classe RunspacePool pour interroger le serveur et renvoyer les objets de pool d’instances d’exécution configurés à cet effet. Nous ne pouvons pas vous connecter ce pool d’instances d’exécution, car le pool d’instances d’exécution correspondant côté serveur est connecté à un autre client. diff --git a/src/System.Management.Automation/resources/fr/RunspaceStrings.fr.resx b/src/System.Management.Automation/resources/fr/RunspaceStrings.fr.resx index 05d20237e44..9166b2851d2 100644 --- a/src/System.Management.Automation/resources/fr/RunspaceStrings.fr.resx +++ b/src/System.Management.Automation/resources/fr/RunspaceStrings.fr.resx @@ -172,7 +172,7 @@ Les options de thread ne peuvent être modifiées que si l’état de cloisonnement est MTA (Multithreaded Apartment), si les options actuelles sont UseNewThread ou UseCurrentThread, et si la nouvelle valeur est ReuseThread. - {0} ne peut pas avoir la valeur false lorsque le mode de langage est {1} ou {2}. + {0} ne peut pas avoir la valeur false lorsque le mode langage est {1} ou {2}. Vous ne pouvez pas déconnecter un espace d’exécution local uniquement. @@ -184,7 +184,8 @@ La session est occupée. Dès que la session sera disponible, vous serez connecté. Pour annuler la commande Enter-PSSession, appuyez sur Ctrl+C. - Nous ne pouvons pas effectuer la commande. L’appel de script n’est pas pris en charge dans la configuration de cette session. Cela peut se produire si la configuration de session est en mode sans langage. + Impossible d’exécuter la commande. L’appel de script n’est pas pris en charge dans cette configuration de session. Cela peut se produire si la configuration de la session est en mode NoLanguage. + {StrContains="NoLanguage"} Vous ne pouvez pas utiliser les opérations Disconnect et Connect sur les instances d’exécution locales. diff --git a/src/System.Management.Automation/resources/fr/SecuritySupportStrings.fr.resx b/src/System.Management.Automation/resources/fr/SecuritySupportStrings.fr.resx index 80a0e992ba7..9a6eaa7c0d5 100644 --- a/src/System.Management.Automation/resources/fr/SecuritySupportStrings.fr.resx +++ b/src/System.Management.Automation/resources/fr/SecuritySupportStrings.fr.resx @@ -164,5 +164,6 @@ Le fichier de script «{0}» n’est pas approuvé par la stratégie et s’exécutera en mode ConstrainedLanguage. + {StrContains="ConstrainedLanguage"} \ No newline at end of file diff --git a/src/System.Management.Automation/resources/fr/SessionStateStrings.fr.resx b/src/System.Management.Automation/resources/fr/SessionStateStrings.fr.resx index 062c6d22d2f..687bd7e8429 100644 --- a/src/System.Management.Automation/resources/fr/SessionStateStrings.fr.resx +++ b/src/System.Management.Automation/resources/fr/SessionStateStrings.fr.resx @@ -653,5 +653,6 @@ La modification de portée de la variable « {0} » en AllScope, ou la création d’une telle variable, sera empêchée en mode ConstrainedLanguage. + {StrContains="ConstrainedLanguage"} \ No newline at end of file diff --git a/src/System.Management.Automation/resources/it/AutomationExceptions.it.resx b/src/System.Management.Automation/resources/it/AutomationExceptions.it.resx index 01228164374..64c7c7a2f24 100644 --- a/src/System.Management.Automation/resources/it/AutomationExceptions.it.resx +++ b/src/System.Management.Automation/resources/it/AutomationExceptions.it.resx @@ -205,6 +205,7 @@ Dot sourcing del blocco di script compilato - La chiamata del blocco di script "{0}" nell'ambito corrente non sarà consentita in modalità Linguaggio con restrizioni. Modalità linguaggio script: {1}, modalità linguaggio contesto: {2}. + La chiamata del blocco di script '{0}' nell'ambito corrente non sarà consentita in modalità ConstrainedLanguage. Modalità linguaggio script: {1}, modalità linguaggio contesto: {2}. + {StrContains="ConstrainedLanguage"} \ No newline at end of file diff --git a/src/System.Management.Automation/resources/it/CatalogStrings.it.resx b/src/System.Management.Automation/resources/it/CatalogStrings.it.resx index a9c8164b7b9..86da016460b 100644 --- a/src/System.Management.Automation/resources/it/CatalogStrings.it.resx +++ b/src/System.Management.Automation/resources/it/CatalogStrings.it.resx @@ -151,7 +151,8 @@ La versione del catalogo non è valida. Sono supportate solo le versioni {0} e {1} del catalogo. - '{0}' is a version catalog that uses SHA0 or SHA1. Consider regenerating this catalog with '-CatalogVersion 2'. + '{0}' è un catalogo versione 1 che utilizza l'algoritmo hash SHA-1 debole. Provare a rigenerare il catalogo con '-CatalogVersion 2'. + {StrContains="SHA-1"}{StrContains="-CatalogVersion 2"} Impossibile aprire il file di definizione del catalogo. diff --git a/src/System.Management.Automation/resources/it/CommandBaseStrings.it.resx b/src/System.Management.Automation/resources/it/CommandBaseStrings.it.resx index cafc980a21e..befb0fff1f9 100644 --- a/src/System.Management.Automation/resources/it/CommandBaseStrings.it.resx +++ b/src/System.Management.Automation/resources/it/CommandBaseStrings.it.resx @@ -232,12 +232,14 @@ Reviewed by TArcher on 2010-07-20 Controllo Dot-Source per elaborazione blocco script - L'elaborazione Dot-Source per il blocco di script '{0}' non riuscirà in modalità linguaggio con restrizioni perché la relativa modalità linguaggio '{1}' non corrisponde alla modalità linguaggio corrente '{2}'. + Dot-Source'elaborazione del '{0}' del blocco di script non riuscirà in modalità ConstrainedLanguage perché la modalità linguaggio '{1}' non corrisponde alla modalità linguaggio corrente '{2}'. + {StrContains="ConstrainedLanguage"} Strumento di ricerca comandi Il comando '{0}' nel modulo '{1}' non è attendibile e non sarà accessibile in modalità ConstrainedLanguage. + {StrContains="ConstrainedLanguage"} \ No newline at end of file diff --git a/src/System.Management.Automation/resources/it/DiscoveryExceptions.it.resx b/src/System.Management.Automation/resources/it/DiscoveryExceptions.it.resx index d49de865de2..4d1dc325fd6 100644 --- a/src/System.Management.Automation/resources/it/DiscoveryExceptions.it.resx +++ b/src/System.Management.Automation/resources/it/DiscoveryExceptions.it.resx @@ -217,7 +217,7 @@ Per altre informazioni, eseguire 'Import-Module {1}'. Nessun comando corrispondente include un parametro denominato '{0}'. Controllare l'ortografia del nome del parametro, quindi riprovare. - Non è possibile eseguire il comando con dot-sourcing perché è stato definito in una modalità linguaggio diversa. Per richiamare questo comando senza importarne il contenuto, omettere l'operatore '.'. + Non è possibile eseguire il comando dot-source perché è stato definito in una modalità di linguaggio diversa. Per richiamare questo comando senza importarne il contenuto, omettere l'operatore '.'. I parametri ShowCommandInfo e Syntax non possono essere specificati insieme. diff --git a/src/System.Management.Automation/resources/it/ExtendedTypeSystem.it.resx b/src/System.Management.Automation/resources/it/ExtendedTypeSystem.it.resx index 2536a63b1cc..9c4210da890 100644 --- a/src/System.Management.Automation/resources/it/ExtendedTypeSystem.it.resx +++ b/src/System.Management.Automation/resources/it/ExtendedTypeSystem.it.resx @@ -377,7 +377,7 @@ PS> [System.Collections.Generic.Comparer``1]::get_Default() Non è possibile convertire il valore "{0}" in un array stringa. - Non è possibile convertire il valore nel tipo "{0}". In questa modalità linguaggio sono supportati solo i tipi di base. + Non è possibile convertire il valore nel tipo "{0}". In questa modalità di linguaggio sono supportati solo i tipi di base. Non è possibile eseguire la conversione nel tipo simile a ByRef "{0}". I tipi simili a ByRef non sono supportati in PowerShell. @@ -396,11 +396,13 @@ PS> [System.Collections.Generic.Comparer``1]::get_Default() La conversione del tipo da HashTable in '{0}' non sarà consentita in modalità ConstrainedLanguage. + {StrContains="ConstrainedLanguage"} Conversione della tabella hash del sistema di tipi estesi - La conversione del tipo da '{0}' a '{1}' non sarà consentita in modalità ConstrainedLanguage. + La conversione del tipo da '{0}' in '{1}' non sarà consentita in modalità ConstrainedLanguage. + {StrContains="ConstrainedLanguage"} \ No newline at end of file diff --git a/src/System.Management.Automation/resources/it/InternalCommandStrings.it.resx b/src/System.Management.Automation/resources/it/InternalCommandStrings.it.resx index c80da393ec7..4327e01a62a 100644 --- a/src/System.Management.Automation/resources/it/InternalCommandStrings.it.resx +++ b/src/System.Management.Automation/resources/it/InternalCommandStrings.it.resx @@ -145,13 +145,15 @@ Il nome di input "{0}" non può essere risolto in un metodo. - Non è possibile richiamare un metodo in modalità linguaggio con restrizioni. + Non è possibile richiamare un metodo in modalità RestrictedLanguage. + {StrContains="RestrictedLanguage"} I parametri -WhatIf e -Confirm non sono supportati per i blocchi di script. - L'operazione "{0}" non è consentita in modalità RestrictedLanguage. + L'operazione '{0}' non è consentita in modalità RestrictedLanguage. + {StrContains="RestrictedLanguage"} Per confrontare i due valori specificati, è necessario un operatore. Immettere un operatore valido nel comando, quindi riprovare a eseguire il comando. Ad esempio, Get-Process | Where-Object -Property Name -eq Idle @@ -188,6 +190,7 @@ ErrorAction, WarningAction, InformationAction, PipelineVariable Cmdlet ForEach-Object - La chiamata al metodo sul tipo "{0}" non sarà consentita quando viene eseguita in modalità Linguaggio con restrizioni. + La chiamata al metodo sul tipo "{0}" non sarà consentita quando viene eseguita in modalità ConstrainedLanguage. + {StrContains="ConstrainedLanguage"} \ No newline at end of file diff --git a/src/System.Management.Automation/resources/it/Metadata.it.resx b/src/System.Management.Automation/resources/it/Metadata.it.resx index 18fa09dd6a6..73717daa8d3 100644 --- a/src/System.Management.Automation/resources/it/Metadata.it.resx +++ b/src/System.Management.Automation/resources/it/Metadata.it.resx @@ -262,6 +262,7 @@ Errore di controllo dell'attributo ValidateTrustedData - L'argomento del parametro ''{0}'' non è attendibile e non riuscirà il controllo dell'attributo del parametro ValidateTrustedData in modalità linguaggio vincolato. + L'argomento parametro '{0}' non è attendibile e non supererà il controllo dell'attributo del parametro ValidateTrustedData in modalità ConstrainedLanguage. + {StrContains="ValidateTrustedData"}{StrContains="ConstrainedLanguage"} \ No newline at end of file diff --git a/src/System.Management.Automation/resources/it/Modules.it.resx b/src/System.Management.Automation/resources/it/Modules.it.resx index 29adda2ad13..ac39ed443ee 100644 --- a/src/System.Management.Automation/resources/it/Modules.it.resx +++ b/src/System.Management.Automation/resources/it/Modules.it.resx @@ -626,6 +626,7 @@ L'importazione di file *.ps1 come moduli non è consentita in modalità ConstrainedLanguage. + {StrContains="ConstrainedLanguage"} Si è verificato un errore durante il caricamento del modulo di script {0} perché ha una modalità di linguaggio diversa rispetto al manifesto del modulo. La modalità di linguaggio del manifesto è {1} e la modalità di linguaggio del modulo è {2}. Assicurarsi che tutti i file del modulo siano firmati o facciano comunque parte della configurazione dell'elenco di elementi consentiti dell'applicazione. @@ -634,10 +635,11 @@ Questo modulo usa l'operatore dot-source per esportare funzioni utilizzando caratteri jolly e questo non è consentito quando nel sistema è applicata la verifica delle applicazioni. - Non è possibile esportare membri del modulo da un modulo con una modalità linguaggio diversa da quella della sessione in esecuzione. + Non è possibile esportare membri da un modulo con una modalità di linguaggio diversa da quella della sessione in esecuzione. Non è possibile creare un nuovo modulo mentre la sessione è in modalità ConstrainedLanguage. + {StrContains="ConstrainedLanguage"} Non è possibile trovare il modulo predefinito '{0}' compatibile con l'edizione 'Core'. Assicurarsi che i moduli predefiniti di PowerShell siano disponibili. In genere sono inclusi nel pacchetto PowerShell nel percorso del modulo $PSHOME e sono necessari per il corretto funzionamento di PowerShell. @@ -646,42 +648,49 @@ Cmdlet Export-ModuleMember - L'esportazione dei membri del modulo avrà esito negativo in modalità linguaggio vincolato perché il modulo '{0}', ha una modalità di linguaggio '{1}' diversa rispetto a quella della sessione corrente '{2}'. + L'esportazione dei membri del modulo avrà esito negativo in modalità ConstrainedLanguage perché il modulo '{0}', ha una modalità di linguaggio '{1}' diversa rispetto a quella della sessione corrente '{2}'. + {StrContains="ConstrainedLanguage"} Esportazione implicita di funzioni del modulo - L'esportazione implicita delle funzioni per il modulo '{0}' verrà negata, perché è attendibile (viene eseguito in modalità linguaggio completo), ma la sessione non è attendibile (viene eseguita in modalità linguaggio vincolato). È consigliabile esportare sempre le funzioni del modulo singolarmente usando il nome completo. + L'esportazione implicita delle funzioni per il modulo '{0}' verrà negata, perché è attendibile (viene eseguito in modalità FullLanguage), ma la sessione non è attendibile (viene eseguita in modalità ConstrainedLanguage). È consigliabile esportare sempre le funzioni del modulo singolarmente usando il nome completo. + {StrContains="FullLanguage"}{StrContains="ConstrainedLanguage"} Importazione del file di script come modulo L'importazione del file di script '{0}' come modulo non sarà consentita in modalità ConstrainedLanguage. + {StrContains="ConstrainedLanguage"} Il modulo contiene l'operatore dot-source - L'importazione del modulo '{0}' avrà esito negativo in modalità linguaggio vincolato perché esporta le funzioni usando caratteri jolly e usando anche l'operatore dot-source. + L'importazione del modulo '{0}' avrà esito negativo in modalità ConstrainedLanguage perché esporta le funzioni usando caratteri jolly e usando anche l'operatore dot-source. + {StrContains="ConstrainedLanguage"} - "Funzioni di esportazione del modulo + Funzioni di esportazione del modulo - Il modulo '{0}' esporta funzioni usando caratteri jolly nel nome. I nomi di funzione dei moduli annidati verranno rimossi quando si esegue il codice in modalità linguaggio vincolato. + Il modulo '{0}' esporta le funzioni usando caratteri jolly del nome. Tutti i nomi di funzione del modulo annidati verranno rimossi durante l'esecuzione in modalità ConstrainedLanguage. + {StrContains="ConstrainedLanguage"} - "Cmdlet New-Module + Cmdlet New-Module - A un nuovo modulo di una sessione di linguaggio vincolato non attendibile verrà impedito di fornire il blocco di script FullLanguage. + Un nuovo modulo di una sessione di ConstrainedLanguage non attendibile non potrà fornire il blocco di script FullLanguage. + {StrContains="ConstrainedLanguage"}{StrContains="FullLanguage"} - "Modalità di linguaggio del modulo non corrispondenti + Modalità di linguaggio del modulo non corrispondenti - È in corso il caricamento di un modulo dipendente con una modalità di linguaggio diversa da quella del modulo padre. Questa operazione non sarà consentita in modalità linguaggio vincolato. + È in corso il caricamento di un modulo dipendente con una modalità di linguaggio diversa da quella del modulo padre. Questa operazione non sarà consentita in modalità ConstrainedLanguage. + {StrContains="ConstrainedLanguage"} \ No newline at end of file diff --git a/src/System.Management.Automation/resources/it/ParameterBinderStrings.it.resx b/src/System.Management.Automation/resources/it/ParameterBinderStrings.it.resx index 57e81453dc9..916c4d87820 100644 --- a/src/System.Management.Automation/resources/it/ParameterBinderStrings.it.resx +++ b/src/System.Management.Automation/resources/it/ParameterBinderStrings.it.resx @@ -250,12 +250,14 @@ Chiamata di metodo o proprietà non consentita - La chiamata del metodo o della proprietà ''{0}'' per il tipo ''{1}'' non sarà consentita in modalità Linguaggio vincolato per gli script non attendibili. + La chiamata del metodo o della proprietà '{0}' sul tipo '{1}' non sarà consentita in modalità ConstrainedLanguage per gli script non attendibili. + {StrContains="ConstrainedLanguage"} Creazione del tipo non consentita - La creazione del tipo ''{0}'' non sarà consentita durante l'associazione dei parametri in modalità Linguaggio vincolato per gli script non attendibili. + La creazione di Type '{0}' non sarà consentita durante l'associazione di parametri in modalità ConstrainedLanguage per gli script non attendibili. + {StrContains="ConstrainedLanguage"} \ No newline at end of file diff --git a/src/System.Management.Automation/resources/it/ParserStrings.it.resx b/src/System.Management.Automation/resources/it/ParserStrings.it.resx index d61ca5278fa..e5c1c2d047e 100644 --- a/src/System.Management.Automation/resources/it/ParserStrings.it.resx +++ b/src/System.Management.Automation/resources/it/ParserStrings.it.resx @@ -402,7 +402,8 @@ Il formato corretto è: foreach ($a in $b) {...} L'elaborazione è stata interrotta perché lo script è troppo complesso. - La sintassi non è supportata da questo spazio di esecuzione. Questo problema può verificarsi se lo spazio di esecuzione è in modalità senza linguaggio. + La sintassi non è supportata da questo spazio di esecuzione. Questo problema può verificarsi se lo spazio di esecuzione è in modalità NoLanguage. + {StrContains="NoLanguage"} La combinazione di opzioni con l'operatore -split non è valida. @@ -580,85 +581,112 @@ Il formato corretto è: foreach ($a in $b) {...} Usare `{ invece di { nei nomi di variabile. - Nella sezione di dati manca il blocco di istruzioni. + Nella sezione di Data manca il blocco di istruzioni. + {StrContains="Data"} - Il parametro "{0}" della sezione di dati non è valido. Il parametro valido della sezione di dati è SupportedCommand. + Il parametro "{0}" della sezione di Data non è valido. Il parametro valido della sezione di Data è SupportedCommand. + {StrContains="Data"}{StrContains="SupportedCommand"} - I riferimenti alle matrici non sono consentiti in modalità linguaggio con restrizioni o in una sezione di dati. + I riferimenti a matrici non sono consentiti in modalità RestrictedLanguage o in una sezione Data. + {StrContains="RestrictedLanguage"}{StrContains="Data"} - Le istruzioni di assegnazione non sono consentite in modalità linguaggio con restrizioni o in una sezione di dati. + Le istruzioni di assegnazione non sono consentite in modalità RestrictedLanguage o in una sezione Data. + {StrContains="RestrictedLanguage"}{StrContains="Data"} - Il reindirizzamento non è consentito in modalità linguaggio con restrizioni o in una sezione di dati. + Il reindirizzamento non è consentito in modalità RestrictedLanguage o in una sezione Data. + {StrContains="RestrictedLanguage"}{StrContains="Data"} - Le istruzioni Do e While non sono consentite in modalità linguaggio con restrizioni o in una sezione di dati. + Le istruzioni Do e While non sono consentite in modalità RestrictedLanguage o in una sezione Data. + {StrContains="Do"}{StrContains="While"}{StrContains="RestrictedLanguage"}{StrContains="Data"} - Le stringhe espandibili non sono consentite in modalità linguaggio con restrizioni o in una sezione di dati. + Le stringhe espandibili non sono consentite in modalità RestrictedLanguage o in una sezione Data. + {StrContains="RestrictedLanguage"}{StrContains="Data"} - L'operatore ''{0}'' non è consentito in modalità linguaggio con restrizioni o in una sezione di dati. + L'operatore ''{0}'' non è consentito in modalità RestrictedLanguage o in una sezione Data. + {StrContains="RestrictedLanguage"}{StrContains="Data"} - L'istruzione Trap non è consentita in modalità linguaggio con restrizioni o in una sezione di dati. + L'istruzione Trap non è consentita in modalità RestrictedLanguage o in una sezione Data. + {StrContains="Trap"}{StrContains="RestrictedLanguage"}{StrContains="Data"} - L'istruzione Try non è consentita in modalità linguaggio con restrizioni o in una sezione di dati. + L'istruzione Try non è consentita in modalità RestrictedLanguage o in una sezione Data. + {StrContains="Try"}{StrContains="RestrictedLanguage"}{StrContains="Data"} - Le istruzioni di controllo del flusso, ad esempio Break, Continue, Return, Exit e Throw, non sono consentite in modalità linguaggio con restrizioni o in una sezione di dati. + Le istruzioni di controllo del flusso, ad esempio Break, Continue, Return, Exit e Throw, non sono consentite in modalità RestrictedLanguage o in una sezione Data. + {StrContains="Break"}{StrContains="Continue"}{StrContains="Return"}{StrContains="Exit"}{StrContains="Throw"}{StrContains="RestrictedLanguage"}{StrContains="Data"} - Le istruzioni Foreach non sono consentite in modalità linguaggio con restrizioni o in una sezione di dati. + Le istruzioni Foreach non sono consentite in modalità RestrictedLanguage o in una sezione Data. + {StrContains="Foreach"}{StrContains="RestrictedLanguage"}{StrContains="Data"} - Le istruzioni For e While non sono consentite in modalità linguaggio con restrizioni o in una sezione di dati. + Le istruzioni For e While non sono consentite in modalità RestrictedLanguage o in una sezione Data. + {StrContains="For"}{StrContains="While"}{StrContains="RestrictedLanguage"}{StrContains="Data"} - Le dichiarazioni di funzione non sono consentite in modalità linguaggio con restrizioni o in una sezione di dati. + Le dichiarazioni Function non sono consentite in modalità RestrictedLanguage o in una sezione Data. + {StrContains="Function"}{StrContains="RestrictedLanguage"}{StrContains="Data"} - Le chiamate a un metodo non sono consentite in modalità linguaggio con restrizioni o in una sezione di dati. + Le chiamate a metodi non sono consentite in modalità RestrictedLanguage o in una sezione Data. + {StrContains="RestrictedLanguage"}{StrContains="Data"} - Le dichiarazioni di parametro non sono consentite in modalità linguaggio con restrizioni o in una sezione di dati. + Le dichiarazioni di parametro non sono consentite in modalità RestrictedLanguage o in una sezione Data. + {StrContains="RestrictedLanguage"}{StrContains="Data"} - I riferimenti alle proprietà non sono consentiti in modalità linguaggio con restrizioni o in una sezione di dati. + I riferimenti alle proprietà non sono consentiti in modalità RestrictedLanguage o in una sezione Data. + {StrContains="RestrictedLanguage"}{StrContains="Data"} - I valori letterali del blocco di script non sono consentite in modalità linguaggio con restrizioni o in una sezione di dati. + I valori letterali dei blocchi di script non sono consentiti in modalità RestrictedLanguage o in una sezione Data. + {StrContains="RestrictedLanguage"}{StrContains="Data"} - L'istruzione switch non è consentita in modalità linguaggio con restrizioni o in una sezione di dati. + L'istruzione Switch non è consentita in modalità RestrictedLanguage o in una sezione Data. + {StrContains="Switch"}{StrContains="RestrictedLanguage"}{StrContains="Data"} - Variabile a cui non è possibile fare riferimento in modalità linguaggio con restrizioni o a una sezione di dati. Le variabili a cui è possibile fare riferimento includono le seguenti: {0}. + Variabile a cui non è possibile fare riferimento in modalità RestrictedLanguage o a una sezione Data. Le variabili a cui è possibile fare riferimento includono le seguenti: {0}. + {StrContains="RestrictedLanguage"}{StrContains="Data"} - Il comando ''{0}'' non è consentito in modalità linguaggio con restrizioni o in una sezione di dati. + Il comando ''{0}'' non è consentito in modalità RestrictedLanguage o in una sezione Data. + {StrContains="RestrictedLanguage"}{StrContains="Data"} - L'istruzione dati non è consentita in modalità linguaggio con restrizioni o in un'altra sezione di dati. + L'istruzione Data non è consentita in modalità RestrictedLanguage o in un'altra sezione Data. + {StrContains="RestrictedLanguage"}{StrContains="Data"} - Nel parametro SupportedCommand della sezione di dati manca un valore. Specificare un nome di cmdlet o funzione per il parametro. + Nel parametro SupportedCommand della sezione di Data manca un valore. Specificare un nome di cmdlet o funzione per il parametro. + {StrContains="SupportedCommand"}{StrContains="Data"} - Un blocco di istruzioni Begin, un blocco di istruzioni Process o un'istruzione param non sono consentiti in una sezione di dati. + Un blocco di istruzioni Begin, un blocco di istruzioni Process o un'istruzione Param non sono consentiti in una sezione Data. + {StrContains="Begin"}{StrContains="Process"}{StrContains="Param"}{StrContains="Data"} - I risultati della moltiplicazione di stringhe con più di "{0}" caratteri non sono consentiti in modalità linguaggio con restrizioni o in una sezione di dati. + I risultati di moltiplicazione di stringhe con più di "{0}" caratteri non sono consentiti in modalità RestrictedLanguage o in una sezione Data. + {StrContains="RestrictedLanguage"}{StrContains="Data"} - La moltiplicazione delle matrici che genera più di {0} elementi non è consentita in modalità linguaggio con restrizioni o in una sezione di dati. + La moltiplicazione delle matrici che genera più di {0} elementi non è consentita in modalità RestrictedLanguage o in una sezione Data. + {StrContains="RestrictedLanguage"}{StrContains="Data"} - L'origine punti non è consentita in modalità linguaggio con restrizioni o in una sezione di dati. + L'origine punti non è consentita in modalità RestrictedLanguage o in una sezione Data. + {StrContains="RestrictedLanguage"}{StrContains="Data"} L'argomento dell'attributo deve essere una costante o un blocco di script. @@ -721,10 +749,12 @@ Il formato corretto è: foreach ($a in $b) {...} Chiave Null non consentita in un valore letterale hash. - Gli attributi non sono consentiti in modalità linguaggio con restrizioni o in una sezione di dati. + Gli attributi non sono consentiti in modalità RestrictedLanguage o in una sezione Data. + {StrContains="RestrictedLanguage"}{StrContains="Data"} - Il tipo {0} non è consentito in modalità linguaggio con restrizioni o in una sezione di dati. + Tipo {0} non consentito in modalità RestrictedLanguage o in una sezione Data. + {StrContains="RestrictedLanguage"}{StrContains="Data"} "{0}" è una proprietà di sola lettura. @@ -784,7 +814,8 @@ Il formato corretto è: foreach ($a in $b) {...} Corpo dell'istruzione mancante dopo la parola chiave ''{0}''. - I blocchi paralleli e di sequenza non sono consentiti in modalità linguaggio con restrizioni o in una sezione di dati. + I blocchi Parallel e Sequence non sono consentiti in modalità RestrictedLanguage o in una sezione Data. + {StrContains="Parallel"}{StrContains="Sequence"}{StrContains="RestrictedLanguage"}{StrContains="Data"} Parola chiave imprevista ''{0}''. @@ -796,7 +827,8 @@ Il formato corretto è: foreach ($a in $b) {...} Impossibile richiamare il metodo. - Non è possibile convertire una tabella hash nel seguente tipo di oggetto: {0}. La conversione da tabella hash a oggetto non è supportata in modalità linguaggio con restrizioni o in una sezione di dati. + Impossibile convertire una tabella hash in un oggetto del tipo seguente: {0}. La conversione da tabella hash a oggetto non è supportata in modalità RestrictedLanguage o in una sezione Data. + {StrContains="RestrictedLanguage"}{StrContains="Data"} L'argomento deve essere costante. @@ -842,7 +874,8 @@ Il formato corretto è: foreach ($a in $b) {...} Non è possibile trovare il file di schema {0}. Verificare che tutti i moduli specificati in un'istruzione di configurazione contengano un file schema.mof, quindi riprovare a eseguire lo script. - Non è possibile definire la sezione dati. La definizione di comandi aggiuntivi supportati non è supportata in questa modalità del linguaggio. + Impossibile definire Data sezione. La definizione di comandi aggiuntivi supportati non è supportata in questa modalità linguaggio. + {StrContains="Data"} ''{'' mancante nell'istruzione di configurazione. @@ -935,7 +968,8 @@ ModuleVersion: versione del modulo da importare. Se usato, ModuleName deve rappr Non è possibile caricare la risorsa ''{0}'': risorsa non trovata. - La parola chiave Configuration non è consentita in modalità constrainedLanguage. + La parola chiave Configurazione non è consentita in modalità ConstrainedLanguage. + {StrContains="ConstrainedLanguage"} Il nome di configurazione ''{0}'' non è valido. I nomi standard possono contenere solo lettere (a-z, A-Z), numeri (0-9), punti (.), trattini (-) e caratteri di sottolineatura (_). Il nome non può essere Null o vuoto e deve iniziare con una lettera. @@ -1293,7 +1327,7 @@ ModuleVersion: versione del modulo da importare. Se usato, ModuleName deve rappr La modalità di aggiornamento di PartialConfiguration ''{0}'' è impostata su Disabled, che non è una modalità valida per le configurazioni parziali. Usare la modalità di aggiornamento Pull o Push. - Non è possibile creare il tipo. In questa modalità linguaggio sono supportati solo i tipi di base. + Non è possibile creare il tipo. In questa modalità di linguaggio sono supportati solo i tipi di base. Import-DscResource non può essere specificato all'interno del contesto Node @@ -1320,7 +1354,8 @@ ModuleVersion: versione del modulo da importare. Se usato, ModuleName deve rappr Non è possibile usare gli operatori ''&'' o ''.'' per richiamare un comando con ambito modulo oltre i limiti del linguaggio. - La parola chiave Class non è consentita in modalità constrainedLanguage. + La parola chiave Class non è consentita in modalità ConstrainedLanguage. + {StrContains="Class"}{StrContains="ConstrainedLanguage"} '':'' mancante nell'espressione ternaria. @@ -1338,37 +1373,43 @@ ModuleVersion: versione del modulo da importare. Se usato, ModuleName deve rappr Parola chiave di configurazione del parser - La parola chiave Configuration non sarà consentita in modalità linguaggio vincolato per script non attendibili. + La parola chiave Configuration non sarà consentita in modalità ConstrainedLanguage per script non attendibili. + {StrContains="Configuration"}{StrContains="ConstrainedLanguage"} Parola chiave della classe Parser - La parola chiave Class non sarà consentita in modalità linguaggio vincolato per script non attendibili. + La parola chiave Class non sarà consentita in modalità ConstrainedLanguage per script non attendibili. + {StrContains="Class"}{StrContains="ConstrainedLanguage"} - Sezione dati del parser SupportedCommand + Sezione di dati del parser SupportedCommand - La sezione di dati che include il parametro SupportedCommand non è consentita in modalità linguaggio vincolato per script non attendibili. + La sezione Data che include il parametro SupportedCommand non sarà consentita in modalità ConstrainedLanguage per script non attendibili. + {StrContains="Data"}{StrContains="SupportedCommand"}{StrContains="ConstrainedLanguage"} Operatore di chiamata ambito modulo - L'operatore di chiamata dell'ambito del modulo verrà negato in modalità linguaggio vincolato. + L'operatore di chiamata all'ambito del modulo verrà negato in modalità ConstrainedLanguage. + {StrContains="ConstrainedLanguage"} Chiamata al metodo della parola chiave ForEach - La parola chiave ForEach non riuscirà a eseguire la chiamata al metodo dell'elemento di iterazione ''{0}'' quando viene eseguita in modalità linguaggio vincolato. + La parola chiave ForEach non riuscirà '{0}' chiamare il metodo dell'elemento di iterazione se eseguita in modalità ConstrainedLanguage. + {StrContains="ForEach"}{StrContains="ConstrainedLanguage"} La valutazione dell'espressione potrebbe non riuscire - La creazione di una pipeline di cui è possibile eseguire passaggi da un blocco di script può richiedere la valutazione di alcune espressioni all'interno del blocco di script. La valutazione dell'espressione avrà esito negativo in modo invisibile all'utente e restituirà ''null'' in modalità linguaggio vincolato, a meno che l'espressione non rappresenti un valore costante. + La creazione di una pipeline di cui è possibile eseguire passaggi da un blocco di script può richiedere la valutazione di alcune espressioni all'interno del blocco di script. La valutazione dell'espressione avrà esito negativo in modo invisibile all'utente e restituirà ''null'' in modalità ConstrainedLanguage, a meno che l'espressione non rappresenti un valore costante. + {StrContains="ConstrainedLanguage"} La parola chiave Configuration non è supportata nei processori ARM64. diff --git a/src/System.Management.Automation/resources/it/RemotingErrorIdStrings.it.resx b/src/System.Management.Automation/resources/it/RemotingErrorIdStrings.it.resx index d09262114f3..dcb8c620964 100644 --- a/src/System.Management.Automation/resources/it/RemotingErrorIdStrings.it.resx +++ b/src/System.Management.Automation/resources/it/RemotingErrorIdStrings.it.resx @@ -660,10 +660,10 @@ La configurazione della sessione "{0}" non è una shell basata su PowerShell. - La configurazione della sessione "{0}" è una shell basata su PowerShell. Usare PowerShell 6+ per modificarla. + La configurazione della sessione "{0}" è una shell basata su PowerShell. Usa PowerShell 6+ per modificarla. - La configurazione della sessione "{0}" è una shell basata su Windows PowerShell. Usare Windows PowerShell per modificarla. + La configurazione della sessione "{0}" è una shell basata su Windows PowerShell. Usa Windows PowerShell per modificarla. Nessuna configurazione di sessione corrisponde ai criteri "{0}". @@ -735,9 +735,9 @@ Continuare? La disabilitazione delle configurazioni di sessione non annulla tutte le modifiche apportate dal cmdlet Enable-PSRemoting o Enable-PSSessionConfiguration. Potrebbe essere necessario annullare manualmente le modifiche seguendo questi passaggi: 1. Arrestare e disabilitare il servizio WinRM. - 2. Eliminare il listener che accetta richieste in qualsiasi indirizzo IP. + 2. Eliminare il listener che accetta richieste su qualsiasi indirizzo IP. 3. Disabilitare le eccezioni del firewall per le comunicazioni di WS-Management. - 4. Ripristinare il valore di LocalAccountTokenFilterPolicy su 0, che limita l'accesso remoto ai membri del gruppo Administrators nel computer. + 4. Ripristinare il valore di LocalAccountTokenFilterPolicy su 0, limitando l'accesso remoto ai membri del gruppo Administrators nel computer. Accesso negato. Per eseguire questo cmdlet, avviare PowerShell con l'opzione "Esegui come amministratore". @@ -939,8 +939,8 @@ Si noti che ''Start-Job'' non è supportato per progettazione negli scenari in c Le modifiche apportate da {0} avranno effetto solo dopo il riavvio del servizio WinRM. - {0} potrebbe essere necessario riavviare il servizio WinRM se di recente è stata annullata la registrazione di una configurazione con questo nome, perché alcune strutture di dati di sistema potrebbero essere ancora memorizzate nella cache. In tal caso, potrebbe essere necessario riavviare WinRM. -Tutte le sessioni di WinRM connesse alle configurazioni di sessione di PowerShell, ad esempio Microsoft.PowerShell, e alle configurazioni di sessione create con il cmdlet Register-PSSessionConfiguration, vengono disconnesse. + {0} potrebbe dover riavviare il servizio WinRM per eliminare dalla cache le strutture di dati rimaste dopo l'annullamento della registrazione di una configurazione con questo nome. In tal caso, potrebbe essere necessario riavviare WinRM. +Tutte le sessioni di WinRM connesse alle configurazioni di sessione di PowerShell, ad esempio Microsoft.PowerShell, e alle configurazioni di sessione create con il cmdlet Register-PSSessionConfiguration vengono disconnesse. Si è in esecuzione in una sessione remota ed è stata selezionata l'opzione Force, il che significa che il servizio WinRM potrebbe riavviarsi. Se il servizio WinRM viene riavviato, questa sessione remota verrà terminata e sarà necessario crearne una nuova per continuare @@ -1022,6 +1022,7 @@ Tutte le sessioni di WinRM connesse alle configurazioni di sessione di PowerShel Modalità di linguaggio da applicare quando viene applicata a una sessione. Può essere ''NoLanguage'' (scelta consigliata), ''RestrictedLanguage'', ''ConstrainedLanguage'' o ''FullLanguage'' + {StrContains="NoLanguage"}{StrContains="RestrictedLanguage"}{StrContains="ConstrainedLanguage"}{StrContains="FullLanguage"} Moduli da importare quando vengono applicati a una sessione @@ -1069,7 +1070,7 @@ Tutte le sessioni di WinRM connesse alle configurazioni di sessione di PowerShel Comandi esterni (script e applicazioni) da rendere visibili quando applicati a una sessione - Il percorso del file di configurazione PSSession ''{0}'' non è valido. L'argomento del percorso deve risolvere un singolo file nel file system con estensione ''.pssc''. Correggere la specifica del percorso e riprovare. + Il percorso del file di configurazione PSSession '{0}' non è valido. L'argomento del percorso deve risolvere un singolo file nel file system con estensione ''.pssc''. Correggi la specifica del percorso e riprova. Il percorso del file Role Capability ''{0}'' non è valido. L'argomento del percorso deve risolvere un singolo file nel file system con estensione ''.psrc''. Correggere la specifica del percorso e riprovare. @@ -1078,7 +1079,7 @@ Tutte le sessioni di WinRM connesse alle configurazioni di sessione di PowerShel La voce ''Roles'' deve essere una tabella hash, ma era una {0}. - Non é possibile convertire il valore della voce di ruolo ''{0}'' in una tabella hash. La voce ''Roles'' deve essere una tabella hash con i nomi dei gruppi come chiavi, dove il valore associato a ogni chiave è un'altra tabella hash delle proprietà di configurazione della sessione per tale ruolo. + Non è possibile convertire il valore della voce di ruolo '{0}' in una tabella hash. La voce 'Roles' deve essere una tabella hash con i nomi dei gruppi come chiavi, dove il valore associato a ogni chiave è un'altra tabella hash delle proprietà di configurazione della sessione per tale ruolo. Non è possibile trovare la funzionalità di ruolo ''{0}''. La funzionalità di ruolo deve essere un file denominato ''{1}'' all'interno di una cartella 'RoleCapabilities'' in un modulo nel percorso dei moduli corrente. @@ -1163,7 +1164,7 @@ Tutte le sessioni di WinRM connesse alle configurazioni di sessione di PowerShel La chiave ''{0}'' nel membro ''{1}'' deve essere un blocco di script. Modificare la chiave in modo che usi il tipo corretto nel file {2}. - Il file di configurazione della sessione {0} non è valido. Specificare un file di configurazione della sessione valido e riprovare il comando. + Il file di configurazione della sessione {0} non è valido. Specifica un file di configurazione della sessione valido e ripeti il comando. Connessione di rete interrotta @@ -1259,7 +1260,7 @@ Tutte le sessioni di WinRM connesse alle configurazioni di sessione di PowerShel Il parametro AutoRemoveJob non può essere usato senza il parametro Wait - Il servizio WS-Management non può elaborare la richiesta. Non é possibile trovare la configurazione della sessione {0} nell'unità WSMan: del computer {1}. Per ulteriori informazioni, vedere l'argomento della Guida about_Remote_Troubleshooting. + Il servizio WS-Management non può elaborare la richiesta. Non è possibile trovare la configurazione della sessione {0} nell'unità WSMan: del computer {1}. Per ulteriori informazioni, vedi l'argomento della Guida about_Remote_Troubleshooting. Non è possibile creare un processo dalla specifica {0} perché lo spazio di esecuzione specificato non è locale. Riprovare usando uno spazio di esecuzione locale oppure specificare un argomento RunspaceMode. @@ -1327,10 +1328,10 @@ Tutte le sessioni di WinRM connesse alle configurazioni di sessione di PowerShel Il processo è stato sospeso correttamente aggiungendo il parametro Force. - Il file di configurazione della sessione {0} non è valido. Specificare un file di configurazione della sessione valido e riprovare il comando. Errore durante l'analisi del file di configurazione: {1}. + Il file di configurazione della sessione {0} non è valido. Specifica un file di configurazione della sessione valido e ripeti il comando. Errore durante l'analisi del file di configurazione: {1}. - Register-PSSessionConfiguration: la chiave ''{0}'' nel file di configurazione della sessione {1}. contiene un valore non valido. Correggere il file e riprovare a eseguire il comando. + Register-PSSessionConfiguration: la chiave '{0}' nel file di configurazione della sessione {1}. contiene un valore non valido. Correggi il file e riprova a eseguire il comando. Le sessioni disconnesse sono supportate solo quando il computer remoto esegue PowerShell 3.0 o una versione successiva di PowerShell. @@ -1342,10 +1343,10 @@ Tutte le sessioni di WinRM connesse alle configurazioni di sessione di PowerShel PSSession {0} è stata creata usando il parametro EnableNetworkAccess e può essere riconnessa solo dal computer locale. - Non è possibile avviare il processo. La modalità linguaggio per questa sessione non è compatibile con la modalità linguaggio a livello di sistema. + Non è possibile avviare il processo. La modalità di linguaggio per questa sessione non è compatibile con la modalità di linguaggio a livello di sistema. - Non è possibile creare lo spazio di esecuzione. La modalità linguaggio per questa confiurazione non è compatibile con la modalità linguaggio a livello di sistema. + Non è possibile creare lo spazio di esecuzione. La modalità di linguaggio per questa configurazione non è compatibile con la modalità di linguaggio a livello di sistema. Non è possibile uscire da una pipeline annidata perché la pipeline non è nello stato annidato. @@ -1540,7 +1541,7 @@ Tutte le sessioni di WinRM connesse alle configurazioni di sessione di PowerShel Non è possibile avviare il server named pipe in modalità server. - Non è possibile concedere l'accesso remoto a ''{0}'': ''{1}''. La configurazione della sessione è stata registrata, ma questo gruppo non ha accesso. Per risolvere l'errore, specificare un nome di gruppo valido e registrare di nuovo la configurazione della sessione. + Non è possibile concedere l'accesso remoto a '{0}': '{1}'. La configurazione della sessione è stata registrata, ma questo gruppo non ha accesso. Per risolvere l'errore, specifica un nome di gruppo valido e registra di nuovo la configurazione della sessione. Non è possibile ottenere le funzionalità della sessione per la configurazione di sessione''{0}'': questa configurazione non è stata registrata con un file di configurazione della sessione (.pssc), ad esempio uno creato dal cmdlet New-PSSessionConfigurationFile. @@ -1712,7 +1713,7 @@ Il processo client SSH è terminato prima che fosse possibile stabilire la conne La tabella hash di configurazione della sessione contiene un tipo di chiave non valido. Le chiavi devono essere di tipo stringa. - Il file di configurazione della sessione contiene un'opzione di configurazione non supportata: {0}. Si tratta di un'opzione di configurazione dell'endpoint di comunicazione remota che non si applica allo stato della sessione di PowerShell. + Il file di configurazione della sessione contiene un'opzione non supportata: {0}. Si tratta di un'opzione di configurazione dell'endpoint di comunicazione remota che non si applica allo stato della sessione di PowerShell. Il file di configurazione della sessione contiene un'opzione di configurazione sconosciuta: {0}. @@ -1721,7 +1722,8 @@ Il processo client SSH è terminato prima che fosse possibile stabilire la conne La valutazione dell'espressione potrebbe non riuscire - La creazione di un oggetto PowerShell da un blocco di script può richiedere la valutazione di alcune espressioni all'interno del blocco di script. La valutazione dell'espressione avrà esito negativo in modo invisibile all'utente e restituirà ''null'' in modalità linguaggio vincolato, a meno che l'espressione non rappresenti un valore costante. + La creazione di un oggetto PowerShell da un blocco di script può richiedere la valutazione di alcune espressioni all'interno del blocco di script. La valutazione dell'espressione avrà esito negativo in modo invisibile all'utente e restituirà ''null'' in modalità ConstrainedLanguage, a meno che l'espressione non rappresenti un valore costante. + {StrContains="ConstrainedLanguage"} Non è possibile ottenere lo stato della VM Hyper-V. Il valore era di tipo {0} ma era previsto Microsoft.HyperV.PowerShell.VMState o System.String. diff --git a/src/System.Management.Automation/resources/it/RunspaceStrings.it.resx b/src/System.Management.Automation/resources/it/RunspaceStrings.it.resx index 03233de5fc6..3abb9df4555 100644 --- a/src/System.Management.Automation/resources/it/RunspaceStrings.it.resx +++ b/src/System.Management.Automation/resources/it/RunspaceStrings.it.resx @@ -172,7 +172,7 @@ Le opzioni del thread possono essere modificate solo se lo stato dell'apartment è multithreading apartment (MTA), le opzioni correnti sono UseNewThread o UseCurrentThread e il nuovo valore è ReuseThread. - {0} non può essere false quando la modalità lingua è {1} o {2}. + {0} non può essere false quando la modalità di linguaggio è {1} o {2}. Non è possibile disconnettere uno spazio di esecuzione solo locale. @@ -184,7 +184,8 @@ La sessione è occupata. Si verrà connessi alla sessione non appena sarà disponibile. Per annullare il comando Enter-PSSession, premere CTRL+C. - Impossibile completare il comando. La chiamata di script non è supportata in questa configurazione di sessione. Questo problema può verificarsi se la configurazione della sessione è in modalità senza linguaggio. + Impossibile completare il comando. La chiamata dello script non è supportata in questa configurazione di sessione. Questo problema può verificarsi se la configurazione della sessione è in modalità NoLanguage. + {StrContains="NoLanguage"} Non puoi usare le operazioni Disconnect e Connect negli spazi di esecuzione locali. diff --git a/src/System.Management.Automation/resources/it/SecuritySupportStrings.it.resx b/src/System.Management.Automation/resources/it/SecuritySupportStrings.it.resx index b0b21af312c..12a5b353731 100644 --- a/src/System.Management.Automation/resources/it/SecuritySupportStrings.it.resx +++ b/src/System.Management.Automation/resources/it/SecuritySupportStrings.it.resx @@ -164,5 +164,6 @@ Il file di script '{0}' non è considerato attendibile dai criteri e verrà eseguito in modalità ConstrainedLanguage. + {StrContains="ConstrainedLanguage"} \ No newline at end of file diff --git a/src/System.Management.Automation/resources/it/SessionStateStrings.it.resx b/src/System.Management.Automation/resources/it/SessionStateStrings.it.resx index e5416edef56..0e5be1b4bc8 100644 --- a/src/System.Management.Automation/resources/it/SessionStateStrings.it.resx +++ b/src/System.Management.Automation/resources/it/SessionStateStrings.it.resx @@ -653,5 +653,6 @@ La modifica o la creazione dell'ambito della variabile '{0}' in AllScope non sarà consentita in modalità ConstrainedLanguage. + {StrContains="ConstrainedLanguage"} \ No newline at end of file diff --git a/src/System.Management.Automation/resources/ja/AutomationExceptions.ja.resx b/src/System.Management.Automation/resources/ja/AutomationExceptions.ja.resx index cfa43602af4..f8d85fb0f6a 100644 --- a/src/System.Management.Automation/resources/ja/AutomationExceptions.ja.resx +++ b/src/System.Management.Automation/resources/ja/AutomationExceptions.ja.resx @@ -205,6 +205,7 @@ コンパイル済みスクリプト ブロックのドット ソース - 現在のスコープへのスクリプト ブロック '{0}' の呼び出しは、制限付き言語モードでは許可されません。スクリプト言語モード: {1}、コンテキスト言語モード: {2}。 + 現在のスコープへのスクリプト ブロック '{0}' の呼び出しは、ConstrainedLanguage モードでは許可されません。スクリプト言語モード: {1}、コンテキスト言語モード: {2}。 + {StrContains="ConstrainedLanguage"} \ No newline at end of file diff --git a/src/System.Management.Automation/resources/ja/CatalogStrings.ja.resx b/src/System.Management.Automation/resources/ja/CatalogStrings.ja.resx index df578d63424..804d96f2c23 100644 --- a/src/System.Management.Automation/resources/ja/CatalogStrings.ja.resx +++ b/src/System.Management.Automation/resources/ja/CatalogStrings.ja.resx @@ -151,7 +151,8 @@ カタログ バージョンが無効です。カタログのバージョン {0} およびバージョン {1} のみがサポートされています。 - '{0}' is a version catalog that uses SHA0 or SHA1. Consider regenerating this catalog with '-CatalogVersion 2'. + '{0}' は、脆弱な SHA-1 ハッシュ アルゴリズムを使用するバージョン 1 のカタログです。'-CatalogVersion 2' を指定してこのカタログを再生成することを検討してください。 + {StrContains="SHA-1"}{StrContains="-CatalogVersion 2"} カタログ定義ファイルを開けません。 diff --git a/src/System.Management.Automation/resources/ja/CommandBaseStrings.ja.resx b/src/System.Management.Automation/resources/ja/CommandBaseStrings.ja.resx index 3b0a6bf9ca3..ee2316d6c29 100644 --- a/src/System.Management.Automation/resources/ja/CommandBaseStrings.ja.resx +++ b/src/System.Management.Automation/resources/ja/CommandBaseStrings.ja.resx @@ -232,12 +232,14 @@ Reviewed by TArcher on 2010-07-20 スクリプト ブロック処理のドット ソース チェック - スクリプト ブロック '{0}' のドット ソース処理は、ConstrainedLanguage モードでは失敗します。これは、その言語モード '{1}' が現在の言語モード '{2}' と一致しないためです。 + スクリプト ブロック '{0}' のドット ソース処理は、ConstrainedLanguageモードでは失敗します。これは、その言語モード '{1}' が現在の言語モード '{2}' と一致しないためです。 + {StrContains="ConstrainedLanguage"} コマンド検索機能 モジュール '{1}' のコマンド '{0}' は信頼されていないため、ConstrainedLanguage モードではアクセスできません。 + {StrContains="ConstrainedLanguage"} \ No newline at end of file diff --git a/src/System.Management.Automation/resources/ja/ExtendedTypeSystem.ja.resx b/src/System.Management.Automation/resources/ja/ExtendedTypeSystem.ja.resx index be4fb465e32..f7e787e3813 100644 --- a/src/System.Management.Automation/resources/ja/ExtendedTypeSystem.ja.resx +++ b/src/System.Management.Automation/resources/ja/ExtendedTypeSystem.ja.resx @@ -396,11 +396,13 @@ PS> [System.Collections.Generic.Comparer``1]::get_Default() HashTable から '{0}' への型変換は、ConstrainedLanguage モードでは許可されません。 + {StrContains="ConstrainedLanguage"} Extended Type System Hashtable Conversion ConstrainedLanguage モードでは、'{0}' から '{1}' への型変換は許可されません。 + {StrContains="ConstrainedLanguage"} \ No newline at end of file diff --git a/src/System.Management.Automation/resources/ja/InternalCommandStrings.ja.resx b/src/System.Management.Automation/resources/ja/InternalCommandStrings.ja.resx index 84c41f43dcb..60a7ae5da3a 100644 --- a/src/System.Management.Automation/resources/ja/InternalCommandStrings.ja.resx +++ b/src/System.Management.Automation/resources/ja/InternalCommandStrings.ja.resx @@ -145,13 +145,15 @@ 入力名 "{0}" はメソッドに解決できません。 - 制限付き言語モードでメソッドを呼び出すことはできません。 + RestrictedLanguageモードでメソッドを呼び出すことはできません。 + {StrContains="RestrictedLanguage"} -WhatIf パラメーターと -Confirm パラメーターは、スクリプト ブロックではサポートされていません。 '{0}' 操作は RestrictedLanguage モードでは許可されていません。 + {StrContains="RestrictedLanguage"} 指定した 2 つの値を比較するには、演算子が必要です。コマンドに有効な演算子を含めてから、コマンドを再試行してください。たとえば、Get-Process | Where-Object -Property Name -eq Idle @@ -188,6 +190,7 @@ ErrorAction, WarningAction, InformationAction, PipelineVariable ForEach-Object コマンドレット - 制約付き言語モードで実行する場合、型 '{0}' でのメソッドの呼び出しは許可されません。 + ConstrainedLanguage モードで実行する場合、型 '{0}' でのメソッドの呼び出しは許可されません。 + {StrContains="ConstrainedLanguage"} \ No newline at end of file diff --git a/src/System.Management.Automation/resources/ja/Metadata.ja.resx b/src/System.Management.Automation/resources/ja/Metadata.ja.resx index dbe37b15bca..60a48b829b4 100644 --- a/src/System.Management.Automation/resources/ja/Metadata.ja.resx +++ b/src/System.Management.Automation/resources/ja/Metadata.ja.resx @@ -262,6 +262,7 @@ ValidateTrustedData 属性チェック エラー - パラメーター引数 '{0}' は信頼されていないため、制約言語モードでの ValidateTrustedData パラメーター属性のチェックに失敗します。 + パラメーター引数 '{0}' は信頼されていないため、ConstrainedLanguage モードで ValidateTrustedData パラメーター属性チェック失敗します。 + {StrContains="ValidateTrustedData"}{StrContains="ConstrainedLanguage"} \ No newline at end of file diff --git a/src/System.Management.Automation/resources/ja/Modules.ja.resx b/src/System.Management.Automation/resources/ja/Modules.ja.resx index 6409912cf99..f1ba78840ee 100644 --- a/src/System.Management.Automation/resources/ja/Modules.ja.resx +++ b/src/System.Management.Automation/resources/ja/Modules.ja.resx @@ -626,6 +626,7 @@ *.ps1 ファイルをモジュールとしてインポートすることは、ConstrainedLanguage モードでは許可されていません。 + {StrContains="ConstrainedLanguage"} スクリプト モジュール {0} の読み込み中にエラーが発生しました。モジュール マニフェストが言語モードが異なるためです。マニフェスト言語モードは {1} で、モジュール言語モードが {2} です。すべてのモジュール ファイルが署名されているか、アプリケーションの許可リスト構成の一部であることを確認してください。 @@ -638,6 +639,7 @@ セッションが ConstrainedLanguage モードの間は、新しいモジュールを作成できません。 + {StrContains="ConstrainedLanguage"} 'Core' エディションと互換性のある組み込みモジュール '{0}' が見つかりません。PowerShell 組み込みモジュールが使用可能であることを確認してください。これらは通常、$PSHOME モジュール パスの下に PowerShell パッケージが付属しており、PowerShell が正常に機能するために必要です。 @@ -646,42 +648,49 @@ Export-ModuleMember コマンドレット - モジュール '{0}'、言語モード '{1}' が現在のセッション '{2}' とは異なるため、モジュール メンバーのエクスポートは制約付き言語モードで失敗します。 + モジュール '{0}' の言語モード '{1}' が現在のセッション '{2}' と異なるため、ConstrainedLanguage モードではモジュール メンバーのエクスポートが失敗します。 + {StrContains="ConstrainedLanguage"} モジュールの暗黙的な関数のエクスポート - モジュール '{0}' の暗黙的な関数エクスポートは、信頼されている (完全言語モードで実行される) が、セッションが信頼されていない (制約言語モードで実行される) ため、拒否されます。モジュール関数は常にフル ネームで個別にエクスポートすることをお勧めします。 + モジュール '{0}' の暗黙的な関数エクスポートは、信頼されている (FullLanguageモードで実行される) が、セッションが信頼されていない (ConstrainedLanguageモードで実行される) ため、拒否されます。モジュール関数は常にフル ネームで個別にエクスポートすることをお勧めします。 + {StrContains="FullLanguage"}{StrContains="ConstrainedLanguage"} モジュールとしてスクリプト ファイルをインポートしています スクリプト ファイル '{0}' をモジュールとしてインポートすることは、ConstrainedLanguage モードでは許可されません。 + {StrContains="ConstrainedLanguage"} モジュールにドットソース演算子が含まれています - モジュール '{0}' のインポートは、ドットソース演算子を使用しながらワイルドカード文字を使用して関数をエクスポートするため、制約付き言語モードで失敗します。 + モジュール '{0}' インポートは、ワイルドカード文字を使用して関数をエクスポートし、ドット ソース演算子も使用するため、フェール ConstrainedLanguage モードになります。 + {StrContains="ConstrainedLanguage"} - "モジュールエクスポート関数 + モジュールのエクスポート関数 - モジュール '{0}' は、名前のワイルドカード文字を使用して関数をエクスポートします。入れ子になったモジュール関数名は、制約付き言語モードで実行すると削除されます。 + モジュール '{0}' は、名前のワイルドカード文字を使用して関数をエクスポートします。ConstrainedLanguage モードで実行すると、入れ子になったモジュール関数名はすべて削除されます。 + {StrContains="ConstrainedLanguage"} - "New-Module コマンドレット + New-Module コマンドレット - 信頼されていない制約言語セッションからの新しいモジュールは、FullLanguage スクリプト ブロックの提供をブロックされます。 + 信頼されていない ConstrainedLanguage セッションからの新しいモジュールは、FullLanguage スクリプト ブロックの提供をブロックされます。 + {StrContains="ConstrainedLanguage"}{StrContains="FullLanguage"} - "モジュールの言語モードが一致しません + モジュールの言語モードが一致しません - 親とは異なる言語モードの依存モジュールが読み込まれています。これは、制約付き言語モードでは許可されません。 + 親とは異なる言語モードを持つ依存モジュールが読み込まれています。これは、ConstrainedLanguage モードでは許可されません。 + {StrContains="ConstrainedLanguage"} \ No newline at end of file diff --git a/src/System.Management.Automation/resources/ja/ParameterBinderStrings.ja.resx b/src/System.Management.Automation/resources/ja/ParameterBinderStrings.ja.resx index 453ace6ec2b..4d73e2afce7 100644 --- a/src/System.Management.Automation/resources/ja/ParameterBinderStrings.ja.resx +++ b/src/System.Management.Automation/resources/ja/ParameterBinderStrings.ja.resx @@ -250,12 +250,14 @@ メソッドまたはプロパティの呼び出しは許可されていません - 型 '{1}' でのメソッドまたはプロパティ '{0}' の呼び出しは、信頼されていないスクリプトの制約言語モードでは許可されません。 + 信頼されていないスクリプトの ConstrainedLanguage モードでは、型 '{1}' でのメソッドまたはプロパティ '{0}' の呼び出しは許可されません。 + {StrContains="ConstrainedLanguage"} 型の作成は許可されていません - 型 '{0}' の作成は、信頼されていないスクリプトの制約付き言語モードでのパラメーター バインド中に許可されません。 + 信頼されていないスクリプトのパラメーター バインド中は、型 '{0}' の作成は ConstrainedLanguage できません。 + {StrContains="ConstrainedLanguage"} \ No newline at end of file diff --git a/src/System.Management.Automation/resources/ja/ParserStrings.ja.resx b/src/System.Management.Automation/resources/ja/ParserStrings.ja.resx index 6180a6e1333..732be385915 100644 --- a/src/System.Management.Automation/resources/ja/ParserStrings.ja.resx +++ b/src/System.Management.Automation/resources/ja/ParserStrings.ja.resx @@ -403,6 +403,7 @@ この構文は、この実行空間ではサポートされていません。これは実行空間が NoLanguage モードの場合に発生することがあります。 + {StrContains="NoLanguage"} オプションと -split 演算子の組み合わせが無効です。 @@ -581,84 +582,111 @@ Data セクションにステートメント ブロックがありません。 + {StrContains="Data"} Data セクションの "{0}" パラメーターは無効です。有効な Data セクション パラメーターは SupportedCommand です。 + {StrContains="Data"}{StrContains="SupportedCommand"} - 配列参照は、制限付き言語モードまたは Data セクション内では使用できません。 + 配列参照は、RestrictedLanguageモードまたは Data セクション内では使用できません。 + {StrContains="RestrictedLanguage"}{StrContains="Data"} - 代入ステートメントは、制限付き言語モードまたは Data セクション内では使用できません。 + 代入ステートメントは、RestrictedLanguage モードまたは Data セクション内では使用できません。 + {StrContains="RestrictedLanguage"}{StrContains="Data"} - リダイレクトは、制限付き言語モードまたは Data セクション内では使用できません。 + リダイレクトは、RestrictedLanguage モードまたは Data セクション内では使用できません。 + {StrContains="RestrictedLanguage"}{StrContains="Data"} - Do および While ステートメントは、制限付き言語モードまたは Data セクション内では使用できません。 + Do および While ステートメントは、RestrictedLanguage モードまたは Data セクション内では使用できません。 + {StrContains="Do"}{StrContains="While"}{StrContains="RestrictedLanguage"}{StrContains="Data"} - 展開可能な文字列は、制限付き言語モードまたは Data セクション内では使用できません。 + 展開可能な文字列は、RestrictedLanguage モードまたは Data セクション内では使用できません。 + {StrContains="RestrictedLanguage"}{StrContains="Data"} - '{0}' 演算子は、制限付き言語モードまたは Data セクション内では使用できません。 + '{0}' 演算子は、RestrictedLanguage モードまたは Data セクション内では使用できません。 + {StrContains="RestrictedLanguage"}{StrContains="Data"} - Trap ステートメントは、制限付き言語モードまたは Data セクション内では使用できません。 + Trap ステートメントは、RestrictedLanguage モードまたは Data セクション内では使用できません。 + {StrContains="Trap"}{StrContains="RestrictedLanguage"}{StrContains="Data"} - Try ステートメントは、制限付き言語モードまたは Data セクション内では使用できません。 + Try ステートメントは、RestrictedLanguage モードまたは Data セクション内では使用できません。 + {StrContains="Try"}{StrContains="RestrictedLanguage"}{StrContains="Data"} - Break、Continue、Return、Exit、Throw などのフロー制御ステートメントは、制限付き言語モードまたは Data セクション内では使用できません。 + Break、Continue、Return、Exit、Throw などのフロー制御ステートメントは、RestrictedLanguage モードまたは Data セクション内では使用できません。 + {StrContains="Break"}{StrContains="Continue"}{StrContains="Return"}{StrContains="Exit"}{StrContains="Throw"}{StrContains="RestrictedLanguage"}{StrContains="Data"} - Foreach ステートメントは、制限付き言語モードまたは Data セクション内では使用できません。 + Foreach ステートメントは、RestrictedLanguage モードまたは Data セクション内では使用できません。 + {StrContains="Foreach"}{StrContains="RestrictedLanguage"}{StrContains="Data"} - For および While ステートメントは、制限付き言語モードまたは Data セクション内では使用できません。 + For および While ステートメントは、RestrictedLanguage モードまたは Data セクション内では使用できません。 + {StrContains="For"}{StrContains="While"}{StrContains="RestrictedLanguage"}{StrContains="Data"} - 関数宣言は、制限付き言語モードまたは Data セクション内では使用できません。 + Function 宣言は、RestrictedLanguage モードまたは Data セクション内では使用できません。 + {StrContains="Function"}{StrContains="RestrictedLanguage"}{StrContains="Data"} - メソッド呼び出しは、制限付き言語モードまたは Data セクション内では使用できません。 + メソッド呼び出しは、RestrictedLanguage モードまたは Data セクション内では使用できません。 + {StrContains="RestrictedLanguage"}{StrContains="Data"} - パラメーター宣言は、制限付き言語モードまたは Data セクション内では使用できません。 + パラメーター宣言は、RestrictedLanguage モードまたは Data セクション内では使用できません。 + {StrContains="RestrictedLanguage"}{StrContains="Data"} - プロパティ参照は、制限付き言語モードまたは Data セクション内では使用できません。 + プロパティ参照は、RestrictedLanguage モードまたは Data セクション内では使用できません。 + {StrContains="RestrictedLanguage"}{StrContains="Data"} - スクリプト ブロック リテラルは、制限付き言語モードまたは Data セクション内では使用できません。 + スクリプト ブロック リテラルは、RestrictedLanguage モードまたは Data セクション内では使用できません。 + {StrContains="RestrictedLanguage"}{StrContains="Data"} - switch ステートメントは、制限付き言語モードまたは Data セクション内では使用できません。 + Switch ステートメントは、RestrictedLanguage モードまたは Data セクション内では使用できません。 + {StrContains="Switch"}{StrContains="RestrictedLanguage"}{StrContains="Data"} - 制限付き言語モードまたは Data セクション内で参照してはならない変数が参照されています。参照できる変数は次のとおりです: {0}。 + RestrictedLanguage モードまたは Data セクションで参照できない変数が参照されています。参照できる変数は次のとおりです: {0}。 + {StrContains="RestrictedLanguage"}{StrContains="Data"} - コマンド '{0}' は、制限付き言語モードまたは Data セクション内では使用できません。 + コマンド '{0}' は、RestrictedLanguage モードまたは Data セクション内では使用できません。 + {StrContains="RestrictedLanguage"}{StrContains="Data"} - data ステートメントは、制限付き言語モードまたは別の Data セクション内では使用できません。 + Data ステートメントは、RestrictedLanguage モードまたは Data セクション内では使用できません。 + {StrContains="RestrictedLanguage"}{StrContains="Data"} Data セクションの SupportedCommand パラメーターに値がありません。パラメーターにコマンドレット名または関数名を指定してください。 + {StrContains="SupportedCommand"}{StrContains="Data"} - Begin ステートメント ブロック、Process ステートメント ブロック、parameter ステートメントは、Data セクション内では使用できません。 + Begin ステートメント ブロック、Process ステートメント ブロック、Parameter ステートメントは、Data セクション内では使用できません。 + {StrContains="Begin"}{StrContains="Process"}{StrContains="Param"}{StrContains="Data"} - 結果の文字数が "{0}" 文字を超える文字列乗算は、制限付き言語モードまたは Data セクション内では許可されません。 + 結果の文字数が "{0}" 文字を超える文字列乗算は、RestrictedLanguage モードまたは Data セクション内では使用できません。 + {StrContains="RestrictedLanguage"}{StrContains="Data"} - 結果の要素数が {0} 個を超える配列乗算は、制限付き言語モードまたは Data セクション内では許可されません。 + RestrictedLanguage モードまたは Data セクションでは、要素が {0} を超える配列の乗算は許可されていません。 + {StrContains="RestrictedLanguage"}{StrContains="Data"} - ドット ソースは、制限付き言語モードまたは Data セクション内では使用できません。 + ドット ソーシングは、RestrictedLanguage モードまたは Data セクション内では使用できません。 + {StrContains="RestrictedLanguage"}{StrContains="Data"} 属性引数は、定数またはスクリプト ブロックである必要があります。 @@ -721,10 +749,12 @@ ハッシュ リテラル内では null キーは使用できません。 - 属性は、制限付き言語モードまたは Data セクション内では使用できません。 + 属性は、RestrictedLanguage モードまたは Data セクション内では使用できません。 + {StrContains="RestrictedLanguage"}{StrContains="Data"} - 型 {0} は、制限付き言語モードまたは Data セクション内では使用できません。 + タイプ {0} は、RestrictedLanguage モードまたは Data セクション内では使用できません。 + {StrContains="RestrictedLanguage"}{StrContains="Data"} '{0}' は読み取り専用プロパティです。 @@ -784,7 +814,8 @@ キーワード '{0}' の後にステートメント本文がありません。 - Parallel および sequence ブロックは、制限付き言語モードまたは Data セクション内では使用できません。 + Parallel および Sequence ブロックは、RestrictedLanguage モードまたは Data セクション内では使用できません。 + {StrContains="Parallel"}{StrContains="Sequence"}{StrContains="RestrictedLanguage"}{StrContains="Data"} 予期しないキーワード '{0}' があります。 @@ -796,7 +827,8 @@ このメソッドは呼び出せません。 - ハッシュテーブルを次の型のオブジェクトに変換できません: {0}。ハッシュテーブルからオブジェクトへの変換は、制限付き言語モードまたは Data セクション内ではサポートされていません。 + ハッシュテーブルを次の型のオブジェクトに変換できません: {0}。ハッシュテーブルからオブジェクトへの変換は、RestrictedLanguage モードまたは Data セクション内ではサポートされていません。 + {StrContains="RestrictedLanguage"}{StrContains="Data"} 引数は定数である必要があります。 @@ -842,7 +874,8 @@ スキーマ ファイル {0} が見つかりませんでした。構成ステートメントで指定されたモジュールに schema.mof ファイルが含まれていることを確認して、スクリプトをもう一度実行してください。 - データ セクションを定義できません。追加でサポートされるコマンドの定義は、この言語モードではサポートされていません。 + Data セクションを定義できません。追加でサポートされるコマンドの定義は、この言語モードではサポートされていません。 + {StrContains="Data"} 構成ステートメントに '{' がありません。 @@ -935,7 +968,8 @@ ModuleVersion : インポートするモジュールのバージョン。これ リソース '{0}' を読み込めません: リソースが見つかりません。 - 構成キーワードは constrainedLanguage モードでは使用できません。 + 構成キーワードは ConstrainedLanguage モード内では使用できません。 + {StrContains="ConstrainedLanguage"} 構成名 '{0}' は無効です。標準的な名前に使用できる文字は、英字 (a-z、A-Z)、数字 (0-9)、ピリオド (.)、ハイフン (-)、アンダースコア (_) のみです。名前を null 値または空にすることはできません。先頭は英字である必要があります。 @@ -1320,7 +1354,8 @@ ModuleVersion : インポートするモジュールのバージョン。これ 演算子 '&' または '.' を使用して、言語の境界を越えたモジュール スコープ コマンドを呼び出すことはできません。 - クラス キーワードは constrainedLanguage モードでは使用できません。 + Class キーワードは ConstrainedLanguage モードでは使用できません。 + {StrContains="Class"}{StrContains="ConstrainedLanguage"} 3 項式に ':' がありません。 @@ -1338,37 +1373,43 @@ ModuleVersion : インポートするモジュールのバージョン。これ パーサー構成キーワード - Configuration キーワードは、信頼されていないスクリプトの制約付き言語モードでは使用できません。 + Configuration キーワードは、信頼されていないスクリプトのConstrainedLanguageモード内では使用できません。 + {StrContains="Configuration"}{StrContains="ConstrainedLanguage"} パーサー クラス キーワード - Class キーワードは、信頼されていないスクリプトの制約付き言語モードでは使用できません。 + Class キーワードは、信頼されていないスクリプトのConstrainedLanguageモード内では使用できません。 + {StrContains="Class"}{StrContains="ConstrainedLanguage"} パーサー データ セクション SupportedCommand - SupportedCommand パラメーターを含んだ Data セクションは、信頼されていないスクリプトの制限付き言語モードでは使用できません。 + SupportedCommand パラメーターを含んだ Data セクションは、信頼されていないスクリプトのConstrainedLanguageモード内では使用できません。 + {StrContains="Data"}{StrContains="SupportedCommand"}{StrContains="ConstrainedLanguage"} モジュール スコープ呼び出し演算子 - 制約付き言語モードでは、モジュール スコープ呼び出し演算子は拒否されます。 + ConstrainedLanguage モードでは、モジュール スコープ呼び出し演算子は拒否されます。 + {StrContains="ConstrainedLanguage"} ForEach キーワード メソッド呼び出し - 制約付き言語モードで実行された場合、ForEach キーワードによる '{0}' イテレーション項目メソッドの呼び出しは失敗します。 + ConstrainedLanguage モードで実行すると、イテレーション項目メソッドの呼び出し '{0}' ForEach キーワード (keyword) が失敗します。 + {StrContains="ForEach"}{StrContains="ConstrainedLanguage"} 式評価に失敗する可能性があります - ステップ可能なパイプラインをスクリプト ブロックから作成するには、そのスクリプト ブロック内で何らかの式を評価することが必要な場合があります。この式評価は、制約付き言語モードでは、式が定数値を表していない限り警告なしに失敗して 'null' を返します。 + ステップ可能なパイプラインをスクリプト ブロックから作成するには、そのスクリプト ブロック内で何らかの式を評価することが必要な場合があります。この式評価は、ConstrainedLanguage モードでは、式が定数値を表していない限り警告なしに失敗して 'null' を返します。 + {StrContains="ConstrainedLanguage"} 構成キーワードは ARM64 プロセッサではサポートされていません。 diff --git a/src/System.Management.Automation/resources/ja/RemotingErrorIdStrings.ja.resx b/src/System.Management.Automation/resources/ja/RemotingErrorIdStrings.ja.resx index 6fb3336553a..71096a1310e 100644 --- a/src/System.Management.Automation/resources/ja/RemotingErrorIdStrings.ja.resx +++ b/src/System.Management.Automation/resources/ja/RemotingErrorIdStrings.ja.resx @@ -1022,6 +1022,7 @@ Microsoft.PowerShell や Register-PSSessionConfiguration コマンドレット セッションに適用するときに適用する言語モード。'NoLanguage' (推奨)、'RestrictedLanguage'、'ConstrainedLanguage'、または 'FullLanguage' を指定できます + {StrContains="NoLanguage"}{StrContains="RestrictedLanguage"}{StrContains="ConstrainedLanguage"}{StrContains="FullLanguage"} セッションに適用されたときにインポートするモジュール @@ -1721,7 +1722,8 @@ Microsoft.PowerShell や Register-PSSessionConfiguration コマンドレット 式評価に失敗する可能性があります - PowerShell オブジェクトをスクリプト ブロックから作成するには、そのスクリプト ブロック内で何らかの式を評価することが必要な場合があります。この式評価は、制約付き言語モードでは、式が定数値を表していない限り警告なしに失敗して 'null' を返します。 + スクリプト ブロックから PowerShell オブジェクトを作成するには、スクリプト ブロック内のいくつかの式の評価が必要になる場合があります。式が定数値を表していない限り、式の評価はサイレント エラーになり、ConstrainedLanguage モードで 'null' が返されます。 + {StrContains="ConstrainedLanguage"} Hyper-V VM の状態を取得できませんでした。値は {0} 型でしたが、Microsoft.HyperV.PowerShell.VMState または System.String であることが必要でした。 diff --git a/src/System.Management.Automation/resources/ja/RunspaceStrings.ja.resx b/src/System.Management.Automation/resources/ja/RunspaceStrings.ja.resx index 11b99fea10a..e5d6b280298 100644 --- a/src/System.Management.Automation/resources/ja/RunspaceStrings.ja.resx +++ b/src/System.Management.Automation/resources/ja/RunspaceStrings.ja.resx @@ -184,7 +184,8 @@ セッションはビジー状態です。利用可能になり次第、セッションに接続されます。Enter-PSSession コマンドをキャンセルするには、Ctrl キーを押しながら C キーを押します。 - コマンドを完了できません。スクリプトの呼び出しは、このセッション構成ではサポートされていません。これは、セッション構成が no-language モードの場合に発生することがあります。 + コマンドを完了できません。スクリプトの呼び出しは、このセッション構成ではサポートされていません。これは、セッション構成が NoLanguage モードの場合に発生することがあります。 + {StrContains="NoLanguage"} ローカルの実行空間では、切断および接続の操作は使用できません。 diff --git a/src/System.Management.Automation/resources/ja/SecuritySupportStrings.ja.resx b/src/System.Management.Automation/resources/ja/SecuritySupportStrings.ja.resx index 1063fd89b70..f94cb0f0418 100644 --- a/src/System.Management.Automation/resources/ja/SecuritySupportStrings.ja.resx +++ b/src/System.Management.Automation/resources/ja/SecuritySupportStrings.ja.resx @@ -164,5 +164,6 @@ スクリプト ファイル '{0}' は、ポリシーによって信頼されていないため、ConstrainedLanguage モードで実行されます。 + {StrContains="ConstrainedLanguage"} \ No newline at end of file diff --git a/src/System.Management.Automation/resources/ja/SessionStateStrings.ja.resx b/src/System.Management.Automation/resources/ja/SessionStateStrings.ja.resx index c7e0fa361c1..5647cf8c385 100644 --- a/src/System.Management.Automation/resources/ja/SessionStateStrings.ja.resx +++ b/src/System.Management.Automation/resources/ja/SessionStateStrings.ja.resx @@ -653,5 +653,6 @@ 変数 '{0}' スコープを AllScope に変更または作成することは、ConstrainedLanguage モードでは禁止されます。 + {StrContains="ConstrainedLanguage"} \ No newline at end of file diff --git a/src/System.Management.Automation/resources/ko/AutomationExceptions.ko.resx b/src/System.Management.Automation/resources/ko/AutomationExceptions.ko.resx index 1eddf016c1b..7ba79144d98 100644 --- a/src/System.Management.Automation/resources/ko/AutomationExceptions.ko.resx +++ b/src/System.Management.Automation/resources/ko/AutomationExceptions.ko.resx @@ -205,6 +205,7 @@ 컴파일된 스크립트 블록 점 소스 - 제한된 언어 모드에서는 스크립트 블록 '{0}'을(를) 현재 범위에 호출할 수 없습니다. 스크립트 언어 모드: {1}, 컨텍스트 언어 모드: {2}. + 현재 scope에 대한 스크립트 블록 '{0}' 호출은 ConstrainedLanguage 모드에서 허용되지 않습니다. 스크립트 언어 모드: {1}, 컨텍스트 언어 모드: {2}. + {StrContains="ConstrainedLanguage"} \ No newline at end of file diff --git a/src/System.Management.Automation/resources/ko/CatalogStrings.ko.resx b/src/System.Management.Automation/resources/ko/CatalogStrings.ko.resx index b08e8ee6585..9d09105731c 100644 --- a/src/System.Management.Automation/resources/ko/CatalogStrings.ko.resx +++ b/src/System.Management.Automation/resources/ko/CatalogStrings.ko.resx @@ -151,7 +151,8 @@ 카탈로그 버전이 유효하지 않습니다. 버전 {0} 및 버전 {1} 카탈로그만 지원됩니다. - '{0}' is a version catalog that uses SHA0 or SHA1. Consider regenerating this catalog with '-CatalogVersion 2'. + '{0}'는 약한 SHA-1 해시 알고리즘을 사용하는 버전 1 카탈로그입니다. '-CatalogVersion 2'를 사용하여 이 카탈로그를 다시 생성하는 것이 좋습니다. + {StrContains="SHA-1"}{StrContains="-CatalogVersion 2"} 카탈로그 정의 파일을 열 수 없습니다. diff --git a/src/System.Management.Automation/resources/ko/CommandBaseStrings.ko.resx b/src/System.Management.Automation/resources/ko/CommandBaseStrings.ko.resx index 6eec2039358..e39a1d3c48e 100644 --- a/src/System.Management.Automation/resources/ko/CommandBaseStrings.ko.resx +++ b/src/System.Management.Automation/resources/ko/CommandBaseStrings.ko.resx @@ -232,12 +232,14 @@ Reviewed by TArcher on 2010-07-20 스크립트 블록 처리 Dot-Source 검사 - 스크립트 블록 '{0}'의 Dot-Source 처리는 제한된 언어 모드에서 실패합니다. 언어 모드 '{1}'이(가) 현재 언어 모드 '{2}'과(와) 일치하지 않기 때문입니다. + 스크립트 블록 '{0}'의 Dot-Source 처리는 ConstrainedLanguage 모드에서 실패합니다. 언어 모드 '{1}'이(가) 현재 언어 모드 '{2}'과(와) 일치하지 않기 때문입니다. + {StrContains="ConstrainedLanguage"} 명령 검색기 '{1}' 모듈의 '{0}' 명령은 신뢰할 수 없으며 ConstrainedLanguage 모드에서 액세스할 수 없습니다. + {StrContains="ConstrainedLanguage"} \ No newline at end of file diff --git a/src/System.Management.Automation/resources/ko/ExtendedTypeSystem.ko.resx b/src/System.Management.Automation/resources/ko/ExtendedTypeSystem.ko.resx index 66082b75b2a..ece26ad07d8 100644 --- a/src/System.Management.Automation/resources/ko/ExtendedTypeSystem.ko.resx +++ b/src/System.Management.Automation/resources/ko/ExtendedTypeSystem.ko.resx @@ -396,11 +396,13 @@ PS> [System.Collections.Generic.Comparer``1]::get_Default() ConstrainedLanguage 모드에서는 HashTable에서 '{0}'(으)로 형식을 변환할 수 없습니다. + {StrContains="ConstrainedLanguage"} 확장 유형 시스템 해시 테이블 변환 ConstrainedLanguage 모드에서는 '{0}'에서 '{1}'(으)로 형식을 변환할 수 없습니다. + {StrContains="ConstrainedLanguage"} \ No newline at end of file diff --git a/src/System.Management.Automation/resources/ko/InternalCommandStrings.ko.resx b/src/System.Management.Automation/resources/ko/InternalCommandStrings.ko.resx index 46432f65208..5a5482d3d5a 100644 --- a/src/System.Management.Automation/resources/ko/InternalCommandStrings.ko.resx +++ b/src/System.Management.Automation/resources/ko/InternalCommandStrings.ko.resx @@ -145,13 +145,15 @@ 입력 이름 "{0}"을(를) 메서드로 확인할 수 없습니다. - 제한된 언어 모드에서는 메서드를 호출할 수 없습니다. + RestrictedLanguage 모드에서는 메서드를 호출할 수 없습니다. + {StrContains="RestrictedLanguage"} -WhatIf 및 -Confirm 매개 변수는 스크립트 블록에서 지원되지 않습니다. RestrictedLanguage 모드에서는 '{0}' 작업이 허용되지 않습니다. + {StrContains="RestrictedLanguage"} 지정된 두 값을 비교하려면 연산자가 필요합니다. 명령에 올바른 연산자를 포함한 다음 명령을 다시 시도하세요. 예: Get-Process | Where-Object -Property Name -eq Idle @@ -188,6 +190,7 @@ ErrorAction, WarningAction, InformationAction, PipelineVariable ForEach-Object Cmdlet - 제한된 언어 모드에서 '{0}' 형식에 대한 메서드 호출은 허용되지 않습니다. + ConstrainedLanguage 모드에서 실행할 경우 '{0}' 형식에 대한 메서드 호출이 허용되지 않습니다. + {StrContains="ConstrainedLanguage"} \ No newline at end of file diff --git a/src/System.Management.Automation/resources/ko/Metadata.ko.resx b/src/System.Management.Automation/resources/ko/Metadata.ko.resx index e808b0d6ae2..3966a2a6099 100644 --- a/src/System.Management.Automation/resources/ko/Metadata.ko.resx +++ b/src/System.Management.Automation/resources/ko/Metadata.ko.resx @@ -262,6 +262,7 @@ ValidateTrustedData 특성 검사 실패 - '{0}' 매개 변수 인수는 신뢰할 수 없으며, 제한 언어 모드에서 ValidateTrustedData 매개 변수 특성 검사에 실패합니다. + '{0}' 매개 변수 인수는 신뢰할 수 없으며 ConstrainedLanguage 모드에서 ValidateTrustedData 매개 변수 특성 검사에 실패합니다. + {StrContains="ValidateTrustedData"}{StrContains="ConstrainedLanguage"} \ No newline at end of file diff --git a/src/System.Management.Automation/resources/ko/Modules.ko.resx b/src/System.Management.Automation/resources/ko/Modules.ko.resx index 4c043247124..cb0c5c46787 100644 --- a/src/System.Management.Automation/resources/ko/Modules.ko.resx +++ b/src/System.Management.Automation/resources/ko/Modules.ko.resx @@ -626,6 +626,7 @@ ConstrainedLanguage 모드에서는 *.ps1 파일을 모듈로 가져올 수 없습니다. + {StrContains="ConstrainedLanguage"} 스크립트 모듈 {0}은(는) 모듈 매니페스트와 언어 모드가 다르기 때문에 로드하는 동안 오류가 발생했습니다. 매니페스트 언어 모드는 {1}이고 모듈 언어 모드는 {2}입니다. 모든 모듈 파일이 서명되어 있는지, 또는 애플리케이션 허용 목록 구성에 포함되어 있는지 확인하세요. @@ -638,6 +639,7 @@ 세션이 ConstrainedLanguage 모드인 동안에는 새 모듈을 만들 수 없습니다. + {StrContains="ConstrainedLanguage"} 'Core' 버전과 호환되는 기본 제공 모듈 '{0}'을(를) 찾을 수 없습니다. PowerShell 기본 제공 모듈이 사용 가능한지 확인하세요. 이 모듈은 일반적으로 $PSHOME 모듈 경로 아래의 PowerShell 패키지와 함께 제공되며, PowerShell이 제대로 작동하는 데 필요합니다. @@ -646,42 +648,49 @@ Export-ModuleMember Cmdlet - 모듈 '{0}'은(는) 현재 세션 '{1}'과 다른 언어 모드 '{2}'이(가) 있어 제한된 언어 모드에서 모듈 멤버를 내보낼 수 없습니다. + 모듈 '{0}'에 현재 세션 '{2}'과 다른 언어 모드 '{1}'이 있으므로 모듈 멤버를 ConstrainedLanguage 모드에서 내보내지 못합니다. + {StrContains="ConstrainedLanguage"} 모듈 암시적 함수 내보내기 - 모듈 '{0}'에 대한 암시적 함수 내보내기가 거부됩니다. 이 모듈은 신뢰할 수 있지만(전체 언어 모드에서 실행), 세션은 신뢰할 수 없기 때문입니다(제한된 언어 모드에서 실행). 모듈 함수는 항상 전체 이름으로 개별적으로 내보내는 것이 좋습니다. + 모듈 '{0}'에 대한 암시적 함수 내보내기가 거부됩니다. 이 모듈은 신뢰할 수 있지만(FullLanguage 모드에서 실행), 세션은 신뢰할 수 없기 때문입니다(ConstrainedLanguage 모드에서 실행). 모듈 함수는 항상 전체 이름으로 개별적으로 내보내는 것이 좋습니다. + {StrContains="FullLanguage"}{StrContains="ConstrainedLanguage"} 스크립트 파일을 모듈로 가져오기 ConstrainedLanguage 모드에서는 스크립트 파일 '{0}'을(를) 모듈로 가져올 수 없습니다. + {StrContains="ConstrainedLanguage"} 모듈에 도트 소싱 연산자가 포함되어 있음 - 모듈 '{0}'은(는) 와일드카드 문자를 사용해 함수를 내보내면서 동시에 도트 소싱 연산자를 사용하므로 제한된 언어 모드에서 가져오기에 실패합니다. + 모듈 '{0}' 가져오기는 와일드카드 문자를 사용하여 함수를 내보내면서 도트 소스 연산자를 사용하기 때문에 실패 ConstrainedLanguage 모드가 됩니다. + {StrContains="ConstrainedLanguage"} - "함수를 내보내는 모듈 + 함수를 내보내는 모듈 - 모듈 '{0}'은(는) 이름 와일드카드 문자를 사용하여 함수를 내보냅니다. 제한된 언어 모드에서 실행하면 중첩된 모듈 함수 이름이 제거됩니다. + 모듈 '{0}' 이름 와일드카드 문자를 사용하여 함수를 내보냅니다. ConstrainedLanguage 모드에서 실행할 때 중첩된 모든 모듈 함수 이름이 제거됩니다. + {StrContains="ConstrainedLanguage"} - "New-Module cmdlet + New-Module cmdlet - 신뢰할 수 없는 제한된 언어 세션의 새 모듈은 FullLanguage 스크립트 블록을 제공하지 못하도록 차단됩니다. + 신뢰할 수 없는 ConstrainedLanguage 세션의 새 모듈이 FullLanguage 스크립트 블록을 제공하지 못하도록 차단됩니다. + {StrContains="ConstrainedLanguage"}{StrContains="FullLanguage"} - "모듈 언어 모드가 일치하지 않음 + 모듈이 일치하지 않는 언어 모드 - 부모 모듈과 다른 언어 모드를 사용하는 종속 모듈이 로드되고 있습니다. 제한된 언어 모드에서는 이 작업이 허용되지 않습니다. + 부모와 다른 언어 모드를 사용하는 종속 모듈이 로드되고 있습니다. ConstrainedLanguage 모드에서는 허용되지 않습니다. + {StrContains="ConstrainedLanguage"} \ No newline at end of file diff --git a/src/System.Management.Automation/resources/ko/ParameterBinderStrings.ko.resx b/src/System.Management.Automation/resources/ko/ParameterBinderStrings.ko.resx index 82e8a51d726..765e88984a8 100644 --- a/src/System.Management.Automation/resources/ko/ParameterBinderStrings.ko.resx +++ b/src/System.Management.Automation/resources/ko/ParameterBinderStrings.ko.resx @@ -250,12 +250,14 @@ 메서드 또는 속성 호출은 허용되지 않습니다. - 신뢰할 수 없는 스크립트에 대한 제한된 언어 모드에서는 '{1}' 형식의 메서드 또는 속성 '{0}' 호출을 허용하지 않습니다. + 신뢰할 수 없는 스크립트에 대한 ConstrainedLanguage 모드에서는 '{1}' 형식에 대한 메서드 또는 속성 '{0}' 호출이 허용되지 않습니다. + {StrContains="ConstrainedLanguage"} 형식 만들기가 허용되지 않음 - 신뢰할 수 없는 스크립트에 대한 제한된 언어 모드에서는 매개 변수 바인딩 중에 '{0}' 형식을 만들 수 없습니다. + 신뢰할 수 없는 스크립트에 대해 ConstrainedLanguage 모드에서 매개 변수를 바인딩하는 동안에는 '{0}' 형식을 만들 수 없습니다. + {StrContains="ConstrainedLanguage"} \ No newline at end of file diff --git a/src/System.Management.Automation/resources/ko/ParserStrings.ko.resx b/src/System.Management.Automation/resources/ko/ParserStrings.ko.resx index daf8dcb1227..140634d56b1 100644 --- a/src/System.Management.Automation/resources/ko/ParserStrings.ko.resx +++ b/src/System.Management.Automation/resources/ko/ParserStrings.ko.resx @@ -402,7 +402,8 @@ 스크립트가 너무 복잡하여 처리가 중지되었습니다. - 이 구문은 runspace에서는 지원되지 않습니다. 이 문제는 runspace가 비언어 모드인 경우 발생할 수 있습니다. + 이 구문은 runspace에서는 지원되지 않습니다. 이 문제는 runspace가 NoLanguage 모드인 경우 발생할 수 있습니다. + {StrContains="NoLanguage"} -split 연산자와 함께 사용하는 옵션 조합이 유효하지 않습니다. @@ -581,84 +582,111 @@ Data 섹션에 문 블록이 없습니다. + {StrContains="Data"} Data 섹션의 "{0}" 매개 변수가 유효하지 않습니다. 유효한 Data 섹션 매개 변수는 SupportedCommand입니다. + {StrContains="Data"}{StrContains="SupportedCommand"} - 제한된 언어 모드 또는 Data 섹션에서는 배열 참조를 사용할 수 없습니다. + RestrictedLanguage 모드 또는 Data 섹션에서는 배열 참조를 사용할 수 없습니다. + {StrContains="RestrictedLanguage"}{StrContains="Data"} - 제한된 언어 모드 또는 Data 섹션에서는 Assignment 문을 사용할 수 없습니다. + RestrictedLanguage 모드 또는 Data 섹션에서는 Assignment 문을 사용할 수 없습니다. + {StrContains="RestrictedLanguage"}{StrContains="Data"} - 제한된 언어 모드나 Data 섹션에서는 리디렉션을 사용할 수 없습니다. + RestrictedLanguage 모드 또는 Data 섹션에서는 리디렉션을 사용할 수 없습니다. + {StrContains="RestrictedLanguage"}{StrContains="Data"} - 제한된 언어 모드 또는 Data 섹션에서는 Do 및 While 문을 사용할 수 없습니다. + RestrictedLanguage 모드 또는 Data 섹션에서는 Do 및 While 문을 사용할 수 없습니다. + {StrContains="Do"}{StrContains="While"}{StrContains="RestrictedLanguage"}{StrContains="Data"} - 제한된 언어 모드 또는 Data 섹션에서는 확장 가능한 문자열을 사용할 수 없습니다. + RestrictedLanguage 모드 또는 Data 섹션에서는 확장 가능한 문자열을 사용할 수 없습니다. + {StrContains="RestrictedLanguage"}{StrContains="Data"} - 제한된 언어 모드나 Data 섹션에서는 '{0}' 연산자를 사용할 수 없습니다. + '{0}' 연산자는 RestrictedLanguage 모드 또는 Data 섹션에서 사용할 수 없습니다. + {StrContains="RestrictedLanguage"}{StrContains="Data"} - 제한된 언어 모드나 Data 섹션에서는 Trap 문을 사용할 수 없습니다. + RestrictedLanguage 모드 또는 Data 섹션에서는 Trap 문을 사용할 수 없습니다. + {StrContains="Trap"}{StrContains="RestrictedLanguage"}{StrContains="Data"} - 제한된 언어 모드 또는 Data 섹션에서는 Try 문을 사용할 수 없습니다. + RestrictedLanguage 모드 또는 Data 섹션에서는 Try 문을 사용할 수 없습니다. + {StrContains="Try"}{StrContains="RestrictedLanguage"}{StrContains="Data"} - 제한된 언어 모드 또는 Data 섹션에서는 Break, Continue, Return, Exit, Throw 같은 흐름 제어 문을 사용할 수 없습니다. + Break, Continue, Return, Exit 및 Throw와 같은 흐름 제어 문은 RestrictedLanguage 모드 또는 Data 섹션에서 사용할 수 없습니다. + {StrContains="Break"}{StrContains="Continue"}{StrContains="Return"}{StrContains="Exit"}{StrContains="Throw"}{StrContains="RestrictedLanguage"}{StrContains="Data"} - 제한된 언어 모드 또는 Data 섹션에서는 Foreach 문을 사용할 수 없습니다. + RestrictedLanguage 모드 또는 Data 섹션에서는 Foreach 문을 사용할 수 없습니다. + {StrContains="Foreach"}{StrContains="RestrictedLanguage"}{StrContains="Data"} - 제한된 언어 모드 또는 Data 섹션에서는 For 및 While 문을 사용할 수 없습니다. + RestrictedLanguage 모드 또는 Data 섹션에서는 For 및 While 문을 사용할 수 없습니다. + {StrContains="For"}{StrContains="While"}{StrContains="RestrictedLanguage"}{StrContains="Data"} - 제한된 언어 모드 또는 Data 섹션에서는 함수 선언을 사용할 수 없습니다. + RestrictedLanguage 모드 또는 Data 섹션에서는 Function 선언을 사용할 수 없습니다. + {StrContains="Function"}{StrContains="RestrictedLanguage"}{StrContains="Data"} - 제한된 언어 모드 또는 Data 섹션에서는 메서드 호출을 사용할 수 없습니다. + RestrictedLanguage 모드 또는 Data 섹션에서는 메서드 호출을 사용할 수 없습니다. + {StrContains="RestrictedLanguage"}{StrContains="Data"} - 제한된 언어 모드나 Data 섹션에서는 매개 변수 선언을 사용할 수 없습니다. + RestrictedLanguage 모드 또는 Data 섹션에서는 매개 변수 선언을 사용할 수 없습니다. + {StrContains="RestrictedLanguage"}{StrContains="Data"} - 제한된 언어 모드나 Data 섹션에서는 속성 참조를 사용할 수 없습니다. + RestrictedLanguage 모드 또는 Data 섹션에서는 속성 참조를 사용할 수 없습니다. + {StrContains="RestrictedLanguage"}{StrContains="Data"} - 제한된 언어 모드 또는 Data 섹션에서는 스크립트 블록 리터럴을 사용할 수 없습니다. + 스크립트 블록 리터럴은 RestrictedLanguage 모드 또는 Data 섹션에서 사용할 수 없습니다. + {StrContains="RestrictedLanguage"}{StrContains="Data"} - 제한된 언어 모드 또는 Data 섹션에서는 switch 문을 사용할 수 없습니다. + RestrictedLanguage 모드 또는 Data 섹션에서는 Switch 문을 사용할 수 없습니다. + {StrContains="Switch"}{StrContains="RestrictedLanguage"}{StrContains="Data"} - 제한된 언어 모드 또는 Data 섹션에서 참조할 수 없는 변수를 참조하고 있습니다. 참조할 수 있는 변수에는 다음이 포함됩니다. {0} + RestrictedLanguage 모드 또는 Data 섹션에서 참조할 수 없는 변수가 참조되고 있습니다. 참조할 수 있는 변수에는 다음이 포함됩니다. {0}. + {StrContains="RestrictedLanguage"}{StrContains="Data"} - 제한된 언어 모드 또는 Data 섹션에서는 '{0}' 명령을 사용할 수 없습니다. + RestrictedLanguage 모드 또는 Data 섹션에서는 '{0}' 명령을 사용할 수 없습니다. + {StrContains="RestrictedLanguage"}{StrContains="Data"} - 제한된 언어 모드 또는 다른 Data 섹션에서는 Data 문을 사용할 수 없습니다. + RestrictedLanguage 모드 또는 다른 Data 섹션에서는 Data 문을 사용할 수 없습니다. + {StrContains="RestrictedLanguage"}{StrContains="Data"} Data 섹션의 SupportedCommand 매개 변수에 값이 없습니다. 매개 변수에 cmdlet 또는 함수 이름을 지정하세요. + {StrContains="SupportedCommand"}{StrContains="Data"} - Data 섹션에서는 Begin 문 블록, Process 문 블록 또는 매개 변수 문을 사용할 수 없습니다. + Data 섹션에서는 Begin 문 블록, Process 문 블록 또는 Param 문을 사용할 수 없습니다. + {StrContains="Begin"}{StrContains="Process"}{StrContains="Param"}{StrContains="Data"} - 제한된 언어 모드 또는 Data 섹션에서는 "{0}"자를 초과하는 문자열 곱셈 결과를 사용할 수 없습니다. + "{0}"자를 초과하는 문자열 곱셈 결과는 RestrictedLanguage 모드 또는 Data 섹션에서 허용되지 않습니다. + {StrContains="RestrictedLanguage"}{StrContains="Data"} - 제한된 언어 모드 또는 Data 섹션에서는 {0}개보다 많은 요소를 만드는 배열 곱셈을 사용할 수 없습니다. + RestrictedLanguage 모드 또는 Data 섹션에서는 {0}개보다 많은 요소를 만드는 배열 곱셈을 사용할 수 없습니다. + {StrContains="RestrictedLanguage"}{StrContains="Data"} - 제한된 언어 모드 또는 Data 섹션에서는 도트 소싱을 사용할 수 없습니다. + RestrictedLanguage 모드 또는 Data 섹션에서는 도트 소싱을 사용할 수 없습니다. + {StrContains="RestrictedLanguage"}{StrContains="Data"} 특성 인수는 상수 또는 스크립트 블록이어야 합니다. @@ -721,10 +749,12 @@ 해시 리터럴에는 null 키를 사용할 수 없습니다. - 제한된 언어 모드 또는 Data 섹션에서는 특성을 사용할 수 없습니다. + RestrictedLanguage 모드 또는 Data 섹션에서는 특성을 사용할 수 없습니다. + {StrContains="RestrictedLanguage"}{StrContains="Data"} - 제한된 언어 모드나 Data 섹션에서는 형식 {0}을(를) 사용할 수 없습니다. + RestrictedLanguage 모드 또는 Data 섹션에서는 {0}형식을 사용할 수 없습니다. + {StrContains="RestrictedLanguage"}{StrContains="Data"} '{0}'은(는) 읽기 전용 속성입니다. @@ -784,7 +814,8 @@ 키워드 '{0}' 뒤에 문 본문이 없습니다. - 병렬 및 시퀀스 블록은 제한된 언어 모드나 Data 섹션에서는 사용할 수 없습니다. + Parallel 및 Sequence 블록은 RestrictedLanguage 모드나 Data 섹션에서는 사용할 수 없습니다. + {StrContains="Parallel"}{StrContains="Sequence"}{StrContains="RestrictedLanguage"}{StrContains="Data"} 예기치 않은 키워드 '{0}'입니다. @@ -796,7 +827,8 @@ 메서드를 호출할 수 없습니다. - 해시 테이블을 {0} 형식의 개체로 변환할 수 없습니다. 제한된 언어 모드 또는 Data 섹션에서는 해시 테이블을 개체로 변환하는 기능이 지원되지 않습니다. + 해시 테이블을 {0} 형식의 개체로 변환할 수 없습니다. 해시 테이블에서 개체로의 변환은 RestrictedLanguage 모드 또는 Data 섹션에서 지원되지 않습니다. + {StrContains="RestrictedLanguage"}{StrContains="Data"} 인수는 상수여야 합니다. @@ -842,7 +874,8 @@ 스키마 파일 {0}을(를) 찾을 수 없습니다. 구성 문에 지정된 모듈에 schema.mof 파일이 포함되어 있는지 확인한 다음 스크립트를 다시 실행해 보세요. - 데이터 섹션을 정의할 수 없습니다. 이 언어 모드에서는 추가 지원 명령이 지원되지 않습니다. + Data 섹션을 정의할 수 없습니다. 이 언어 모드에서는 추가로 지원되는 명령의 정의가 지원되지 않습니다. + {StrContains="Data"} 구성 문에 '{'가 없습니다. @@ -935,7 +968,8 @@ ModuleVersion: 가져오려는 모듈의 버전입니다. 사용될 경우 Modul 리소스 '{0}'(를)를 로드할 수 없습니다. 리소스를 찾을 수 없습니다. - constrainedLanguage 모드에서는 구성 키워드를 사용할 수 없습니다. + ConstrainedLanguage 모드에서는 구성 키워드를 사용할 수 없습니다. + {StrContains="ConstrainedLanguage"} 구성 이름 '{0}'이(가) 유효하지 않습니다. 표준 이름에는 문자(a-z, A-Z), 숫자(0~9), 마침표(.), 하이픈(-), 밑줄(_)만 포함할 수 있습니다. 이름은 null이거나 비어 있을 수 없으며 문자로 시작해야 합니다. @@ -1320,7 +1354,8 @@ ModuleVersion: 가져오려는 모듈의 버전입니다. 사용될 경우 Modul 언어 경계를 넘어 모듈 scope 명령을 호출하는 데는 '&' 또는 '.' 연산자를 사용할 수 없습니다. - ConstrainedLanguage 모드에서는 클래스 키워드를 사용할 수 없습니다. + ConstrainedLanguage 모드에서는 Class 키워드를 사용할 수 없습니다. + {StrContains="Class"}{StrContains="ConstrainedLanguage"} 3항 식에 ':'이 없습니다. @@ -1338,37 +1373,43 @@ ModuleVersion: 가져오려는 모듈의 버전입니다. 사용될 경우 Modul 파서 구성 키워드 - 신뢰할 수 없는 스크립트에 대해서는 제한된 언어 모드에서 Configuration 키워드를 사용할 수 없습니다. + 신뢰할 수 없는 스크립트에 대해서는 ConstrainedLanguage 모드에서 Configuration 키워드를 사용할 수 없습니다. + {StrContains="Configuration"}{StrContains="ConstrainedLanguage"} 파서 클래스 키워드 - 신뢰할 수 없는 스크립트에 대해서는 Constrained Language 모드에서 Class 키워드를 사용할 수 없습니다. + 신뢰할 수 없는 스크립트에 대해서는 ConstrainedLanguage 모드에서 Class 키워드를 사용할 수 없습니다. + {StrContains="Class"}{StrContains="ConstrainedLanguage"} 파서 데이터 섹션 SupportedCommand - 신뢰할 수 없는 스크립트에 대해서는 Constrained Language 모드에서 SupportedCommand 매개 변수를 포함하는 Data Section을 사용할 수 없습니다. + SupportedCommand 매개 변수가 포함된 Data 섹션은 신뢰할 수 없는 스크립트의 경우 ConstrainedLanguage 모드에서 허용되지 않습니다. + {StrContains="Data"}{StrContains="SupportedCommand"}{StrContains="ConstrainedLanguage"} 모듈 범위 호출 연산자 - Constrained Language 모드에서는 모듈 범위 호출 연산자가 거부됩니다. + ConstrainedLanguage 모드에서는 모듈 범위 호출 연산자가 거부됩니다. + {StrContains="ConstrainedLanguage"} ForEach 키워드 메서드 호출 - Constrained Language 모드에서 실행하면 ForEach 키워드는 반복 항목 메서드 호출 '{0}'에 실패합니다. + ConstrainedLanguage 모드에서 실행되면 ForEach 키워드(keyword)가 반복 항목 메서드 호출'{0}' 실패합니다. + {StrContains="ForEach"}{StrContains="ConstrainedLanguage"} 식 계산이 실패할 수 있습니다. - 스크립트 블록에서 스테퍼블 파이프라인을 만들려면 스크립트 블록 안의 일부 식을 평가해야 할 수 있습니다. 식이 상수 값을 나타내지 않는 한, 식 평가는 제한된 언어 모드에서 오류 없이 실패하고 'null'을 반환합니다. + 스크립트 블록에서 단계별 실행 가능한 파이프라인을 만들려면 스크립트 블록 내에서 일부 식을 평가해야 할 수 있습니다. 식이 상수 값을 나타내지 않는 한 식 계산은 자동으로 실패하고 ConstrainedLanguage 모드에서 'null'을 반환합니다. + {StrContains="ConstrainedLanguage"} ARM64 프로세서에서는 구성 키워드를 지원하지 않습니다. diff --git a/src/System.Management.Automation/resources/ko/RemotingErrorIdStrings.ko.resx b/src/System.Management.Automation/resources/ko/RemotingErrorIdStrings.ko.resx index 091db267758..66595c0e6c7 100644 --- a/src/System.Management.Automation/resources/ko/RemotingErrorIdStrings.ko.resx +++ b/src/System.Management.Automation/resources/ko/RemotingErrorIdStrings.ko.resx @@ -1023,6 +1023,7 @@ Microsoft.PowerShell과 Register-PSSessionConfiguration cmdlet으로 만든 세 세션에 적용할 언어 모드입니다. 'NoLanguage'(권장), 'RestrictedLanguage', 'ConstrainedLanguage' 또는 'FullLanguage'일 수 있습니다. + {StrContains="NoLanguage"}{StrContains="RestrictedLanguage"}{StrContains="ConstrainedLanguage"}{StrContains="FullLanguage"} 세션에 적용할 때 가져올 모듈 @@ -1070,7 +1071,7 @@ Microsoft.PowerShell과 Register-PSSessionConfiguration cmdlet으로 만든 세 세션에 적용할 때 표시할 외부 명령(스크립트 및 애플리케이션) - PSSession 구성 파일 경로 '{0}'이(가) 잘못되었습니다. 경로 인수는 확장자가 '.pssc'인 파일 시스템의 단일 파일로 확인되어야 합니다. 경로를 수정한 다음 다시 시도하세요. + PSSession 구성 파일 경로 '{0}'이(가) 잘못되었습니다. 경로 인수는 확장자가 '.pssc'인 파일 시스템의 단일 파일로 확인되어야 합니다. 경로를 수정한 후 다시 시도하세요. 역할 기능 파일 경로 '{0}'이(가) 올바르지 않습니다. 경로 인수는 확장자가 '.psrc'인 파일 시스템의 단일 파일로 확인되어야 합니다. 경로를 수정한 다음 다시 시도하세요. @@ -1722,7 +1723,8 @@ Microsoft.PowerShell과 Register-PSSessionConfiguration cmdlet으로 만든 세 식 계산이 실패할 수 있습니다. - 스크립트 블록에서 PowerShell 개체를 만들려면 스크립트 블록 안의 일부 식을 평가해야 할 수 있습니다. 식이 상수 값을 나타내지 않는 한, 식 평가는 Constrained Language 모드에서 조용히 실패하고 'null'을 반환합니다. + 스크립트 블록에서 PowerShell 개체를 만들려면 스크립트 블록 내의 일부 식을 평가해야 할 수 있습니다. 식이 상수 값을 나타내지 않는 한 식 계산은 자동으로 실패하고 ConstrainedLanguage 모드에서 'null'을 반환합니다. + {StrContains="ConstrainedLanguage"} Hyper-V VM 상태를 가져오지 못했습니다. 값의 형식이 {0} 이지만 Microsoft.HyperV.PowerShell.VMState 또는 System.String이어야 합니다. diff --git a/src/System.Management.Automation/resources/ko/RunspacePoolStrings.ko.resx b/src/System.Management.Automation/resources/ko/RunspacePoolStrings.ko.resx index f03c38dfba4..b3621e83a64 100644 --- a/src/System.Management.Automation/resources/ko/RunspacePoolStrings.ko.resx +++ b/src/System.Management.Automation/resources/ko/RunspacePoolStrings.ko.resx @@ -127,13 +127,13 @@ 최소 풀 크기는 최대 풀 크기보다 클 수 없습니다. - 실행 공간 풀의 상태가 이 작업에 유효하지 않습니다. + Runspace 풀의 상태가 이 작업에 유효하지 않습니다. - 실행 공간 풀이 '{0}' 상태가 아니므로 작업을 수행할 수 없습니다. 현재 상태는 '{1}'입니다. + Runspace 풀이 '{0}' 상태가 아니므로 작업을 수행할 수 없습니다. 현재 상태는 '{1}'입니다. - 실행 공간 풀이 'BeforeOpen' 상태가 아니므로 열 수 없습니다. 현재 상태는 '{0}'입니다. + Runspace 풀이 'BeforeOpen' 상태가 아니므로 열 수 없습니다. 현재 상태는 '{0}'입니다. {0} 개체가 현재 RunspacePool 인스턴스에서 {1}을(를) 호출하여 만들어지지 않았습니다. @@ -142,22 +142,22 @@ 실행 공간이 현재 풀에 속해 있지 않으므로 현재 풀에 실행 공간을 해제할 수 없습니다. - 실행 공간 풀이 열린 후에는 이 속성을 변경할 수 없습니다. + Runspace 풀이 열린 후에는 이 속성을 변경할 수 없습니다. 이 실행 공간은 연결 끊기 및 연결 작업을 지원하지 않습니다. - 실행 공간 풀이 연결 끊김 상태이므로 작업을 수행할 수 없습니다. + Runspace 풀이 연결 끊김 상태이므로 작업을 수행할 수 없습니다. - 서버에서 연결 끊기 작업이 지원되지 않습니다. 원격 실행 공간 풀 연결 끊기를 지원하려면 서버에서 PowerShell 3.0 이상을 실행해야 합니다. + 서버에서 연결 끊기 작업이 지원되지 않습니다. 원격 runspace 풀 연결 끊기를 지원하려면 서버에서 PowerShell 3.0 이상을 실행해야 합니다. - 이 실행 공간 풀 {0}은(는) 원격 서버에서 실행 중인 명령에 대해 연결이 끊어진 PowerShell 개체를 제공하도록 구성되어 있지 않습니다. RunspacePool 클래스의 GetRunspacePools() 정적 메서드를 사용하여 서버를 쿼리하고 이렇게 하도록 구성된 실행 공간 풀 개체를 반환하세요. + 이 runspace 풀 {0}은(는) 원격 서버에서 실행 중인 명령에 대해 연결이 끊어진 PowerShell 개체를 제공하도록 구성되어 있지 않습니다. RunspacePool 클래스의 GetRunspacePools() 정적 메서드를 사용하여 서버를 쿼리하고 이렇게 하도록 구성된 runspace 풀 개체를 반환하세요. - 해당 서버 쪽 실행 공간 풀이 다른 클라이언트에 연결되어 있으므로 이 실행 공간 풀을 연결할 수 없습니다. + 해당 서버 쪽 runspace 풀이 다른 클라이언트에 연결되어 있으므로 이 runspace 풀 풀을 연결할 수 없습니다. 서버에서 ResetRunspaceState가 지원되지 않습니다. 서버에서 PowerShell 5.0 이상을 실행해야 합니다. diff --git a/src/System.Management.Automation/resources/ko/RunspaceStrings.ko.resx b/src/System.Management.Automation/resources/ko/RunspaceStrings.ko.resx index 8eadcedbcb0..e6b75430552 100644 --- a/src/System.Management.Automation/resources/ko/RunspaceStrings.ko.resx +++ b/src/System.Management.Automation/resources/ko/RunspaceStrings.ko.resx @@ -184,7 +184,8 @@ 세션이 사용 중입니다. 사용할 수 있게 되면 바로 세션에 연결됩니다. Enter-PSSession 명령을 취소하려면 Ctrl-C를 누르세요. - 명령을 완료할 수 없습니다. 이 세션 구성에서는 스크립트 호출이 지원되지 않습니다. 세션 구성이 no-language 모드일 때 이 문제가 발생할 수 있습니다. + 명령을 완료할 수 없습니다. 이 세션 구성에서는 스크립트 호출이 지원되지 않습니다. 이 문제는 세션 구성이 NoLanguage 모드인 경우에 발생할 수 있습니다. + {StrContains="NoLanguage"} 로컬 runspace에서는 연결 끊기 및 연결 작업을 사용할 수 없습니다. diff --git a/src/System.Management.Automation/resources/ko/SecuritySupportStrings.ko.resx b/src/System.Management.Automation/resources/ko/SecuritySupportStrings.ko.resx index 2061817dd6f..6a68c6a91f2 100644 --- a/src/System.Management.Automation/resources/ko/SecuritySupportStrings.ko.resx +++ b/src/System.Management.Automation/resources/ko/SecuritySupportStrings.ko.resx @@ -164,5 +164,6 @@ 스크립트 파일 '{0}'은(는) 정책에서 신뢰되지 않으므로 ConstrainedLanguage 모드에서 실행됩니다. + {StrContains="ConstrainedLanguage"} \ No newline at end of file diff --git a/src/System.Management.Automation/resources/ko/SessionStateStrings.ko.resx b/src/System.Management.Automation/resources/ko/SessionStateStrings.ko.resx index 153cdfc5f05..8a9be677d21 100644 --- a/src/System.Management.Automation/resources/ko/SessionStateStrings.ko.resx +++ b/src/System.Management.Automation/resources/ko/SessionStateStrings.ko.resx @@ -653,5 +653,6 @@ ConstrainedLanguage 모드에서는 변수 '{0}'의 범위를 AllScope로 변경하거나 만들 수 없습니다. + {StrContains="ConstrainedLanguage"} \ No newline at end of file diff --git a/src/System.Management.Automation/resources/pl/AutomationExceptions.pl.resx b/src/System.Management.Automation/resources/pl/AutomationExceptions.pl.resx index 449cc0566b0..8aeb2b90d4a 100644 --- a/src/System.Management.Automation/resources/pl/AutomationExceptions.pl.resx +++ b/src/System.Management.Automation/resources/pl/AutomationExceptions.pl.resx @@ -205,6 +205,7 @@ Kropkowe źródło skompilowanego bloku skryptu - Wywołanie bloku skryptu „{0}” w bieżącym zakresie będzie niedozwolone w trybie Constrained Language. Tryb języka skryptu: {1}, tryb języka kontekstu: {2}. + Blok skryptu '{0}' wywołanie do bieżącego zakresu będzie niedozwolone w trybie ConstrainedLanguage. Tryb języka skryptu: {1}, tryb języka kontekstu: {2}. + {StrContains="ConstrainedLanguage"} \ No newline at end of file diff --git a/src/System.Management.Automation/resources/pl/CatalogStrings.pl.resx b/src/System.Management.Automation/resources/pl/CatalogStrings.pl.resx index c0d1ce7befe..0adf2e5a01d 100644 --- a/src/System.Management.Automation/resources/pl/CatalogStrings.pl.resx +++ b/src/System.Management.Automation/resources/pl/CatalogStrings.pl.resx @@ -151,7 +151,8 @@ Wersja wykazu jest nieprawidłowa. Obsługujemy tylko wersję {0} i wersję {1} wykazu. - '{0}' is a version catalog that uses SHA0 or SHA1. Consider regenerating this catalog with '-CatalogVersion 2'. + „{0}” to katalog w wersji 1, który używa słabego algorytmu wyznaczania wartości skrótu SHA-1. Rozważ ponowne wygenerowanie tego wykazu za pomocą elementu „-CatalogVersion 2”. + {StrContains="SHA-1"}{StrContains="-CatalogVersion 2"} Nie można otworzyć pliku definicji wykazu. diff --git a/src/System.Management.Automation/resources/pl/CommandBaseStrings.pl.resx b/src/System.Management.Automation/resources/pl/CommandBaseStrings.pl.resx index 2c4c6fdb256..be296772726 100644 --- a/src/System.Management.Automation/resources/pl/CommandBaseStrings.pl.resx +++ b/src/System.Management.Automation/resources/pl/CommandBaseStrings.pl.resx @@ -232,12 +232,14 @@ Reviewed by TArcher on 2010-07-20 Sprawdzanie dot-source podczas przetwarzania bloku skryptu - Przetwarzanie dot-source dla bloku skryptu „{0}” zakończy się niepowodzeniem w trybie ograniczonego języka, ponieważ jego tryb języka „{1}” nie jest zgodny z bieżącym trybem języka „{2}”. + Przetwarzanie dot-source dla bloku skryptu „{0}” zakończy się niepowodzeniem w trybie ConstrainedLanguage, ponieważ jego tryb języka „{1}” nie jest zgodny z bieżącym trybem języka „{2}”. + {StrContains="ConstrainedLanguage"} Wyszukiwanie poleceń Polecenie „{0}” w module „{1}” jest niezaufane i nie będzie dostępne w trybie ConstrainedLanguage. + {StrContains="ConstrainedLanguage"} \ No newline at end of file diff --git a/src/System.Management.Automation/resources/pl/ExtendedTypeSystem.pl.resx b/src/System.Management.Automation/resources/pl/ExtendedTypeSystem.pl.resx index aa950b54594..66eddf3c6be 100644 --- a/src/System.Management.Automation/resources/pl/ExtendedTypeSystem.pl.resx +++ b/src/System.Management.Automation/resources/pl/ExtendedTypeSystem.pl.resx @@ -396,11 +396,13 @@ PS> [System.Collections.Generic.Comparer``1]::get_Default() Konwersja typu z wartości HashTable na „{0}” nie będzie dozwolona w trybie ConstrainedLanguage. + {StrContains="ConstrainedLanguage"} Konwersja tabeli skrótów systemu typów rozszerzonych Konwersja typu z „{0}” na „{1}” nie będzie dozwolona w trybie ConstrainedLanguage. + {StrContains="ConstrainedLanguage"} \ No newline at end of file diff --git a/src/System.Management.Automation/resources/pl/InternalCommandStrings.pl.resx b/src/System.Management.Automation/resources/pl/InternalCommandStrings.pl.resx index 5ade3837ed8..6e55fb42ab0 100644 --- a/src/System.Management.Automation/resources/pl/InternalCommandStrings.pl.resx +++ b/src/System.Management.Automation/resources/pl/InternalCommandStrings.pl.resx @@ -145,13 +145,15 @@ Nie można rozpoznać nazwy wejściowej „{0}” jako metody. - Nie można wywołać metody w trybie języka z ograniczeniami. + Nie można wywołać metody w trybie RestrictedLanguage. + {StrContains="RestrictedLanguage"} Parametry -WhatIf i -Confirm nie są obsługiwane w blokach skryptów. Operacja „{0}” jest niedozwolona w trybie RestrictedLanguage. + {StrContains="RestrictedLanguage"} Operator jest wymagany do porównania dwóch określonych wartości. Dodaj prawidłowy operator do polecenia, a następnie spróbuj ponownie. Na przykład: Get-Process | Where-Object -Property Name -eq Idle @@ -188,6 +190,7 @@ ErrorAction, WarningAction, InformationAction, PipelineVariable ForEach-Object Cmdlet - Wywoływanie metod dla typu „{0}” nie będzie dozwolone po uruchomieniu w trybie języka z ograniczeniami. + Wywołanie metody dla typu '{0}' nie będzie dozwolone podczas uruchamiania w trybie ConstrainedLanguage. + {StrContains="ConstrainedLanguage"} \ No newline at end of file diff --git a/src/System.Management.Automation/resources/pl/Metadata.pl.resx b/src/System.Management.Automation/resources/pl/Metadata.pl.resx index 6fdfbb21856..c22245d9a66 100644 --- a/src/System.Management.Automation/resources/pl/Metadata.pl.resx +++ b/src/System.Management.Automation/resources/pl/Metadata.pl.resx @@ -262,6 +262,7 @@ Sprawdzanie atrybutu ValidateTrustedData nie powiodło się - Argument parametru „{0}” nie jest zaufany i nie przejdzie sprawdzania atrybutu ValidateTrustedData w trybie Constrained Language. + Argument parametru '{0}' nie jest zaufany i w trybie ConstrainedLanguage nie przejdzie sprawdzania atrybutu parametru ValidateTrustedData. + {StrContains="ValidateTrustedData"}{StrContains="ConstrainedLanguage"} \ No newline at end of file diff --git a/src/System.Management.Automation/resources/pl/Modules.pl.resx b/src/System.Management.Automation/resources/pl/Modules.pl.resx index d9174c404f8..cb403a3a3e0 100644 --- a/src/System.Management.Automation/resources/pl/Modules.pl.resx +++ b/src/System.Management.Automation/resources/pl/Modules.pl.resx @@ -626,9 +626,10 @@ Importowanie plików *.ps1 jako modułów jest niedozwolone w trybie ConstrainedLanguage. + {StrContains="ConstrainedLanguage"} - Wystąpił błąd podczas ładowania modułu skryptu {0}, ponieważ ma on inny tryb językowy niż manifest modułu. Tryb językowy manifestu to {1}, a tryb językowy modułu to {2}. Upewnij się, że wszystkie pliki modułu są podpisane lub w inny sposób znajdują się na liście dozwolonych aplikacji. + Wystąpił błąd podczas ładowania modułu skryptu {0}, ponieważ ma on inny tryb języka niż manifest modułu. Tryb języka manifestu to {1}, a tryb języka modułu to {2}. Upewnij się, że wszystkie pliki modułu są podpisane lub w inny sposób znajdują się na liście dozwolonych aplikacji. Ten moduł używa operatora dot-source podczas eksportowania funkcji przy użyciu symboli wieloznacznych, a jest to niedozwolone, gdy system wymusza weryfikację aplikacji. @@ -638,6 +639,7 @@ Nie można utworzyć nowego modułu, gdy sesja jest w trybie ConstrainedLanguage. + {StrContains="ConstrainedLanguage"} Nie można znaleźć wbudowanego modułu „{0}”, który jest zgodny z edycją „Core”. Upewnij się, że wbudowane moduły programu PowerShell są dostępne. Zazwyczaj są dostarczane z pakietem programu PowerShell w ścieżce modułu $PSHOME i są wymagane do prawidłowego działania programu PowerShell. @@ -646,42 +648,49 @@ Polecenie cmdlet Export-ModuleMember - Eksportowanie elementów modułu w trybie języka z ograniczeniami zakończy się niepowodzeniem, ponieważ moduł „{0}” ma tryb języka „{1}”, który różni się od bieżącej sesji „{2}”. + Eksportowanie elementów członkowskich modułu w trybie ConstrainedLanguage zakończy się niepowodzeniem, ponieważ moduł „{0}” ma tryb języka „{1}”, który różni się od bieżącej sesji „{2}”. + {StrContains="ConstrainedLanguage"} Niejawny eksport funkcji modułu - Niejawny eksport funkcji dla modułu „{0}” zostanie odrzucony, ponieważ moduł jest zaufany (działa w trybie Full Language), ale sesja nie jest zaufana (działa w trybie Constrained Language). Najlepszym rozwiązaniem jest zawsze eksportowanie funkcji modułu osobno, używając pełnej nazwy. + Eksport niejawnej funkcji dla modułu '{0}' zostanie odrzucony, ponieważ jest on zaufany (działa w trybie FullLanguage), ale sesja nie jest zaufana (działa w trybie ConstrainedLanguage). Najlepszym rozwiązaniem jest zawsze eksportowanie funkcji modułu indywidualnie według pełnej nazwy. + {StrContains="FullLanguage"}{StrContains="ConstrainedLanguage"} Importowanie pliku skryptu jako modułu Importowanie pliku skryptu „{0}” jako modułu będzie niedozwolone w trybie ConstrainedLanguage. + {StrContains="ConstrainedLanguage"} Moduł zawiera operator dot-source - Importowanie modułu „{0}” zakończy się niepowodzeniem w trybie języka z ograniczeniami, ponieważ eksportuje funkcje przy użyciu symboli wieloznacznych, a jednocześnie używa operatora dot-source. + Importowanie modułu „{0}” zakończy się niepowodzeniem w trybie ConstrainedLanguage, ponieważ eksportuje funkcje przy użyciu symboli wieloznacznych, a jednocześnie używa operatora dot-source. + {StrContains="ConstrainedLanguage"} - „Funkcje eksportowane przez moduł + Funkcje eksportowane przez moduł - Moduł „{0}” eksportuje funkcje przy użyciu symboli wieloznacznych w nazwie. Wszystkie nazwy funkcji zagnieżdżonych modułów zostaną usunięte podczas działania w trybie języka z ograniczeniami. + Moduł '{0}' eksportuje funkcje przy użyciu symboli wieloznacznych nazwy. Wszystkie zagnieżdżone nazwy funkcji modułu zostaną usunięte podczas działania w trybie ConstrainedLanguage. + {StrContains="ConstrainedLanguage"} - „Polecenie cmdlet New-Module + Polecenie cmdlet New-Module - Nowy moduł z niezaufanej sesji języka z ograniczeniami będzie blokowany przed udostępnianiem bloku skryptu FullLanguage. + Nowy moduł z niezaufanej sesji ConstrainedLanguage będzie blokowany przed udostępnianiem bloku skryptu FullLanguage. + {StrContains="ConstrainedLanguage"}{StrContains="FullLanguage"} - „Niezgodne tryby języka modułu + Niezgodne tryby języka modułu - Trwa ładowanie modułu zależnego, który ma inny tryb języka niż moduł nadrzędny. W trybie Constrained Language nie będzie to dozwolone. + Trwa ładowanie modułu zależnego, który ma inny tryb języka niż moduł nadrzędny. W trybie ConstrainedLanguage nie będzie to dozwolone. + {StrContains="ConstrainedLanguage"} \ No newline at end of file diff --git a/src/System.Management.Automation/resources/pl/ParameterBinderStrings.pl.resx b/src/System.Management.Automation/resources/pl/ParameterBinderStrings.pl.resx index 60bd82659ab..671e7a97a70 100644 --- a/src/System.Management.Automation/resources/pl/ParameterBinderStrings.pl.resx +++ b/src/System.Management.Automation/resources/pl/ParameterBinderStrings.pl.resx @@ -250,12 +250,14 @@ Wywołanie metody lub właściwości jest niedozwolone - Wywołanie metody lub właściwości „{0}” w typie „{1}” nie będzie dozwolone w trybie ograniczonego języka dla niezaufanych skryptów. + Wywołanie metody lub właściwości '{0}' na typie '{1}' nie będzie dozwolone w trybie ConstrainedLanguage dla niezaufanych skryptów. + {StrContains="ConstrainedLanguage"} Tworzenie typu jest niedozwolone - Tworzenie typu „{0}” nie będzie dozwolone podczas wiązania parametrów w trybie ograniczonego języka dla niezaufanych skryptów. + Tworzenie '{0}' typu nie będzie dozwolone podczas tworzenia powiązania parametrów w trybie ConstrainedLanguage dla niezaufanych skryptów. + {StrContains="ConstrainedLanguage"} \ No newline at end of file diff --git a/src/System.Management.Automation/resources/pl/ParserStrings.pl.resx b/src/System.Management.Automation/resources/pl/ParserStrings.pl.resx index eb4d41313f6..d6bf3e670a1 100644 --- a/src/System.Management.Automation/resources/pl/ParserStrings.pl.resx +++ b/src/System.Management.Automation/resources/pl/ParserStrings.pl.resx @@ -402,7 +402,8 @@ Poprawna forma to: ForEach ($a in $b) {...} Przetwarzanie zostało zatrzymane, ponieważ skrypt jest zbyt złożony. - Składnia nie jest obsługiwana przez ten obszar działania. Może się tak zdarzyć, jeśli obszar działania jest w trybie bez języka. + Składnia nie jest obsługiwana przez ten obszar działania. Może się tak zdarzyć, jeśli obszar działania jest w trybie NoLanguage. + {StrContains="NoLanguage"} Kombinacja opcji z operatorem -split jest nieprawidłowa. @@ -580,85 +581,112 @@ Poprawna forma to: ForEach ($a in $b) {...} Użyj znaku { zamiast { w nazwach zmiennych. - Sekcja danych nie ma bloku instrukcji. + Sekcja Data nie ma bloku instrukcji. + {StrContains="Data"} - Parametr „{0}” sekcji danych jest nieprawidłowy. Prawidłowym parametrem sekcji danych jest SupportedCommand. + Parametr „{0}” sekcji Data jest nieprawidłowy. Prawidłowym parametrem sekcji Data jest SupportedCommand. + {StrContains="Data"}{StrContains="SupportedCommand"} - Odwołania do tablic nie są dozwolone w trybie języka z ograniczeniami ani w sekcji danych. + Odwołania do tablic nie są dozwolone w trybie RestrictedLanguage ani w sekcji Data. + {StrContains="RestrictedLanguage"}{StrContains="Data"} - Instrukcje przypisania nie są dozwolone w trybie języka z ograniczeniami ani w sekcji danych. + Instrukcje przypisania nie są dozwolone w trybie RestrictedLanguage ani w sekcji Data. + {StrContains="RestrictedLanguage"}{StrContains="Data"} - Przekierowanie nie jest dozwolone w trybie języka z ograniczeniami ani w sekcji danych. + Przekierowanie nie jest dozwolone w trybie RestrictedLanguage ani w sekcji Data. + {StrContains="RestrictedLanguage"}{StrContains="Data"} - Instrukcje Do i While nie są dozwolone w trybie języka z ograniczeniami ani w sekcji danych. + Instrukcje Do i While nie są dozwolone w trybie RestrictedLanguage ani w sekcji Data. + {StrContains="Do"}{StrContains="While"}{StrContains="RestrictedLanguage"}{StrContains="Data"} - Ciągi rozszerzalne nie są dozwolone w trybie języka z ograniczeniami ani w sekcji danych. + Ciągi rozszerzalne nie są dozwolone w trybie RestrictedLanguage ani w sekcji Data. + {StrContains="RestrictedLanguage"}{StrContains="Data"} - Operator „{0}” nie jest dozwolony w trybie języka z ograniczeniami ani w sekcji danych. + Operator '{0}' jest niedozwolony w trybie RestrictedLanguage lub sekcji Data. + {StrContains="RestrictedLanguage"}{StrContains="Data"} - Instrukcja Trap nie jest dozwolona w trybie języka z ograniczeniami ani w sekcji danych. + Instrukcja Trap nie jest dozwolona w trybie RestrictedLanguage ani w sekcji Data. + {StrContains="Trap"}{StrContains="RestrictedLanguage"}{StrContains="Data"} - Instrukcja Try nie jest dozwolona w trybie języka z ograniczeniami ani w sekcji danych. + Instrukcja Try nie jest dozwolona w trybie RestrictedLanguage ani w sekcji Data. + {StrContains="Try"}{StrContains="RestrictedLanguage"}{StrContains="Data"} - Instrukcje sterowania przepływem, takie jak Break, Continue, Return, Exit i Throw, są niedozwolone w trybie języka z ograniczeniami ani w sekcji danych. + Instrukcje kontrolowania przepływów, takie jak Break, Continue, Return, Exit i Throw, są niedozwolone w trybie RestrictedLanguage ani w sekcji Data. + {StrContains="Break"}{StrContains="Continue"}{StrContains="Return"}{StrContains="Exit"}{StrContains="Throw"}{StrContains="RestrictedLanguage"}{StrContains="Data"} - Polecenia ForEach nie są dozwolone w trybie języka z ograniczeniami ani w sekcji danych. + Instrukcje Foreach nie są dozwolone w trybie RestrictedLanguage ani w sekcji Data. + {StrContains="Foreach"}{StrContains="RestrictedLanguage"}{StrContains="Data"} - Instrukcje For i While nie są dozwolone w trybie języka z ograniczeniami ani w sekcji danych. + Instrukcje For i While nie są dozwolone w trybie RestrictedLanguage ani w sekcji Data. + {StrContains="For"}{StrContains="While"}{StrContains="RestrictedLanguage"}{StrContains="Data"} - Deklaracje funkcji nie są dozwolone w trybie języka z ograniczeniami ani w sekcji danych. + Deklaracje Function nie są dozwolone w trybie RestrictedLanguage ani w sekcji Data. + {StrContains="Function"}{StrContains="RestrictedLanguage"}{StrContains="Data"} - Wywołania metod nie są dozwolone w trybie języka z ograniczeniami ani w sekcji danych. + Wywołania metod nie są dozwolone w trybie RestrictedLanguage ani w sekcji Data. + {StrContains="RestrictedLanguage"}{StrContains="Data"} - Deklaracje parametrów nie są dozwolone w trybie języka z ograniczeniami ani w sekcji danych. + Deklaracje parametrów nie są dozwolone w trybie RestrictedLanguage ani w sekcji Data. + {StrContains="RestrictedLanguage"}{StrContains="Data"} - Odwołania do właściwości nie są dozwolone w trybie języka z ograniczeniami ani w sekcji danych. + Odwołania do właściwości nie są dozwolone w trybie RestrictedLanguage ani w sekcji Data. + {StrContains="RestrictedLanguage"}{StrContains="Data"} - Bloki skryptu nie są dozwolone w trybie języka z ograniczeniami ani w sekcji danych. + Bloki skryptu nie są dozwolone w trybie RestrictedLanguage ani w sekcji Data. + {StrContains="RestrictedLanguage"}{StrContains="Data"} - Instrukcja Switch nie jest dozwolona w trybie języka z ograniczeniami ani w sekcji danych. + Instrukcja Switch nie jest dozwolona w trybie RestrictedLanguage ani w sekcji Data. + {StrContains="Switch"}{StrContains="RestrictedLanguage"}{StrContains="Data"} - Odwołujesz się do zmiennej, do której nie można się odwoływać w trybie ograniczonego języka lub w sekcji danych. Zmienne, do których można się odwoływać, obejmują następujące elementy: {0}. + Odwołujesz się do zmiennej, do której nie można się odwoływać w trybie RestrictedLanguage lub w sekcji Data. Zmienne, do których można się odwoływać, obejmują następujące elementy: {0}. + {StrContains="RestrictedLanguage"}{StrContains="Data"} - Polecenie „{0}” nie jest dozwolone w trybie języka z ograniczeniami ani w sekcji danych. + Polecenie '{0}' jest niedozwolone w trybie RestrictedLanguage lub sekcji Data. + {StrContains="RestrictedLanguage"}{StrContains="Data"} - Instrukcja danych nie jest dozwolona w trybie języka z ograniczeniami ani w innej sekcji danych. + Instrukcja Data nie jest dozwolona w trybie RestrictedLanguage ani w innej sekcji Data. + {StrContains="RestrictedLanguage"}{StrContains="Data"} - Brak wartości parametru SupportedCommand w sekcji danych. Podaj do tego parametru nazwę polecenia cmdlet lub funkcji. + Brak wartości parametru SupportedCommand w sekcji Data. Podaj do tego parametru nazwę polecenia cmdlet lub funkcji. + {StrContains="SupportedCommand"}{StrContains="Data"} - Blok instrukcji Begin, blok instrukcji Process lub instrukcja parametru nie są dozwolone w sekcji danych. + Blok instrukcji Begin, blok instrukcji Process lub instrukcja Param nie są dozwolone w sekcji Data. + {StrContains="Begin"}{StrContains="Process"}{StrContains="Param"}{StrContains="Data"} - Wyniki mnożenia ciągów zawierające większą liczbę znaków niż „{0}” są niedozwolone w trybie ograniczonego języka lub w sekcji danych. + Wyniki mnożenia ciągów zawierające większą liczbę znaków niż „{0}” są niedozwolone w trybie RestrictedLanguage lub w sekcji Data. + {StrContains="RestrictedLanguage"}{StrContains="Data"} - Mnożenie tablicy, które daje więcej niż liczba elementów {0}, jest niedozwolone w trybie języka z ograniczeniami ani w sekcji danych. + Mnożenie tablicy, które daje więcej elementów niż {0}, jest niedozwolone w trybie RestrictedLanguage ani w sekcji Data. + {StrContains="RestrictedLanguage"}{StrContains="Data"} - Pozyskiwanie danych za pomocą kodu źródłowego nie jest dozwolone w trybie języka z ograniczeniami ani w sekcji danych. + Pozyskiwanie Data za pomocą kodu źródłowego nie jest dozwolone w trybie RestrictedLanguage ani w sekcji Data. + {StrContains="RestrictedLanguage"}{StrContains="Data"} Argument atrybutu musi być stałą albo blokiem skryptu. @@ -721,10 +749,12 @@ Poprawna forma to: ForEach ($a in $b) {...} Klucz o wartości null jest niedozwolony w literale skrótu. - Atrybuty nie są dozwolone w trybie języka z ograniczeniami ani w sekcji danych. + Atrybuty nie są dozwolone w trybie RestrictedLanguage ani w sekcji Data. + {StrContains="RestrictedLanguage"}{StrContains="Data"} - Typ {0} nie jest dozwolony w trybie języka z ograniczeniami ani w sekcji danych. + Typ {0} nie jest dozwolony w trybie RestrictedLanguage ani w sekcji Data. + {StrContains="RestrictedLanguage"}{StrContains="Data"} Element „{0}” to właściwość ReadOnly. @@ -784,7 +814,8 @@ Poprawna forma to: ForEach ($a in $b) {...} Brak treści instrukcji po słowie kluczowym „{0}”. - Bloki równoległe i sekwencyjne są niedozwolone w trybie ograniczonego języka lub w sekcji danych. + Bloki Parallel i Sequence są niedozwolone w trybie RestrictedLanguage lub w sekcji Data. + {StrContains="Parallel"}{StrContains="Sequence"}{StrContains="RestrictedLanguage"}{StrContains="Data"} Nieoczekiwane słowo kluczowe „{0}”. @@ -796,7 +827,8 @@ Poprawna forma to: ForEach ($a in $b) {...} Metody nie można wywoływać. - Nie można przekonwertować tablicy skrótów na obiekt następującego typu: {0}. Konwersja tablicy skrótów na obiekt nie jest obsługiwana w trybie języka z ograniczeniami ani w sekcji danych. + Nie można przekonwertować obiektu skrótu na obiekt następującego typu: {0}. Konwersja obiektu skrótu na obiekt nie jest obsługiwana w trybie RestrictedLanguage ani w sekcji Data. + {StrContains="RestrictedLanguage"}{StrContains="Data"} Argument musi być stały. @@ -823,7 +855,7 @@ Poprawna forma to: ForEach ($a in $b) {...} Nie można wywołać metody. Wywołanie metody jest obsługiwane tylko w przypadku typów podstawowych w tym trybie języka. - Nie można ustawić właściwości. W tym trybie językowym ustawienia właściwości są obsługiwane tylko w typach podstawowych. + Nie można ustawić właściwości. W tym trybie języka ustawienia właściwości są obsługiwane tylko w typach podstawowych. Znaleziono nieprawidłową nazwę atrybutu dla zasobu „{0}”. Nazwa atrybutu musi być prostym ciągiem znaków i nie może zawierać zmiennych ani wyrażeń. Zastąp element „{1}” prostym ciągiem znaków. @@ -842,7 +874,8 @@ Poprawna forma to: ForEach ($a in $b) {...} Nie znaleziono pliku schematu {0}. Sprawdź, czy wszystkie moduły określone w instrukcji konfiguracji zawierają plik schema.mof, a następnie spróbuj uruchomić skrypt ponownie. - Nie można zdefiniować sekcji danych. W tym trybie języka nie jest obsługiwana definicja dodatkowych obsługiwanych poleceń. + Nie można zdefiniować Data sekcji. Definicja dodatkowych obsługiwanych poleceń nie jest obsługiwana w tym trybie języka. + {StrContains="Data"} Brak znaku „{” w instrukcji konfiguracji. @@ -935,7 +968,8 @@ ModuleVersion : Wersja modułu do zaimportowania. Jeśli element jest używany, Nie można załadować zasobu „{0}”: Nie znaleziono zasobu. - Słowo kluczowe konfiguracji nie jest dozwolone w trybie constrainedLanguage. + Słowo kluczowe konfiguracji nie jest dozwolone w trybie ConstrainedLanguage. + {StrContains="ConstrainedLanguage"} Nazwa konfiguracji „{0}” jest nieprawidłowa. Nazwy standardowe mogą zawierać tylko litery (a-z, A-Z), cyfry (0-9), kropkę (.), łącznik (-) i podkreślenie (_). Nazwa nie może mieć wartości null ani być pusta i powinna zaczynać się od litery. @@ -1320,7 +1354,8 @@ ModuleVersion : Wersja modułu do zaimportowania. Jeśli element jest używany, Nie można używać operatorów „&” ani „ ” do wywoływania polecenia w zakresie modułu między granicami języka. - Słowo kluczowe klasy nie jest dozwolone w trybie ConstrainedLanguage. + Słowo kluczowe Class nie jest dozwolone w trybie ConstrainedLanguage. + {StrContains="Class"}{StrContains="ConstrainedLanguage"} Brak znaku „:” w wyrażeniu trójskładnikowym. @@ -1338,37 +1373,43 @@ ModuleVersion : Wersja modułu do zaimportowania. Jeśli element jest używany, Słowo kluczowe konfiguracji analizatora składni - Słowo kluczowe konfiguracji nie będzie dozwolone w trybie języka z ograniczeniami dla niezaufanego skryptu. + Słowo kluczowe Configuration nie będzie dozwolone w trybie ConstrainedLanguage dla niezaufanego skryptu. + {StrContains="Configuration"}{StrContains="ConstrainedLanguage"} Słowo kluczowe klasy analizatora składni - Słowo kluczowe klasy nie będzie dozwolone w trybie języka z ograniczeniami dla niezaufanego skryptu. + Słowo kluczowe Class nie będzie dozwolone w trybie ConstrainedLanguage dla niezaufanego skryptu. + {StrContains="Class"}{StrContains="ConstrainedLanguage"} Sekcja danych analizatora składni SupportedCommand - Sekcja danych, która zawiera parametr SupportedCommand, będzie niedozwolona w trybie języka z ograniczeniami dla niezaufanego skryptu. + Sekcja Data, która zawiera parametr SupportedCommand, będzie niedozwolona w trybie ConstrainedLanguage dla niezaufanego skryptu. + {StrContains="Data"}{StrContains="SupportedCommand"}{StrContains="ConstrainedLanguage"} Operator wywołania w zakresie modułu - Operator wywołania zakresu modułu zostanie odrzucony w trybie języka z ograniczeniami. + Operator wywołania zakresu modułu zostanie odrzucony w trybie ConstrainedLanguage. + {StrContains="ConstrainedLanguage"} Wywołanie metody dla słowa kluczowego ForEach - Użycie słowa kluczowego ForEach spowoduje niepowodzenie wywołania metody elementu iteracji „{0}” w trybie języka z ograniczeniami. + Użycie słowa kluczowego ForEach nie powiedzie się '{0}' wywołaniu metody elementu iteracji w trybie ConstrainedLanguage. + {StrContains="ForEach"}{StrContains="ConstrainedLanguage"} Obliczanie wyrażenia może zakończyć się niepowodzeniem - Utworzenie krokowego potoku z bloku skryptu może wymagać oceny niektórych wyrażeń w bloku skryptu. W trybie języka z ograniczeniami ocena wyrażenia zakończy się niepowodzeniem i zwróci wartość „null”, chyba że wyrażenie reprezentuje wartość stałą. + Utworzenie krokowego potoku z bloku skryptu może wymagać oceny niektórych wyrażeń w bloku skryptu. Ocena wyrażenia w trybie dyskretnym zakończy się niepowodzeniem i zwróci wartość „null” w trybie ConstrainedLanguage, chyba że wyrażenie reprezentuje wartość stałą. + {StrContains="ConstrainedLanguage"} Słowo kluczowe konfiguracji nie jest obsługiwane na procesorach ARM64. diff --git a/src/System.Management.Automation/resources/pl/RemotingErrorIdStrings.pl.resx b/src/System.Management.Automation/resources/pl/RemotingErrorIdStrings.pl.resx index 744eedd7cc1..d8b977db628 100644 --- a/src/System.Management.Automation/resources/pl/RemotingErrorIdStrings.pl.resx +++ b/src/System.Management.Automation/resources/pl/RemotingErrorIdStrings.pl.resx @@ -1012,7 +1012,7 @@ Wszystkie sesje WinRM połączone z konfiguracjami sesji programu PowerShell, ta Identyfikator używany do unikatowego identyfikowania tego dokumentu - Domyślne ustawienia typu sesji mają być stosowane dla tej konfiguracji sesji. Może mieć wartość „RestrictedRemoteServer” (rekomendowane), „Empty” lub „Default” + Domyślne ustawienia typu sesji mają być stosowane dla tej konfiguracji sesji. Może mieć wartość „RestrictedRemoteServer” (zalecane), „Empty” lub „Default” Katalog do umieszczania transkrypcji sesji dla tej konfiguracji sesji @@ -1021,7 +1021,8 @@ Wszystkie sesje WinRM połączone z konfiguracjami sesji programu PowerShell, ta Określa, czy uruchomić tę konfigurację sesji jako konto administratora maszyny (wirtualnej) - Tryb językowy do zastosowania w przypadku zastosowania do sesji. Może to być „NoLanguage” (rekomendowane), „RestrictedLanguage”, „RestrictededLanguage” lub „FullLanguage” + Tryb języka do zastosowania w przypadku zastosowania do sesji. Może to być „NoLanguage” (zalecane), „RestrictedLanguage”, „ConstrainedLanguage” lub „FullLanguage” + {StrContains="NoLanguage"}{StrContains="RestrictedLanguage"}{StrContains="ConstrainedLanguage"}{StrContains="FullLanguage"} Moduły do zaimportowania po zastosowaniu do sesji @@ -1342,10 +1343,10 @@ Wszystkie sesje WinRM połączone z konfiguracjami sesji programu PowerShell, ta Sesja PSSession {0} została utworzona przy użyciu parametru EnableNetworkAccess i można ją ponownie połączyć tylko z komputera lokalnego. - Nie można uruchomić zadania. Tryb językowy dla tej sesji jest niezgodny z trybem języka w całym systemie. + Nie można uruchomić zadania. Tryb języka dla tej sesji jest niezgodny z trybem języka w całym systemie. - Nie można utworzyć obszaru działania. Tryb językowy dla tej konfiguracji jest niezgodny z trybem języka dla całego systemu. + Nie można utworzyć obszaru działania. Tryb języka dla tej konfiguracji jest niezgodny z trybem języka w całym systemie. Nie można zamknąć zagnieżdżonego potoku, ponieważ potok nie jest w stanie zagnieżdżonym. @@ -1721,7 +1722,8 @@ Proces klienta SSH zakończył się przed nawiązania połączenia. Obliczanie wyrażenia może zakończyć się niepowodzeniem - Utworzenie obiektu programu PowerShell na podstawie bloku skryptu może wymagać oceny niektórych wyrażeń w bloku skryptu. Obliczanie wyrażenia w trybie dyskretnym zakończy się niepowodzeniem i zwróci wartość „null” w trybie ograniczonego języka, chyba że wyrażenie reprezentuje wartość stałą. + Utworzenie obiektu programu PowerShell na podstawie bloku skryptu może wymagać oceny niektórych wyrażeń w bloku skryptu. Obliczanie wyrażenia w trybie dyskretnym zakończy się niepowodzeniem i zwróci wartość „null” w trybie ConstrainedLanguage, chyba że wyrażenie reprezentuje wartość stałą. + {StrContains="ConstrainedLanguage"} Nie można pobrać stanu maszyny wirtualnej funkcji Hyper-V. Wartość była typu {0}, ale oczekiwano, że będzie to Microsoft.HyperV.PowerShell.VMState lub System.String. diff --git a/src/System.Management.Automation/resources/pl/RunspacePoolStrings.pl.resx b/src/System.Management.Automation/resources/pl/RunspacePoolStrings.pl.resx index 2f99d953d42..6e6e406a23d 100644 --- a/src/System.Management.Automation/resources/pl/RunspacePoolStrings.pl.resx +++ b/src/System.Management.Automation/resources/pl/RunspacePoolStrings.pl.resx @@ -130,7 +130,7 @@ Stan puli obszarów działania nie jest prawidłowy dla tej operacji. - Nie można wykonać operacji, ponieważ obszar działania nie jest w stanie „{0}”. Bieżący stan to „{1}”. + Nie można wykonać operacji, ponieważ pula obszarów działania nie jest w stanie „{0}”. Bieżący stan to „{1}”. Nie można otworzyć puli obszarów działania, ponieważ nie jest ona w stanie „'BeforeOpen”. Bieżący stan to „{0}”. @@ -148,7 +148,7 @@ Ten obszar działania nie obsługuje operacji rozłączania i ponownego łączenia. - Nie można wykonać operacji, ponieważ obszar działania nie jest w stanie Disconnected. + Nie można wykonać operacji, ponieważ pula obszarów działania nie jest w stanie Disconnected. Operacja Disconnect nie jest obsługiwana na serwerze. Serwer musi działać w programie PowerShell 3.0 lub nowszym, aby obsługiwać rozłączanie zdalnej puli obszarów działania. @@ -157,7 +157,7 @@ Ta pula obszarów działania {0} nie jest skonfigurowana do udostępniania odłączonych obiektów programu PowerShell dla poleceń uruchamianych na serwerze zdalnym. Użyj statycznej metody GetRunspacePools() klasy RunspacePool, aby odpytać serwer i zwrócić obiekty puli obszarów działania skonfigurowane do tego celu. - Nie można połączyć tej puli obszarów działania, ponieważ odpowiadająca jej pula po stronie serwera jest połączona z innym klientem. + Nie można połączyć tej puli obszarów działania, ponieważ odpowiadająca jej pula obszarów działania po stronie serwera jest połączona z innym klientem. ResetRunspaceState nie jest obsługiwany na serwerze. Serwer musi działać w programie PowerShell 5.0 lub nowszym. diff --git a/src/System.Management.Automation/resources/pl/RunspaceStrings.pl.resx b/src/System.Management.Automation/resources/pl/RunspaceStrings.pl.resx index 06d3e00bdb2..eedc900f35d 100644 --- a/src/System.Management.Automation/resources/pl/RunspaceStrings.pl.resx +++ b/src/System.Management.Automation/resources/pl/RunspaceStrings.pl.resx @@ -184,7 +184,8 @@ Sesja jest zajęta. Połączysz się z nią, gdy tylko będzie dostępna. Aby anulować polecenie Enter-PSSession, naciśnij Ctrl-C. - Nie można wykonać polecenia. Wywołanie skryptu nie jest obsługiwane w tej konfiguracji sesji. Może się tak zdarzyć, jeśli konfiguracja sesji jest w trybie bez języka. + Nie można wykonać polecenia. Wywołanie skryptu nie jest obsługiwane w tej konfiguracji sesji. Taka sytuacja może wystąpić, jeśli konfiguracja sesji jest w trybie NoLanguage. + {StrContains="NoLanguage"} Nie można używać operacji rozłączania i łączenia w lokalnych obszarach uruchomieniowych. diff --git a/src/System.Management.Automation/resources/pl/SecuritySupportStrings.pl.resx b/src/System.Management.Automation/resources/pl/SecuritySupportStrings.pl.resx index 22360c58ccd..704fe4cbe97 100644 --- a/src/System.Management.Automation/resources/pl/SecuritySupportStrings.pl.resx +++ b/src/System.Management.Automation/resources/pl/SecuritySupportStrings.pl.resx @@ -164,5 +164,6 @@ Plik skryptu „{0}” nie jest zaufany przez zasady i zostanie uruchomiony w trybie ConstrainedLanguage. + {StrContains="ConstrainedLanguage"} \ No newline at end of file diff --git a/src/System.Management.Automation/resources/pl/SessionStateStrings.pl.resx b/src/System.Management.Automation/resources/pl/SessionStateStrings.pl.resx index 97a89213d44..f58e56697a2 100644 --- a/src/System.Management.Automation/resources/pl/SessionStateStrings.pl.resx +++ b/src/System.Management.Automation/resources/pl/SessionStateStrings.pl.resx @@ -653,5 +653,6 @@ Zmiana zakresu zmiennej „{0}” na wartość AllScope lub utworzenie takiej zmiennej będzie blokowane w trybie ConstrainedLanguage. + {StrContains="ConstrainedLanguage"} \ No newline at end of file diff --git a/src/System.Management.Automation/resources/pt-BR/AutomationExceptions.pt-BR.resx b/src/System.Management.Automation/resources/pt-BR/AutomationExceptions.pt-BR.resx index 18d6f475628..b1bef1a988f 100644 --- a/src/System.Management.Automation/resources/pt-BR/AutomationExceptions.pt-BR.resx +++ b/src/System.Management.Automation/resources/pt-BR/AutomationExceptions.pt-BR.resx @@ -205,6 +205,7 @@ Compiled Script Block Dot Source - Script block '{0}' invocation into current scope will be disallowed in Constrained Language mode. Script language mode: {1}, Context language mode: {2}. + A invocação do bloco de script '{0}' no escopo atual não será permitida no modo ConstrainedLanguage. Modo de linguagem de script: {1}, Modo de linguagem de contexto: {2}. + {StrContains="ConstrainedLanguage"} \ No newline at end of file diff --git a/src/System.Management.Automation/resources/pt-BR/CatalogStrings.pt-BR.resx b/src/System.Management.Automation/resources/pt-BR/CatalogStrings.pt-BR.resx index 7d51fe48e59..13e9145c1aa 100644 --- a/src/System.Management.Automation/resources/pt-BR/CatalogStrings.pt-BR.resx +++ b/src/System.Management.Automation/resources/pt-BR/CatalogStrings.pt-BR.resx @@ -151,7 +151,8 @@ A versão do catálogo é inválida. Damos suporte apenas às versões {0} e {1} do catálogo. - '{0}' is a version catalog that uses SHA0 or SHA1. Consider regenerating this catalog with '-CatalogVersion 2'. + '{0}' é um catálogo de versão 1 que usa o algoritmo de hash fraco SHA-1. Considere gerar novamente esse catálogo com '-CatalogVersion 2'. + {StrContains="SHA-1"}{StrContains="-CatalogVersion 2"} Não foi possível abrir o arquivo de definição de catálogo. diff --git a/src/System.Management.Automation/resources/pt-BR/CommandBaseStrings.pt-BR.resx b/src/System.Management.Automation/resources/pt-BR/CommandBaseStrings.pt-BR.resx index 4e6380032ec..d9cc5a33a94 100644 --- a/src/System.Management.Automation/resources/pt-BR/CommandBaseStrings.pt-BR.resx +++ b/src/System.Management.Automation/resources/pt-BR/CommandBaseStrings.pt-BR.resx @@ -232,12 +232,14 @@ Reviewed by TArcher on 2010-07-20 Verificação de dot-source do processamento de bloco de script - O processamento de dot-source para o bloco de script "{0}" falhará no modo de linguagem restrita porque o modo de linguagem "{1}" não corresponde ao modo de linguagem atual "{2}". + O processamento Dot-Source do bloco de script '{0}' falhará no modo ConstrainedLanguage porque seu modo de linguagem '{1}' não corresponde ao modo de linguagem atual '{2}'. + {StrContains="ConstrainedLanguage"} Pesquisador de comandos O comando "{0}" no módulo "{1}" não é confiável e não estará acessível no modo ConstrainedLanguage. + {StrContains="ConstrainedLanguage"} \ No newline at end of file diff --git a/src/System.Management.Automation/resources/pt-BR/EventResource.pt-BR.resx b/src/System.Management.Automation/resources/pt-BR/EventResource.pt-BR.resx index 47ef2e8b8e6..f9f4cf3f084 100644 --- a/src/System.Management.Automation/resources/pt-BR/EventResource.pt-BR.resx +++ b/src/System.Management.Automation/resources/pt-BR/EventResource.pt-BR.resx @@ -135,7 +135,7 @@ WorkflowId: {0} - O pool de runspace de fluxo de trabalho foi criado. + O pool de runspaces de fluxo de trabalho foi criado. WorkflowId: {0} ManagedNode: {1} diff --git a/src/System.Management.Automation/resources/pt-BR/ExtendedTypeSystem.pt-BR.resx b/src/System.Management.Automation/resources/pt-BR/ExtendedTypeSystem.pt-BR.resx index 8e034fa151b..9e0c68d492e 100644 --- a/src/System.Management.Automation/resources/pt-BR/ExtendedTypeSystem.pt-BR.resx +++ b/src/System.Management.Automation/resources/pt-BR/ExtendedTypeSystem.pt-BR.resx @@ -395,12 +395,14 @@ PS> [System.Collections.Generic.Comparer``1]::get_Default() Extended Type System Hashtable Conversion - Type conversion from HashTable to '{0}' will not be allowed in ConstrainedLanguage mode. + A conversão de tipo de HashTable para '{0}' não será permitida no modo ConstrainedLanguage. + {StrContains="ConstrainedLanguage"} Extended Type System Hashtable Conversion - Type conversion from '{0}' to '{1}' will not be allowed in ConstrainedLanguage mode. + A conversão de tipo de '{0}' para '{1}' não será permitida no modo ConstrainedLanguage. + {StrContains="ConstrainedLanguage"} \ No newline at end of file diff --git a/src/System.Management.Automation/resources/pt-BR/InternalCommandStrings.pt-BR.resx b/src/System.Management.Automation/resources/pt-BR/InternalCommandStrings.pt-BR.resx index 377a1f19d70..aeff02fedc1 100644 --- a/src/System.Management.Automation/resources/pt-BR/InternalCommandStrings.pt-BR.resx +++ b/src/System.Management.Automation/resources/pt-BR/InternalCommandStrings.pt-BR.resx @@ -145,13 +145,15 @@ Input name "{0}" cannot be resolved to a method. - Cannot invoke a method in the restricted language mode. + Não é possível invocar um método no modo RestrictedLanguage. + {StrContains="RestrictedLanguage"} The -WhatIf and -Confirm parameters are not supported for script blocks. - The '{0}' operation is not allowed in the RestrictedLanguage mode. + A operação '{0}' não é permitida no modo RestrictedLanguage. + {StrContains="RestrictedLanguage"} An operator is required to compare the two specified values. Include a valid operator in the command, and then try the command again. For example, Get-Process | Where-Object -Property Name -eq Idle @@ -188,6 +190,7 @@ ErrorAction, WarningAction, InformationAction, PipelineVariable ForEach-Object Cmdlet - Method invocation on type '{0}' will not be allowed when run in Constrained Language mode. + A invocação de método no tipo '{0}' não será permitida quando executada no modo ConstrainedLanguage. + {StrContains="ConstrainedLanguage"} \ No newline at end of file diff --git a/src/System.Management.Automation/resources/pt-BR/Metadata.pt-BR.resx b/src/System.Management.Automation/resources/pt-BR/Metadata.pt-BR.resx index f3dbca846db..6f3607fb736 100644 --- a/src/System.Management.Automation/resources/pt-BR/Metadata.pt-BR.resx +++ b/src/System.Management.Automation/resources/pt-BR/Metadata.pt-BR.resx @@ -262,6 +262,7 @@ ValidateTrustedData Attribute Check Failure - The parameter argument '{0}' is not trusted and will fail the ValidateTrustedData parameter attribute check in Constrained Language mode. + O argumento de parâmetro '{0}' não é confiável e não passará na verificação do atributo de parâmetro ValidateTrustedData no modo ConstrainedLanguage. + {StrContains="ValidateTrustedData"}{StrContains="ConstrainedLanguage"} \ No newline at end of file diff --git a/src/System.Management.Automation/resources/pt-BR/Modules.pt-BR.resx b/src/System.Management.Automation/resources/pt-BR/Modules.pt-BR.resx index 8d63fbe6d74..2312d9d72b5 100644 --- a/src/System.Management.Automation/resources/pt-BR/Modules.pt-BR.resx +++ b/src/System.Management.Automation/resources/pt-BR/Modules.pt-BR.resx @@ -448,13 +448,13 @@ O valor especificado "{0}" é inválido. Tente novamente com um valor válido. - As funções a serem exportadas deste módulo, para melhor desempenho, não usam curingas e não excluem a entrada, usem uma matriz vazia se não houver funções para exportar. + As funções a serem exportadas deste módulo: para melhor desempenho, não use curingas nem exclua a entrada; use uma matriz vazia se não houver funções para exportar. - Aliases a serem exportados deste módulo, para melhor desempenho, não usam curingas e não excluem a entrada, usem uma matriz vazia se não houver aliases para exportar. + Aliases a serem exportados deste módulo: para melhor desempenho, não use curingas nem exclua a entrada; use uma matriz vazia se não houver aliases para exportar. - Os cmdlets a serem exportados deste módulo, para melhor desempenho, não usam curingas e não excluem a entrada, usem uma matriz vazia se não houver cmdlets para exportar. + Os cmdlets a serem exportados deste módulo: para melhor desempenho, não use curingas nem exclua a entrada; use uma matriz vazia se não houver cmdlets para exportar. Variáveis a serem exportadas deste módulo @@ -626,6 +626,7 @@ A importação de arquivos *.ps1 como módulos não é permitida no modo ConstrainedLanguage. + {StrContains="ConstrainedLanguage"} Erro ao carregar o módulo de script {0} porque ele tem um modo de linguagem diferente do manifesto do módulo. O modo de idioma do manifesto é {1} e o modo de linguagem do módulo é {2}. Verifique se todos os arquivos de módulo estão assinados ou, de outra forma, parte da configuração da lista de permissões do aplicativo. @@ -634,10 +635,11 @@ Este módulo usa o operador dot-source ao exportar funções usando caracteres curinga e isso não é permitido quando o sistema está sob a imposição de verificação do aplicativo. - Não é possível exportar membros de módulo de um módulo que tenha um modo de idioma diferente da sessão em execução. + Não é possível exportar membros de módulo de um módulo que tenha um modo de linguagem diferente da sessão em execução. Não é possível criar um novo módulo enquanto a sessão estiver no modo ConstrainedLanguage. + {StrContains="ConstrainedLanguage"} Não é possível localizar o módulo interno "{0}" compatível com a edição "Core". Verifique se os módulos internos do PowerShell estão disponíveis. Eles geralmente vêm com o pacote do PowerShell no caminho do módulo $PSHOME e são necessários para que o PowerShell funcione corretamente. @@ -646,42 +648,49 @@ Cmdlet Export-ModuleMember - A exportação de membros do módulo falhará no modo idioma restrito porque o módulo "{0}", tem um modo de idioma "{1}" diferente da sessão atual "{2}". + A exportação de membros do módulo falhará no modo ConstrainedLanguage porque o módulo '{0}' tem um modo de linguagem '{1}' diferente do '{2}' da sessão atual. + {StrContains="ConstrainedLanguage"} Exportação de Função Implícita do Módulo - A exportação de função implícita para o módulo "{0}" será negada porque é confiável (é executada no modo de Idioma Completo), mas a sessão não é confiável (é executada no modo idioma restrito). É uma prática recomendada sempre exportar funções de módulo individualmente por nome completo. + A exportação implícita de funções do módulo '{0}' será negada porque ele é confiável (é executado no modo FullLanguage), mas a sessão não é confiável (é executada no modo ConstrainedLanguage). A melhor prática é sempre exportar as funções do módulo individualmente pelo nome completo. + {StrContains="FullLanguage"}{StrContains="ConstrainedLanguage"} Importando arquivo de script como módulo A importação do arquivo de script "{0}" como um módulo não será permitida no modo ConstrainedLanguage. + {StrContains="ConstrainedLanguage"} Módulo Contém Operador dot-source - A importação do módulo "{0}" falhará no modo idioma restrito porque exporta funções usando caracteres curinga enquanto também usa o operador dot-source. + A importação do módulo '{0}' falhará no modo ConstrainedLanguage porque ele exporta funções usando caracteres curinga e também usa o operador dot-source. + {StrContains="ConstrainedLanguage"} - "Módulo exportando funções + Módulo que Exporta Funções - O módulo "{0}" exporta funções usando caracteres curinga no nome. Todos os nomes de função de módulo aninhados serão removidos durante a execução no modo de Linguagem Restrita. + O módulo '{0}' exporta funções usando caracteres curinga de nome. Todos os nomes de função de módulo aninhados serão removidos durante a execução no modo ConstrainedLanguage. + {StrContains="ConstrainedLanguage"} - "Cmdlet New-Module + New-Module Cmdlet - Um novo módulo de uma sessão de Idioma Restrito não confiável será impedido de fornecer o bloco de script FullLanguage. + Um novo módulo de uma sessão ConstrainedLanguage não confiável será impedido de fornecer o bloco de script FullLanguage. + {StrContains="ConstrainedLanguage"}{StrContains="FullLanguage"} - "Modos de linguagem incompatíveis do módulo + Modos de Linguagem Incompatíveis do Módulo - Um módulo dependente está sendo carregado que tem um modo de idioma diferente do pai. Isso não será permitido quando estiver no modo de Idioma Restrito. + Está sendo carregado um módulo dependente cujo modo de linguagem é diferente do modo do módulo pai. Isso não será permitido no modo ConstrainedLanguage. + {StrContains="ConstrainedLanguage"} \ No newline at end of file diff --git a/src/System.Management.Automation/resources/pt-BR/ParameterBinderStrings.pt-BR.resx b/src/System.Management.Automation/resources/pt-BR/ParameterBinderStrings.pt-BR.resx index e36d85dc05a..f103c899be2 100644 --- a/src/System.Management.Automation/resources/pt-BR/ParameterBinderStrings.pt-BR.resx +++ b/src/System.Management.Automation/resources/pt-BR/ParameterBinderStrings.pt-BR.resx @@ -250,12 +250,14 @@ Método ou Invocação de Propriedade Não Permitido - A invocação de método ou propriedade '{0}' no tipo '{1}' não será permitida no modo de Linguagem Restrita para scripts não confiáveis. + A invocação de '{0}' de Método ou Propriedade no tipo '{1}' não será permitida no modo ConstrainedLanguage para scripts não confiáveis. + {StrContains="ConstrainedLanguage"} Criação de Tipo Não Permitida - A criação do Tipo '{0}' não será permitida durante a associação de parâmetros no modo de Linguagem Restrita para scripts não confiáveis. + A criação do Tipo '{0}' não será permitida durante a associação de parâmetros no modo ConstrainedLanguage para scripts não confiáveis. + {StrContains="ConstrainedLanguage"} \ No newline at end of file diff --git a/src/System.Management.Automation/resources/pt-BR/ParserStrings.pt-BR.resx b/src/System.Management.Automation/resources/pt-BR/ParserStrings.pt-BR.resx index 5610de8daea..11902fa6431 100644 --- a/src/System.Management.Automation/resources/pt-BR/ParserStrings.pt-BR.resx +++ b/src/System.Management.Automation/resources/pt-BR/ParserStrings.pt-BR.resx @@ -402,7 +402,8 @@ The correct form is: foreach ($a in $b) {...} Processing was stopped because the script is too complex. - The syntax is not supported by this runspace. This can occur if the runspace is in no-language mode. + A sintaxe não tem suporte neste runspace. Isso pode ocorrer se o runspace estiver no modo NoLanguage. + {StrContains="NoLanguage"} The combination of options with the -split operator is not valid. @@ -580,85 +581,112 @@ The correct form is: foreach ($a in $b) {...} Use `{ instead of { in variable names. - The Data section is missing its statement block. + O bloco de instruções da seção Data está ausente. + {StrContains="Data"} - The "{0}" parameter of the Data section is not valid. The valid Data section parameter is SupportedCommand. + O parâmetro "{0}" da seção Data não é válido. O parâmetro válido da seção Data é SupportedCommand. + {StrContains="Data"}{StrContains="SupportedCommand"} - Array references are not allowed in restricted language mode or a Data section. + Referências a matrizes não são permitidas no modo RestrictedLanguage ou em uma seção Data. + {StrContains="RestrictedLanguage"}{StrContains="Data"} - Assignment statements are not allowed in restricted language mode or a Data section. + Instruções de atribuição não são permitidas no modo RestrictedLanguage ou em uma seção Data. + {StrContains="RestrictedLanguage"}{StrContains="Data"} - Redirection is not allowed in restricted language mode or a Data section. + O redirecionamento não é permitido no modo RestrictedLanguage ou em uma seção Data. + {StrContains="RestrictedLanguage"}{StrContains="Data"} - The Do and While statements are not allowed in restricted language mode or a Data section. + As instruções Do e While não são permitidas no modo RestrictedLanguage ou em uma seção Data. + {StrContains="Do"}{StrContains="While"}{StrContains="RestrictedLanguage"}{StrContains="Data"} - Expandable strings are not allowed in restricted language mode or a Data section. + Cadeias de caracteres expansíveis não são permitidas no modo RestrictedLanguage ou em uma seção Data. + {StrContains="RestrictedLanguage"}{StrContains="Data"} - The '{0}' operator is not allowed in restricted language mode or a Data section. + O operador '{0}' não é permitido no modo RestrictedLanguage ou em uma seção Data. + {StrContains="RestrictedLanguage"}{StrContains="Data"} - The Trap statement is not allowed in restricted language mode or a Data section. + A instrução Trap não é permitida no modo RestrictedLanguage ou em uma seção Data. + {StrContains="Trap"}{StrContains="RestrictedLanguage"}{StrContains="Data"} - The Try statement is not allowed in restricted language mode or a Data section. + A instrução Try não é permitida no modo RestrictedLanguage ou em uma seção Data. + {StrContains="Try"}{StrContains="RestrictedLanguage"}{StrContains="Data"} - Flow control statements such as Break, Continue, Return, Exit, and Throw are not allowed in restricted language mode or a Data section. + Instruções de controle de fluxo como Break, Continue, Return, Exit e Throw não são permitidas no modo RestrictedLanguage ou em uma seção Data. + {StrContains="Break"}{StrContains="Continue"}{StrContains="Return"}{StrContains="Exit"}{StrContains="Throw"}{StrContains="RestrictedLanguage"}{StrContains="Data"} - Foreach statements are not allowed in restricted language mode or a Data section. + Instruções Foreach não são permitidas no modo RestrictedLanguage ou em uma seção Data. + {StrContains="Foreach"}{StrContains="RestrictedLanguage"}{StrContains="Data"} - For and While statements are not allowed in restricted language mode or a Data section. + Instruções For e While não são permitidas no modo RestrictedLanguage ou em uma seção Data. + {StrContains="For"}{StrContains="While"}{StrContains="RestrictedLanguage"}{StrContains="Data"} - Function declarations are not allowed in restricted language mode or a Data section. + Declarações Function não são permitidas no modo RestrictedLanguage ou em uma seção Data. + {StrContains="Function"}{StrContains="RestrictedLanguage"}{StrContains="Data"} - Method calls are not allowed in restricted language mode or a Data section. + Chamadas de método não são permitidas no modo RestrictedLanguage ou em uma seção Data. + {StrContains="RestrictedLanguage"}{StrContains="Data"} - Parameter declarations are not allowed in restricted language mode or a Data section. + Declarações de parâmetros não são permitidas no modo RestrictedLanguage ou em uma seção Data. + {StrContains="RestrictedLanguage"}{StrContains="Data"} - Property references are not allowed in restricted language mode or a Data section. + Referências a propriedades não são permitidas no modo RestrictedLanguage ou em uma seção Data. + {StrContains="RestrictedLanguage"}{StrContains="Data"} - Script block literals are not allowed in restricted language mode or a Data section. + Literais de bloco de script não são permitidos no modo RestrictedLanguage ou em uma seção Data. + {StrContains="RestrictedLanguage"}{StrContains="Data"} - The switch statement is not allowed in restricted language mode or a Data section. + A instrução Switch não é permitida no modo RestrictedLanguage ou em uma seção Data. + {StrContains="Switch"}{StrContains="RestrictedLanguage"}{StrContains="Data"} - A variable that cannot be referenced in restricted language mode or a Data section is being referenced. Variables that can be referenced include the following: {0}. + Está sendo feita referência a uma variável que não pode ser referenciada no modo RestrictedLanguage ou em uma seção Data. As variáveis que podem ser referenciadas incluem as seguintes: {0}. + {StrContains="RestrictedLanguage"}{StrContains="Data"} - The command '{0}' is not allowed in restricted language mode or a Data section. + O comando '{0}' não é permitido no modo RestrictedLanguage ou em uma seção Data. + {StrContains="RestrictedLanguage"}{StrContains="Data"} - The data statement is not allowed in restricted language mode or another Data section. + A instrução Data não é permitida no modo RestrictedLanguage ou em outra seção Data. + {StrContains="RestrictedLanguage"}{StrContains="Data"} - The SupportedCommand parameter of the Data section is missing a value. Supply a cmdlet or function name to the parameter. + Falta um valor para o parâmetro SupportedCommand da seção Data. Forneça um nome de cmdlet ou de função para o parâmetro. + {StrContains="SupportedCommand"}{StrContains="Data"} - A Begin statement block, Process statement block, or parameter statement is not allowed in a Data section. + Um bloco de instruções Begin, um bloco de instruções Process ou uma instrução Param não é permitido em uma seção Data. + {StrContains="Begin"}{StrContains="Process"}{StrContains="Param"}{StrContains="Data"} - String multiplication results with more than "{0}" characters are not allowed in restricted language mode or a Data section. + Não são permitidos resultados de multiplicação de cadeias de caracteres com mais de "{0}" caracteres no modo RestrictedLanguage ou em uma seção Data. + {StrContains="RestrictedLanguage"}{StrContains="Data"} - Array multiplication resulting in more than {0} elements is not allowed in restricted language mode or a Data section. + A multiplicação de matrizes que resulte em mais de {0} elementos não é permitida no modo RestrictedLanguage ou em uma seção Data. + {StrContains="RestrictedLanguage"}{StrContains="Data"} - Dot sourcing is not allowed in restricted language mode or a Data section. + O dot sourcing não é permitido no modo RestrictedLanguage ou em uma seção Data. + {StrContains="RestrictedLanguage"}{StrContains="Data"} Attribute argument must be a constant or a script block. @@ -721,10 +749,12 @@ The correct form is: foreach ($a in $b) {...} A null key is not allowed in a hash literal. - Attributes are not allowed in restricted language mode or a Data section. + Atributos não são permitidos no modo RestrictedLanguage ou em uma seção Data. + {StrContains="RestrictedLanguage"}{StrContains="Data"} - The type {0} is not allowed in restricted language mode or a Data section. + O tipo {0} não é permitido no modo RestrictedLanguage ou em uma seção Data. + {StrContains="RestrictedLanguage"}{StrContains="Data"} '{0}' is a ReadOnly property. @@ -784,7 +814,8 @@ The correct form is: foreach ($a in $b) {...} Missing statement body after keyword '{0}'. - Parallel and sequence blocks are not allowed in restricted language mode or a Data section. + Blocos Parallel e Sequence não são permitidos no modo RestrictedLanguage ou em uma seção Data. + {StrContains="Parallel"}{StrContains="Sequence"}{StrContains="RestrictedLanguage"}{StrContains="Data"} Unexpected keyword '{0}'. @@ -796,7 +827,8 @@ The correct form is: foreach ($a in $b) {...} The method cannot be invoked. - Cannot convert hashtable to an object of the following type: {0}. Hashtable-to-Object conversion is not supported in restricted language mode or a Data section. + Não é possível converter a tabela de hash em um objeto do seguinte tipo: {0}. Não há suporte para a conversão de Tabela Hash em Objeto no modo RestrictedLanguage ou em uma seção Data. + {StrContains="RestrictedLanguage"}{StrContains="Data"} Argument must be constant. @@ -842,7 +874,8 @@ The correct form is: foreach ($a in $b) {...} The schema file {0} was not found. Verify that any modules specified in a configuration statement contain a schema.mof file, and then try running the script again. - Cannot define data section. Definition of additional supported commands is not supported in this language mode. + Não é possível definir Data seção. Não há suporte para a definição de comandos adicionais com suporte neste modo de linguagem. + {StrContains="Data"} Missing '{' in configuration statement. @@ -935,7 +968,8 @@ ModuleVersion : Version of module to import. If used, ModuleName must represent Unable to load resource '{0}': Resource not found. - Configuration keyword is not allowed in constrainedLanguage mode. + A palavra-chave Configuration não é permitida no modo ConstrainedLanguage. + {StrContains="ConstrainedLanguage"} The configuration name '{0}' is not valid. Standard names may only contain letters (a-z, A-Z), numbers (0-9), period (.), hyphen (-) and underscore (_). The name may not be null or empty, and should start with a letter. @@ -1320,7 +1354,8 @@ ModuleVersion : Version of module to import. If used, ModuleName must represent Cannot use '&' or '.' operators to invoke a module scope command across language boundaries. - Class keyword is not allowed in ConstrainedLanguage mode. + A palavra-chave Class não é permitida no modo ConstrainedLanguage. + {StrContains="Class"}{StrContains="ConstrainedLanguage"} Missing ':' in the ternary expression. @@ -1338,37 +1373,43 @@ ModuleVersion : Version of module to import. If used, ModuleName must represent Parser Configuration Keyword - The Configuration keyword will not be allowed in Constrained Language mode for untrusted script. + O Configuration palavra-chave não será permitido no modo ConstrainedLanguage para scripts não confiáveis. + {StrContains="Configuration"}{StrContains="ConstrainedLanguage"} Parser Class Keyword - The Class keyword will not be allowed in Constrained Language mode for untrusted script. + A palavra-chave Class não será permitida no modo ConstrainedLanguage para scripts não confiáveis. + {StrContains="Class"}{StrContains="ConstrainedLanguage"} Parser Data Section SupportedCommand - The Data Section that includes the SupportedCommand parameter would be disallowed in Constrained Language mode for untrusted script. + A seção Data que inclui o parâmetro SupportedCommand não seria permitida no modo ConstrainedLanguage para scripts não confiáveis. + {StrContains="Data"}{StrContains="SupportedCommand"}{StrContains="ConstrainedLanguage"} Module Scope Call Operator - The module scope call operator will be denied in Constrained Language mode. + O operador de chamada de escopo do módulo será negado no modo ConstrainedLanguage. + {StrContains="ConstrainedLanguage"} ForEach Keyword Method Invocation - The ForEach keyword will fail '{0}' iteration item method invocation when run in Constrained Language mode. + O ForEach palavra-chave falhará '{0}' invocação do método de item de iteração quando executado no modo ConstrainedLanguage. + {StrContains="ForEach"}{StrContains="ConstrainedLanguage"} Expression Evaluation May Fail - Creating a steppable pipeline from a script block may require evaluating some expressions within the script block. The expression evaluation will silently fail and return 'null' in Constrained Language mode, unless the expression represents a constant value. + A criação de um pipeline escalonável de um bloco de script pode exigir a avaliação de algumas expressões dentro do bloco de script. A avaliação da expressão falhará silenciosamente e retornará 'null' no modo ConstrainedLanguage, a menos que a expressão represente um valor constante. + {StrContains="ConstrainedLanguage"} Configuration keyword is not supported on ARM64 processors. diff --git a/src/System.Management.Automation/resources/pt-BR/RemotingErrorIdStrings.pt-BR.resx b/src/System.Management.Automation/resources/pt-BR/RemotingErrorIdStrings.pt-BR.resx index f9ba70fb1cb..196addba73b 100644 --- a/src/System.Management.Automation/resources/pt-BR/RemotingErrorIdStrings.pt-BR.resx +++ b/src/System.Management.Automation/resources/pt-BR/RemotingErrorIdStrings.pt-BR.resx @@ -1021,7 +1021,8 @@ All WinRM sessions connected to PowerShell session configurations, such as Micro Whether to run this session configuration as the machine's (virtual) administrator account - Language mode to apply when applied to a session. Can be 'NoLanguage' (recommended), 'RestrictedLanguage', 'ConstrainedLanguage', or 'FullLanguage' + Modo de linguagem a ser aplicado quando usado em uma sessão. Pode ser 'NoLanguage' (recomendado), 'RestrictedLanguage', 'ConstrainedLanguage' ou 'FullLanguage' + {StrContains="NoLanguage"}{StrContains="RestrictedLanguage"}{StrContains="ConstrainedLanguage"}{StrContains="FullLanguage"} Modules to import when applied to a session @@ -1721,7 +1722,8 @@ SSH client process terminated before connection could be established. Expression Evaluation May Fail - Creating a PowerShell object from a script block may require evaluating some expressions within the script block. The expression evaluation will silently fail and return 'null' in Constrained Language mode, unless the expression represents a constant value. + A criação de um objeto do PowerShell a partir de um bloco de script pode exigir a avaliação de algumas expressões dentro do bloco de script. A avaliação da expressão falhará silenciosamente e retornará 'null' no modo ConstrainedLanguage, a menos que a expressão represente um valor constante. + {StrContains="ConstrainedLanguage"} Failed to get Hyper-V VM State. The value was of the type {0} but was expected to be Microsoft.HyperV.PowerShell.VMState or System.String. diff --git a/src/System.Management.Automation/resources/pt-BR/RunspaceStrings.pt-BR.resx b/src/System.Management.Automation/resources/pt-BR/RunspaceStrings.pt-BR.resx index c2274ab7ed1..fb5ee588078 100644 --- a/src/System.Management.Automation/resources/pt-BR/RunspaceStrings.pt-BR.resx +++ b/src/System.Management.Automation/resources/pt-BR/RunspaceStrings.pt-BR.resx @@ -184,7 +184,8 @@ The session is busy. You will be connected to the session as soon as it is available. To cancel the Enter-PSSession command, press Ctrl-C. - The command cannot be completed. Script invocation is not supported in this session configuration. This can occur if the session configuration is in no-language mode. + Não é possível concluir o comando. Não há suporte para a invocação de script nesta configuração de sessão. Isso pode ocorrer se a configuração da sessão estiver no modo NoLanguage. + {StrContains="NoLanguage"} You cannot use Disconnect and Connect operations on local runspaces. diff --git a/src/System.Management.Automation/resources/pt-BR/SecuritySupportStrings.pt-BR.resx b/src/System.Management.Automation/resources/pt-BR/SecuritySupportStrings.pt-BR.resx index 48139f16ae7..3b3a95a1198 100644 --- a/src/System.Management.Automation/resources/pt-BR/SecuritySupportStrings.pt-BR.resx +++ b/src/System.Management.Automation/resources/pt-BR/SecuritySupportStrings.pt-BR.resx @@ -164,5 +164,6 @@ O arquivo de script "{0}" não é confiável pela política e será executado no modo ConstrainedLanguage. + {StrContains="ConstrainedLanguage"} \ No newline at end of file diff --git a/src/System.Management.Automation/resources/pt-BR/SessionStateStrings.pt-BR.resx b/src/System.Management.Automation/resources/pt-BR/SessionStateStrings.pt-BR.resx index 06c82190adf..9b08053f091 100644 --- a/src/System.Management.Automation/resources/pt-BR/SessionStateStrings.pt-BR.resx +++ b/src/System.Management.Automation/resources/pt-BR/SessionStateStrings.pt-BR.resx @@ -652,6 +652,7 @@ Session State Variables - Changing or creating the variable '{0}' scope to AllScope will be prevented in ConstrainedLanguage mode. + A alteração ou criação do escopo da variável '{0}' como AllScope será impedida no modo ConstrainedLanguage. + {StrContains="ConstrainedLanguage"} \ No newline at end of file diff --git a/src/System.Management.Automation/resources/ru/AutomationExceptions.ru.resx b/src/System.Management.Automation/resources/ru/AutomationExceptions.ru.resx index 726992f2e51..35870acc186 100644 --- a/src/System.Management.Automation/resources/ru/AutomationExceptions.ru.resx +++ b/src/System.Management.Automation/resources/ru/AutomationExceptions.ru.resx @@ -205,6 +205,7 @@ Точечное подключение скомпилированного блока сценария - Вызов блока сценария {0} в текущей области будет запрещен в режиме ограниченного языка. Режим языка сценария: {1}, режим языка контекста: {2}. + Вызов блока сценария '{0}' текущего область будет запрещен в режиме ConstrainedLanguage. Языковой режим сценария: {1}, языковой режим контекста: {2}. + {StrContains="ConstrainedLanguage"} \ No newline at end of file diff --git a/src/System.Management.Automation/resources/ru/CatalogStrings.ru.resx b/src/System.Management.Automation/resources/ru/CatalogStrings.ru.resx index 50b8e5a412b..8647eb8758f 100644 --- a/src/System.Management.Automation/resources/ru/CatalogStrings.ru.resx +++ b/src/System.Management.Automation/resources/ru/CatalogStrings.ru.resx @@ -151,7 +151,8 @@ Неверная версия каталога. Мы поддерживаем только версию каталога {0} и версию {1}. - '{0}' is a version catalog that uses SHA0 or SHA1. Consider regenerating this catalog with '-CatalogVersion 2'. + '{0}' — это каталог версии 1, который использует слабый хэш-алгоритм SHA-1. Рекомендуется повторно создать этот каталог с '-CatalogVersion 2'. + {StrContains="SHA-1"}{StrContains="-CatalogVersion 2"} Не удалось открыть файл определения каталога. diff --git a/src/System.Management.Automation/resources/ru/CommandBaseStrings.ru.resx b/src/System.Management.Automation/resources/ru/CommandBaseStrings.ru.resx index 95efced2386..5d51ad50eea 100644 --- a/src/System.Management.Automation/resources/ru/CommandBaseStrings.ru.resx +++ b/src/System.Management.Automation/resources/ru/CommandBaseStrings.ru.resx @@ -232,12 +232,14 @@ Reviewed by TArcher on 2010-07-20 Проверка обработки блока сценария Dot-Source - Обработка Dot-Source для блока сценария "{0}" завершится сбоем в режиме ограниченного языка, поскольку его режим языка "{1}" не совпадает с текущим режимом языка "{2}". + Dot-Source обработка блока сценария '{0}' завершится сбоем в режиме ConstrainedLanguage, так как его языковой '{1}' не соответствует текущему языковому режиму '{2}'. + {StrContains="ConstrainedLanguage"} Поиск команд Команда "{0}" в модуле "{1}" не является доверенной и будет недоступна в режиме ConstrainedLanguage. + {StrContains="ConstrainedLanguage"} \ No newline at end of file diff --git a/src/System.Management.Automation/resources/ru/Credential.ru.resx b/src/System.Management.Automation/resources/ru/Credential.ru.resx index 6f6393d787c..f66cb8add76 100644 --- a/src/System.Management.Automation/resources/ru/Credential.ru.resx +++ b/src/System.Management.Automation/resources/ru/Credential.ru.resx @@ -120,8 +120,8 @@ Не удается сериализовать учетные данные. Если эта команда запускает рабочий процесс, учетные данные не могут быть сохранены, поскольку процесс, в котором запускается рабочий процесс, не имеет разрешения на сериализацию учетных данных. -— Если рабочий процесс запущен в PSSession на локальном компьютере, добавьте параметр EnableNetworkAccess к команде, создавшей сессию. -— Если рабочий процесс запущен в PSSession на удаленном компьютере, добавьте параметр Authentication со значением CredSSP к команде, создавшей сессию. Или подключитесь к конфигурации сессии, в которой значение свойства RunAsUser задано. +— Если рабочий процесс запущен в PSSession на локальном компьютере, добавьте параметр EnableNetworkAccess к команде, создавшей сеанс. +— Если рабочий процесс запущен в PSSession на удаленном компьютере, добавьте параметр Authentication со значением CredSSP к команде, создавшей сеанс. Или подключитесь к конфигурации сеанса, в которой значение свойства RunAsUser задано. Значение поля UserName имеет неправильный формат. diff --git a/src/System.Management.Automation/resources/ru/DiscoveryExceptions.ru.resx b/src/System.Management.Automation/resources/ru/DiscoveryExceptions.ru.resx index 4be4daf108f..5eb45fa2681 100644 --- a/src/System.Management.Automation/resources/ru/DiscoveryExceptions.ru.resx +++ b/src/System.Management.Automation/resources/ru/DiscoveryExceptions.ru.resx @@ -217,7 +217,7 @@ Ни одна из соответствующих команд не содержит параметра с именем "{0}". Проверьте правильность написания имени параметра и попробуйте снова. - Невозможно выполнить команду с помощью dot-source, поскольку она определена в другом языковом режиме. Чтобы выполнить эту команду без импорта ее содержимого, опустите оператор ".". + Невозможно выполнить команду с помощью dot-source, поскольку она определена в другом режиме языка. Чтобы выполнить эту команду без импорта ее содержимого, опустите оператор ".". Параметры ShowCommandInfo и Syntax нельзя указывать одновременно. diff --git a/src/System.Management.Automation/resources/ru/EventResource.ru.resx b/src/System.Management.Automation/resources/ru/EventResource.ru.resx index 689edfefcec..90307bc85af 100644 --- a/src/System.Management.Automation/resources/ru/EventResource.ru.resx +++ b/src/System.Management.Automation/resources/ru/EventResource.ru.resx @@ -135,7 +135,7 @@ WorkflowId: {0} - Создан пул пространства выполнения рабочего процесса. + Создан пул пространств выполнения рабочего процесса. WorkflowId: {0} ManagedNode: {1} diff --git a/src/System.Management.Automation/resources/ru/ExtendedTypeSystem.ru.resx b/src/System.Management.Automation/resources/ru/ExtendedTypeSystem.ru.resx index 9906dfb6ca0..426fde7282b 100644 --- a/src/System.Management.Automation/resources/ru/ExtendedTypeSystem.ru.resx +++ b/src/System.Management.Automation/resources/ru/ExtendedTypeSystem.ru.resx @@ -377,7 +377,7 @@ PS> [System.Collections.Generic.Comparer``1]::get_Default() Значение "{0}" нельзя преобразовать в массив строк. - Невозможно преобразовать значение в тип "{0}". В этом языковом режиме поддерживаются только основные типы. + Невозможно преобразовать значение в тип "{0}". В этом режиме языка поддерживаются только основные типы. Не удается преобразовать в тип "{0}", подобный ByRef. Типы, подобные ByRef, не поддерживаются в PowerShell. @@ -396,11 +396,13 @@ PS> [System.Collections.Generic.Comparer``1]::get_Default() В режиме ConstrainedLanguage преобразование типа из HashTable в "{0}" не допускается. + {StrContains="ConstrainedLanguage"} Преобразование хэш-таблицы расширенного типа В режиме ConstrainedLanguage преобразование типа из "{0}" в "{1}" не допускается. + {StrContains="ConstrainedLanguage"} \ No newline at end of file diff --git a/src/System.Management.Automation/resources/ru/InternalCommandStrings.ru.resx b/src/System.Management.Automation/resources/ru/InternalCommandStrings.ru.resx index 2023496b8b2..6715b0ea3a8 100644 --- a/src/System.Management.Automation/resources/ru/InternalCommandStrings.ru.resx +++ b/src/System.Management.Automation/resources/ru/InternalCommandStrings.ru.resx @@ -145,13 +145,15 @@ Не удается сопоставить имя ввода {0} с методом. - Нельзя вызывать метод в режиме ограниченного языка. + Нельзя вызывать метод в режиме RestrictedLanguage. + {StrContains="RestrictedLanguage"} Параметры -WhatIf и -Confirm не поддерживаются для блоков сценария. Операция {0} не разрешена в режиме RestrictedLanguage. + {StrContains="RestrictedLanguage"} Требуется оператор для сравнения двух указанных значений. Укажите допустимый оператор в команде и повторите попытку. Например, Get-Process | Where-Object -Property Name -eq Idle @@ -188,6 +190,7 @@ ErrorAction, WarningAction, InformationAction, PipelineVariable Командлет ForEach-Object - Вызов метода для типа {0} будет запрещен при выполнении в режиме ограниченного языка (Constrained Language). + Вызов метода для типа '{0}' не будет разрешен при запуске в режиме ConstrainedLanguage. + {StrContains="ConstrainedLanguage"} \ No newline at end of file diff --git a/src/System.Management.Automation/resources/ru/Metadata.ru.resx b/src/System.Management.Automation/resources/ru/Metadata.ru.resx index 98babf1acb1..a8636ec621a 100644 --- a/src/System.Management.Automation/resources/ru/Metadata.ru.resx +++ b/src/System.Management.Automation/resources/ru/Metadata.ru.resx @@ -262,6 +262,7 @@ Ошибка проверки атрибута ValidateTrustedData - Аргумент параметра "{0}" не является доверенным и приведет к сбою проверки атрибута параметра ValidateTrustedData в режиме ограниченного языка. + Аргумент параметра "{0}" не является доверенным и приведет к сбою проверки атрибута параметра ValidateTrustedData в режиме ConstrainedLanguage. + {StrContains="ValidateTrustedData"}{StrContains="ConstrainedLanguage"} \ No newline at end of file diff --git a/src/System.Management.Automation/resources/ru/Modules.ru.resx b/src/System.Management.Automation/resources/ru/Modules.ru.resx index b5441ba52e6..0287e99d0b7 100644 --- a/src/System.Management.Automation/resources/ru/Modules.ru.resx +++ b/src/System.Management.Automation/resources/ru/Modules.ru.resx @@ -626,18 +626,20 @@ Импорт файлов *.ps1 в качестве модулей не разрешен в режиме ConstrainedLanguage. + {StrContains="ConstrainedLanguage"} - Произошла ошибка при загрузке модуля сценария {0}, потому что его языковой режим отличается от языкового режима манифеста модуля. Языковой режим манифеста — {1}, а языковой режим модуля — {2}. Убедитесь, что все файлы модуля подписаны или иным образом включены в конфигурацию списка разрешений приложения. + Произошла ошибка при загрузке модуля сценария {0}, потому что его режим языка отличается от режима языка манифеста модуля. Режим языка манифеста — {1}, а режим языка модуля — {2}. Убедитесь, что все файлы модуля подписаны или иным образом включены в конфигурацию списка разрешений приложения. В этом модуле используется оператор dot-source при экспорте функций с подстановочными знаками, что запрещено, если в системе применяется принудительная проверка приложений. - Нельзя экспортировать элементы модуля из модуля, языковой режим которого отличается от языкового режима текущего сеанса. + Нельзя экспортировать элементы модуля из модуля, режим языка которого отличается от режима языка текущего сеанса. Нельзя создать новый модуль, пока сеанс находится в режиме ConstrainedLanguage. + {StrContains="ConstrainedLanguage"} Не удается найти встроенный модуль "{0}", совместимый с выпуском "Core". Убедитесь, что встроенные модули PowerShell доступны. Обычно они поставляются вместе с пакетом PowerShell в пути $PSHOME к модулю и необходимы для корректной работы PowerShell. @@ -646,42 +648,49 @@ Командлет Export-ModuleMember - Экспорт элементов модуля завершится сбоем в ограниченном языковом режиме, так как модуль "{0}" использует языковой режим "{1}", отличный от текущего сеанса "{2}". + Экспорт элементов модуля не удастся выполнить в режиме ConstrainedLanguage, так как модуль '{0}' имеет языковой режим '{1}', отличный от текущего сеанса '{2}'. + {StrContains="ConstrainedLanguage"} Неявный экспорт функций модуля - Неявный экспорт функций для модуля "{0}" будет запрещен, так как он является доверенным (работает в полном языковом режиме), а сеанс не является доверенным (работает в ограниченном языковом режиме). Рекомендуется всегда экспортировать функции модуля по отдельности, указывая полное имя. + Неявный экспорт функций для модуля "{0}" будет запрещен, так как он является доверенным (работает в режиме FullLanguage), а сеанс не является доверенным (работает в режиме ConstrainedLanguage). Рекомендуется всегда экспортировать функции модуля по отдельности, указывая полное имя. + {StrContains="FullLanguage"}{StrContains="ConstrainedLanguage"} Импорт файла сценария в виде модуля Импорт файла сценария "{0}" в качестве модуля будет запрещен в режиме ConstrainedLanguage. + {StrContains="ConstrainedLanguage"} Модуль содержит оператор Dot-Source - Импорт модуля "{0}" завершится сбоем в ограниченном языковом режиме, так как он экспортирует функции с использованием подстановочных знаков и при этом использует оператор dot-source. + Импорт модуля "{0}" завершится сбоем в режиме ConstrainedLanguage, так как он экспортирует функции с использованием подстановочных знаков и при этом использует оператор dot-source. + {StrContains="ConstrainedLanguage"} - "Функции, экспортируемые модулем + Функции, экспортируемые модулем - Модуль "{0}" экспортирует функции с использованием подстановочных знаков в именах. Имена всех функций вложенных модулей будут удалены при работе в ограниченном языковом режиме. + Модуль "{0}" экспортирует функции с использованием подстановочных знаков в именах. Имена всех функций вложенных модулей будут удалены при работе в режиме ConstrainedLanguage. + {StrContains="ConstrainedLanguage"} - "Командлет New-Module + Командлет New-Module - Для нового модуля из недоверенного сеанса ограниченного языка будет заблокировано предоставление блока сценария FullLanguage. + Для нового модуля из недоверенного сеанса ConstrainedLanguage будет заблокировано предоставление блока сценария FullLanguage. + {StrContains="ConstrainedLanguage"}{StrContains="FullLanguage"} - "Несовместимые языковые режимы модуля + Несовместимые языковые режимы модуля - Загружается зависимый модуль с языковым режимом, отличным от режима родительского модуля. В ограниченном языковом режиме это будет запрещено. + Загружается зависимый модуль с языковым режимом, отличным от режима родительского модуля. В режиме ConstrainedLanguage это будет запрещено. + {StrContains="ConstrainedLanguage"} \ No newline at end of file diff --git a/src/System.Management.Automation/resources/ru/ParameterBinderStrings.ru.resx b/src/System.Management.Automation/resources/ru/ParameterBinderStrings.ru.resx index a5f8540b762..087beebca78 100644 --- a/src/System.Management.Automation/resources/ru/ParameterBinderStrings.ru.resx +++ b/src/System.Management.Automation/resources/ru/ParameterBinderStrings.ru.resx @@ -250,12 +250,14 @@ Вызов метода или свойства не разрешен - Вызов метода или свойства "{0}" типа "{1}" не будет разрешен в режиме ограниченного языка для ненадежных сценариев. + Вызов метода или свойства '{0}' типа '{1}' будет запрещен в режиме ConstrainedLanguage для недоверенных сценариев. + {StrContains="ConstrainedLanguage"} Создание типа не разрешено - Создание типа "{0}" не будет разрешено во время привязки параметров в режиме ограниченного языка для недоверенных сценариев. + Создание типа '{0}' будет запрещено во время привязки параметров в режиме ConstrainedLanguage для недоверенных сценариев. + {StrContains="ConstrainedLanguage"} \ No newline at end of file diff --git a/src/System.Management.Automation/resources/ru/ParserStrings.ru.resx b/src/System.Management.Automation/resources/ru/ParserStrings.ru.resx index 7ed8e29a6c0..c8b14c86b9a 100644 --- a/src/System.Management.Automation/resources/ru/ParserStrings.ru.resx +++ b/src/System.Management.Automation/resources/ru/ParserStrings.ru.resx @@ -402,7 +402,8 @@ Обработка остановлена, так как скрипт слишком сложен. - Синтаксис не поддерживается этим пространством выполнения. Это может произойти, если пространство выполнения находится в режиме без языка. + Синтаксис не поддерживается этим пространством выполнения. Это может произойти, если пространство выполнения находится в режиме NoLanguage. + {StrContains="NoLanguage"} Сочетание параметров с оператором -split недопустимо. @@ -581,84 +582,111 @@ В разделе Data отсутствует блок операторов. + {StrContains="Data"} Параметр "{0}" раздела Data недопустим. Допустимый параметр раздела Data — SupportedCommand. + {StrContains="Data"}{StrContains="SupportedCommand"} - Ссылки на массивы не допускаются в ограниченном языковом режиме или в разделе Data. + В режиме RestrictedLanguage и в разделе Data не допускается использовать ссылки на массивы. + {StrContains="RestrictedLanguage"}{StrContains="Data"} - Операторы присваивания не допускаются в ограниченном языковом режиме или в разделе Data. + Операторы Assignments не допускается использовать в режиме RestrictedLanguage или в разделе Data. + {StrContains="RestrictedLanguage"}{StrContains="Data"} - Перенаправление не допускается в ограниченном языковом режиме или в разделе Data. + Перенаправление не допускается использовать в режиме RestrictedLanguage или в разделе Data. + {StrContains="RestrictedLanguage"}{StrContains="Data"} - Операторы Do и While не допускаются в ограниченном языковом режиме или в разделе Data. + Операторы Do и While не допускается использовать в режиме RestrictedLanguage или в разделе Data. + {StrContains="Do"}{StrContains="While"}{StrContains="RestrictedLanguage"}{StrContains="Data"} - Расширяемые строки не допускаются в ограниченном языковом режиме или в разделе Data. + Расширяемые строки не допускается использовать в режиме RestrictedLanguage или в разделе Data. + {StrContains="RestrictedLanguage"}{StrContains="Data"} - Оператор "{0}" не допускается в ограниченном языковом режиме или в разделе Data. + Оператор '{0}' не разрешен в режиме RestrictedLanguage или в разделе Data. + {StrContains="RestrictedLanguage"}{StrContains="Data"} - Оператор Trap не допускается в ограниченном языковом режиме или в разделе Data. + Оператор Trap не допускается использовать в режиме RestrictedLanguage или в разделе Data. + {StrContains="Trap"}{StrContains="RestrictedLanguage"}{StrContains="Data"} - Оператор Try не допускается в ограниченном языковом режиме или в разделе Data. + Оператор Try не допускается использовать в режиме RestrictedLanguage или в разделе Data. + {StrContains="Try"}{StrContains="RestrictedLanguage"}{StrContains="Data"} - Инструкции управления потоком, такие как Break, Continue, Return, Exit и Throw, не допускаются в ограниченном языковом режиме или в разделе Data. + Инструкции управления потоком, такие как Break, Continue, Return, Exit и Throw, не допускается использовать в режиме RestrictedLanguageв или в разделе Data. + {StrContains="Break"}{StrContains="Continue"}{StrContains="Return"}{StrContains="Exit"}{StrContains="Throw"}{StrContains="RestrictedLanguage"}{StrContains="Data"} - Операторы Foreach не допускаются в ограниченном языковом режиме или в разделе Data. + Операторы Foreach не допускается использовать в режиме RestrictedLanguage или в разделе Data. + {StrContains="Foreach"}{StrContains="RestrictedLanguage"}{StrContains="Data"} - Операторы For и While не допускаются в ограниченном языковом режиме или в разделе Data. + Операторы For и While не допускается использовать в режиме RestrictedLanguage или в разделе Data. + {StrContains="For"}{StrContains="While"}{StrContains="RestrictedLanguage"}{StrContains="Data"} - Объявления функций не допускаются в ограниченном языковом режиме или в разделе Data. + Объявления Function не допускается использовать в режиме RestrictedLanguage или в разделе Data. + {StrContains="Function"}{StrContains="RestrictedLanguage"}{StrContains="Data"} - Вызовы методов не допускаются в ограниченном языковом режиме или в разделе Data. + Вызовы методов не допускается использовать в режиме RestrictedLanguage или в разделе Data. + {StrContains="RestrictedLanguage"}{StrContains="Data"} - Объявления параметров не допускаются в ограниченном языковом режиме или в разделе Data. + Объявления Parameter не допускается использовать в режиме RestrictedLanguage или в разделе Data. + {StrContains="RestrictedLanguage"}{StrContains="Data"} - Ссылки на свойства не допускаются в ограниченном языковом режиме или в разделе Data. + Ссылки Property не допускается использовать в режиме RestrictedLanguage или в разделе Data. + {StrContains="RestrictedLanguage"}{StrContains="Data"} - Литералы блока скрипта не допускаются в ограниченном языковом режиме или в разделе Data. + Литералы блока скрипта не допускается использовать в режиме RestrictedLanguage или в разделе Data. + {StrContains="RestrictedLanguage"}{StrContains="Data"} - Оператор switch не допускается в ограниченном языковом режиме или в разделе Data. + Оператор Switch не допускается использовать в режиме RestrictedLanguage или в разделе Data. + {StrContains="Switch"}{StrContains="RestrictedLanguage"}{StrContains="Data"} - Используется ссылка на переменную, на которую нельзя ссылаться в ограниченном языковом режиме или в разделе Data. К переменным, на которые можно ссылаться, относятся следующие: {0}. + В режиме RestrictedLanguage или в разделе Data происходит обращение к переменной, на которую нельзя ссылаться. К переменным, на которые можно ссылаться, относятся следующие: {0}. + {StrContains="RestrictedLanguage"}{StrContains="Data"} - Команда "{0}" не допускается в ограниченном языковом режиме или в разделе Data. + Команда '{0}' не разрешена в режиме RestrictedLanguage или в разделе Data. + {StrContains="RestrictedLanguage"}{StrContains="Data"} - Оператор data не допускается в ограниченном языковом режиме или в другом разделе Data. + Оператор Data не допускается использовать в режиме RestrictedLanguage или другом разделе Data. + {StrContains="RestrictedLanguage"}{StrContains="Data"} Для параметра SupportedCommand в разделе Data не указано значение. Укажите имя командлета или функции для этого параметра. + {StrContains="SupportedCommand"}{StrContains="Data"} - Блок операторов Begin, блок операторов Process или оператор parameter не разрешены в разделе Data. + Блок операторов Begin, блок операторов Process или оператор Param не допускается использовать в разделе Data. + {StrContains="Begin"}{StrContains="Process"}{StrContains="Param"}{StrContains="Data"} - Результаты умножения строк длиной более "{0}" символов не допускаются в ограниченном языковом режиме или в разделе Data. + Результаты умножения строк, содержащие более "{0}" символов, не допускаются в режиме RestrictedLanguage или в разделе Data. + {StrContains="RestrictedLanguage"}{StrContains="Data"} - Умножение массивов, в результате которого получается более {0} элементов, не разрешено в ограниченном языковом режиме или в разделе Data. + Умножение массивов, в результате которого получается более {0} элементов, не допускается использовать в режиме RestrictedLanguage или в разделе Data. + {StrContains="RestrictedLanguage"}{StrContains="Data"} - Вызов с использованием точки не допускается в ограниченном языковом режиме или в разделе Data. + Точечный источник не допускается использовать в режиме RestrictedLanguage или в разделе Data. + {StrContains="RestrictedLanguage"}{StrContains="Data"} Аргумент атрибута должен быть константой или блоком скрипта. @@ -721,10 +749,12 @@ Ключ null не допускается в хэш-литерале. - Атрибуты не допускаются в ограниченном языковом режиме или в разделе Data. + Атрибуты не допускается использовать в режиме RestrictedLanguage или в разделе Data. + {StrContains="RestrictedLanguage"}{StrContains="Data"} - Тип {0} не допускается в ограниченном языковом режиме или в разделе Data. + Тип {0} не разрешен в режиме RestrictedLanguage или в разделе Data. + {StrContains="RestrictedLanguage"}{StrContains="Data"} Свойство "{0}" доступно только для чтения. @@ -784,7 +814,8 @@ Отсутствует тело оператора после ключевого слова "{0}". - Параллельные и последовательные блоки не допускаются в ограниченном языковом режиме или в разделе Data. + Блоки Parallel и Sequence не допускается использовать в режиме RestrictedLanguage или в разделе Data. + {StrContains="Parallel"}{StrContains="Sequence"}{StrContains="RestrictedLanguage"}{StrContains="Data"} Непредвиденное ключевое слово "{0}". @@ -796,7 +827,8 @@ Метод нельзя вызвать. - Невозможно преобразовать хэш-таблицу в объект следующего типа: {0}. Преобразование хэш-таблицы в объект не поддерживается в ограниченном языковом режиме или в разделе Data. + Невозможно преобразовать хэш-таблицу в объект следующего типа: {0}. Преобразование хэш-таблицы в объект не поддерживается в режиме RestrictedLanguage или в разделе Data. + {StrContains="RestrictedLanguage"}{StrContains="Data"} Аргумент должен быть константой. @@ -820,10 +852,10 @@ Подстановочные знаки не поддерживаются в именах модулей. - Не удалось вызвать метод. Вызов метода в этом языковом режиме поддерживается только для основных типов. + Не удалось вызвать метод. Вызов метода в этом режиме языка поддерживается только для основных типов. - Не удалось задать свойство. Задание свойств в этом языковом режиме поддерживается только для основных типов. + Не удалось задать свойство. Задание свойств в этом режиме языка поддерживается только для основных типов. Обнаружено недопустимое имя атрибута для ресурса "{0}". Имя атрибута должно быть простой строкой и не может содержать переменные или выражения. Замените "{1}" простой строкой. @@ -842,7 +874,8 @@ Файл схемы {0} не найден. Убедитесь, что все модули, указанные в операторе конфигурации, содержат файл schema.mof, а затем попробуйте снова запустить сценарий. - Невозможно определить раздел данных. В этом языковом режиме не поддерживается определение дополнительных поддерживаемых команд. + Не удается определить Data раздел. Определение дополнительных поддерживаемых команд не поддерживается в этом языковом режиме. + {StrContains="Data"} Отсутствует "{" в операторе конфигурации. @@ -935,7 +968,8 @@ ModuleVersion: версия импортируемого модуля. Если Не удалось загрузить ресурс "{0}": ресурс не найден. - В режиме constrainedLanguage нельзя использовать ключевое слово Configuration. + В режиме ConstrainedLanguage не допускается использовать ключевое слово Configuration. + {StrContains="ConstrainedLanguage"} Имя конфигурации "{0}" недопустимо. Стандартные имена могут содержать только буквы (a-z, A-Z), цифры (0-9), точку (.), дефис (-) и символ подчеркивания (_). Имя не может быть пустым или null и должно начинаться с буквы. @@ -1293,7 +1327,7 @@ ModuleVersion: версия импортируемого модуля. Если У PartialConfiguration "{0}" для режима обновления задано значение "Отключено", которое не является допустимым для частичных конфигураций. Используйте режим обновления Pull или Push. - Не удается создать тип. В этом языковом режиме поддерживаются только основные типы. + Не удается создать тип. В этом режиме языка поддерживаются только основные типы. Import-DscResource нельзя указывать в контексте Node @@ -1320,7 +1354,8 @@ ModuleVersion: версия импортируемого модуля. Если Нельзя использовать операторы "&" или "." для вызова команды области модуля через границы языка. - В режиме ConstrainedLanguage не допускается использование ключевого слова class. + В режиме ConstrainedLanguage не допускается использование ключевого слова Class. + {StrContains="Class"}{StrContains="ConstrainedLanguage"} Отсутствует ":" в тернарном выражении. @@ -1338,37 +1373,43 @@ ModuleVersion: версия импортируемого модуля. Если Ключевое слово конфигурации анализатора - Ключевое слово Configuration не будет разрешено в ограниченном языковом режиме для недоверенного скрипта. + Ключевое слово Configuration не допускается использовать в режиме ConstrainedLanguage для недоверенного скрипта. + {StrContains="Configuration"}{StrContains="ConstrainedLanguage"} Ключевое слово класса анализатора - Ключевое слово Class не будет разрешено в ограниченном языковом режиме для недоверенного скрипта. + Ключевое слово Class не допускается использовать в режиме ConstrainedLanguage для недоверенного скрипта. + {StrContains="Class"}{StrContains="ConstrainedLanguage"} Раздел данных анализатора SupportedCommand - Раздел Data, включающий параметр SupportedCommand, будет запрещен в ограниченном языковом режиме для недоверенного скрипта. + Раздел Data, включающий параметр SupportedCommand, будет запрещен в режиме ConstrainedLanguage для недоверенного скрипта. + {StrContains="Data"}{StrContains="SupportedCommand"}{StrContains="ConstrainedLanguage"} Оператор вызова в области модуля - Оператор вызова области модуля будет запрещен в ограниченном языковом режиме. + Оператор вызова области модуля в режиме ConstrainedLanguage запрещен. + {StrContains="ConstrainedLanguage"} Вызов метода ключевого слова ForEach - При запуске в ограниченном языковом режиме ключевое слово ForEach вызовет ошибку при вызове метода элемента итерации "{0}". + При запуске в режиме ConstrainedLanguage ключевое слово ForEach вызовет ошибку при вызове метода элемента итерации "{0}". + {StrContains="ForEach"}{StrContains="ConstrainedLanguage"} Оценка выразительности может оказаться неудачной - Для создания пошагового конвейера из блока скрипта может потребоваться оценка некоторых выражений внутри этого блока. В режиме ограниченного языка вычисление выражения завершится без предупреждения и вернет значение "null", если только выражение не представляет собой константу. + Для создания пошагового конвейера из блока скрипта может потребоваться оценка некоторых выражений внутри этого блока. В режиме ConstrainedLanguage вычисление выражения завершится без предупреждения и вернет значение "null", если только выражение не представляет собой константу. + {StrContains="ConstrainedLanguage"} Ключевое слово Configuration не поддерживается на процессорах ARM64. diff --git a/src/System.Management.Automation/resources/ru/RemotingErrorIdStrings.ru.resx b/src/System.Management.Automation/resources/ru/RemotingErrorIdStrings.ru.resx index 88f9a8fbfff..25a2944db61 100644 --- a/src/System.Management.Automation/resources/ru/RemotingErrorIdStrings.ru.resx +++ b/src/System.Management.Automation/resources/ru/RemotingErrorIdStrings.ru.resx @@ -318,7 +318,7 @@ Сервер, на котором запущен PowerShell, не может обработать операцию подключения, поскольку он либо не запущен, либо завершает работу. - Сервер, на котором запущен PowerShell, не может обработать операцию подключения, поскольку свойства пула рабочих пространств сервера не соответствуют свойствам, указанным на клиентском компьютере. + Сервер, на котором запущен PowerShell, не может обработать операцию подключения, поскольку свойства пула пространств выполнения сервера не соответствуют свойствам, указанным на клиентском компьютере. {0} . Переговоры с клиентом провалились. Убедитесь, что клиент совместим с сборкой {1} и версией протокола {2} PowerShell. @@ -642,7 +642,7 @@ Параметры сессии по умолчанию для новых удалённых сессий - Название конфигурации сессии, которая будет загружена на удалённый компьютер + Название конфигурации сеанса, которая будет загружена на удаленный компьютер AppName — имя приложения, для которого будет установлено удалённое соединение @@ -654,19 +654,19 @@ Либо должны быть указаны и " {0} ", и " {1} ", либо ни один из них не должен быть указан. - Конфигурация сессии " {0} " не найдена. + Конфигурация сеанса " {0} " не найдена. - Конфигурация сессии " {0} " не является оболочкой на основе PowerShell. + Конфигурация сеанса " {0} " не является оболочкой на основе PowerShell. - Конфигурация сессии " {0} " — это оболочка на основе PowerShell. Для внесения изменений используйте PowerShell 6+. + Конфигурация сеанса " {0} " — это оболочка на основе PowerShell. Для внесения изменений используйте PowerShell 6+. - Конфигурация сессии " {0} " — это оболочка на основе Windows PowerShell. Используйте Windows PowerShell для внесения изменений. + Конфигурация сеанса " {0} " — это оболочка на основе Windows PowerShell. Используйте Windows PowerShell для внесения изменений. - Ни одна конфигурация сессии не соответствует критериям " {0} ". + Ни одна конфигурация сеанса не соответствует критериям " {0} ". {0} @@ -687,25 +687,25 @@ Невозможно записать данные конфигурации оболочки во временный файл {0} . Причина сбоя: {1}. - Выполнение команды " {0} " для создания новой конфигурации сессии. + Выполнение команды " {0} " для создания новой конфигурации сеанса. Имя: {0} SDDL: {1} . Это позволяет выбранным пользователям удаленно запускать команды PowerShell на этом компьютере. - Выполнение команды " {0} " для удаления конфигурации сессии. + Выполнение команды " {0} " для удаления конфигурации сеанса. Выполнение команды " {0} " для получения конфигураций сеанса на основе PowerShell. - Выполнение команды " {0} " для обновления свойств конфигурации сессии. + Выполнение команды " {0} " для обновления свойств конфигурации сеанса. Имя: {0} SDDL: {1} - Выполнение команды " {0} " для включения конфигурации сессии. + Выполнение команды " {0} " для включения конфигурации сеанса. Быстрая настройка WinRM @@ -727,13 +727,13 @@ Имя: {0} SDDL: {1} . Это позволяет выбранным пользователям удаленно запускать команды PowerShell на этом компьютере. - Выполнение команды " {0} " для отключения конфигурации сессии. + Выполнение команды " {0} " для отключения конфигурации сеанса. - Имя: {0} SDDL: {1} . Это лишает всех доступа к данной конфигурации сессии. + Имя: {0} SDDL: {1} . Это лишает всех доступа к данной конфигурации сеанса. - Отключение настроек сеанса не отменяет всех изменений, внесенных командлетами Enable-PSRemoting или Enable-PSSessionConfiguration. Возможно, вам придётся отменить изменения вручную, выполнив следующие действия: + Отключение настроек сеанса не отменяет всех изменений, внесенных командлетами Enable-PSRemoting или Enable-PSSessionConfiguration. Возможно, вам придется отменить изменения вручную, выполнив следующие действия: 1. Остановите и отключите службу WinRM. 2. Удалите слушатель, принимающий запросы с любого IP-адреса. 3. Отключите исключения брандмауэра для обмена данными с WS-Management. @@ -755,10 +755,10 @@ Для отображения интерфейса выбора SecurityDescriptor необходимо перезапустить службу WinRM. Перезапустите службу WinRM, а затем выполните следующую команду: " {0} " - Регистрация конфигурации сессии + Регистрация конфигурации сеанса - Конфигурация сессии " {0} " не найдена. Выполнение команды " {1} " для создания конфигурации сессии " {0} ". Выполнение этой команды перезапустит службу WinRM. + Конфигурация сеанса " {0} " не найдена. Выполнение команды " {1} " для создания конфигурации сеанса " {0} ". Выполнение этой команды перезапустит службу WinRM. " {0} " и " {1} " нельзя указывать одновременно. Укажите либо параметр " {0} ", либо параметр " {1} ". @@ -967,7 +967,7 @@ Для удаленного пространства выполнения, на котором выполняется клиентский метод, не был указан клиентский компьютер. - Имя: {0} SDDL: {1} . Это запрещает удалённый доступ к конфигурации данной сессии. + Имя: {0} SDDL: {1} . Это запрещает удалённый доступ к конфигурации данного сеанса. Включено: False. Это настраивает службу WS-Management таким образом, чтобы она отклоняла запросы на подключение. @@ -1012,16 +1012,17 @@ Идентификатор используется для однозначной идентификации этого документа - Для данной конфигурации сессии будут применяться параметры по умолчанию. Может принимать значения 'RestrictedRemoteServer' (рекомендуется), 'Empty' или 'Default'. + Для данной конфигурации сеанса будут применяться параметры по умолчанию. Может принимать значения 'RestrictedRemoteServer' (рекомендуется), 'Empty' или 'Default'. - Каталог для размещения стенограмм сессий для данной конфигурации сессии + Каталог для размещения стенограмм сеансов для данной конфигурации сеанса - Следует ли запускать эту конфигурацию сессии от имени учетной записи виртуального администратора машины + Следует ли запускать эту конфигурацию сеанса от имени учетной записи виртуального администратора машины - Языковой режим, применяемый к сессии. Может быть выбрано значение 'NoLanguage' (рекомендуется), 'RestrictedLanguage', 'ConstrainedLanguage' или 'FullLanguage' + Режим языка, применяемый к сеансу. Может быть выбрано значение 'NoLanguage' (рекомендуется), 'RestrictedLanguage', 'ConstrainedLanguage' или 'FullLanguage' + {StrContains="NoLanguage"}{StrContains="RestrictedLanguage"}{StrContains="ConstrainedLanguage"}{StrContains="FullLanguage"} Модули для импорта при применении к сессии @@ -1078,7 +1079,7 @@ Запись "Роли" должна быть хеш-таблицей, но оказалась {0} . - Не удалось преобразовать значение записи роли ' {0} ' в хэш-таблицу. В поле "Роли" должна быть хэш-таблица с именами групп в качестве ключей, где значением, связанным с каждым ключом, является другая хэш-таблица свойств конфигурации сессии для данной роли. + Не удалось преобразовать значение записи роли ' {0} ' в хэш-таблицу. В поле "Роли" должна быть хэш-таблица с именами групп в качестве ключей, где значением, связанным с каждым ключом, является другая хэш-таблица свойств конфигурации сеанса для данной роли. Не удалось найти возможность роли ' {0} '. Возможности роли должны представлять собой файл с именем ' {1} ' в каталоге 'RoleCapabilities' в модуле, находящемся в текущем пути модуля. @@ -1163,7 +1164,7 @@ Ключ ' {0} ' в элементе ' {1} ' должен быть блоком скрипта. Измените ключ на правильный тип в файле {2} . - Файл конфигурации сессии {0} недействителен. Укажите действительный файл конфигурации сессии и повторите команду. + Файл конфигурации сеанса {0} недействителен. Укажите действительный файл конфигурации сеанса и повторите команду. Сетевое соединение прервано @@ -1259,7 +1260,7 @@ Параметр -AutoRemoveJob нельзя использовать без параметра -Wait - Служба WS-Management не может обработать запрос. Не удается найти {0} конфигурацию сессии на диске WSMan: на {1} компьютере . Для получения дополнительной информации см. раздел справки about_Remote_Troubleshooting. + Служба WS-Management не может обработать запрос. Не удается найти {0} конфигурацию сеанса на диске WSMan: на {1} компьютере . Для получения дополнительной информации см. раздел справки about_Remote_Troubleshooting. Не удалось создать задание на основе спецификации {0}, поскольку предоставленное рабочее пространство не является локальным рабочим пространством. Попробуйте еще раз, используя локальное рабочее пространство, или укажите аргумент RunspaceMode. @@ -1277,7 +1278,7 @@ {1} is a placeholder for the minimum allowed idletimeout value - Командлет " {0} " или псевдоним " {1} " не могут присутствовать, если в файле конфигурации сессии указаны ключи " {2} ", " {3} ", " {4} " или " {5} ". + Командлет " {0} " или псевдоним " {1} " не могут присутствовать, если в файле конфигурации сеанса указаны ключи " {2} ", " {3} ", " {4} " или " {5} ". "Вариант с транспортом не подходит". Параметр " {0} " может быть ненулевым только в том случае, если параметр " {1} " установлен в значение true. @@ -1327,10 +1328,10 @@ Задание было успешно приостановлено путем добавления параметра Force. - Файл конфигурации сессии {0} недействителен. Укажите действительный файл конфигурации сессии и повторите команду. Ошибка при разборе файла конфигурации: {1} . + Файл конфигурации сеанса {0} недействителен. Укажите действительный файл конфигурации сеанса и повторите команду. Ошибка при разборе файла конфигурации: {1} . - Register-PSSessionConfiguration: Ключ ' {0} ' в файле конфигурации сессии {1} содержит недопустимое значение. Исправьте файл и попробуйте выполнить команду снова. + Register-PSSessionConfiguration: Ключ ' {0} ' в файле конфигурации сеанса {1} содержит недопустимое значение. Исправьте файл и попробуйте выполнить команду снова. Поддержка отключенных сеансов возможна только при использовании на удаленном компьютере PowerShell версии 3.0 или более поздней. @@ -1342,10 +1343,10 @@ PSSession {0} был создан с использованием параметра EnableNetworkAccess и может быть повторно подключен только с локального компьютера. - Не удается запустить задание. Языковой режим для данной сессии несовместим с общесистемным языковым режимом. + Не удается запустить задание. Режим языка для данного сеанса несовместим с общесистемным режимом языка. - Невозможно создать рабочее пространство. Языковой режим для данной конфигурации несовместим с общесистемным языковым режимом. + Невозможно создать рабочее пространство. Режим языка для данной конфигурации несовместим с общесистемным режимом языка. Невозможно выйти из вложенного конвейера, поскольку конвейер не находится в состоянии вложенности. @@ -1540,10 +1541,10 @@ Не удаётся запустить сервер именованных каналов в серверном режиме. - Не удалось предоставить удаленный доступ к ' {0} ': ' {1} '. Настройки сессии зарегистрированы, но у этой группы нет доступа. Для устранения этой ошибки укажите допустимое имя группы и повторно зарегистрируйте конфигурацию сессии. + Не удалось предоставить удаленный доступ к ' {0} ': ' {1} '. Настройки сеанса зарегистрированы, но у этой группы нет доступа. Для устранения этой ошибки укажите допустимое имя группы и повторно зарегистрируйте конфигурацию сеанса. - Не удалось получить возможности сессии для конфигурации сессии ' {0} ': эта конфигурация не была зарегистрирована в файле конфигурации сессии (.pssc), например, в файле, созданном командлетом New-PSSessionConfigurationFile. + Не удалось получить возможности сеанса для конфигурации сеанса ' {0} ': эта конфигурация не была зарегистрирована в файле конфигурации сеанса (.pssc), например, в файле, созданном командлетом New-PSSessionConfigurationFile. Не удалось разрешить имя пользователя ' {0} '. Проверьте имя пользователя и попробуйте снова. @@ -1606,10 +1607,10 @@ Невозможно создать сессию на пользовательском диске, поскольку имя текущего пользователя содержит недопустимые символы пути к файлу. - Недопустимый ключ возможностей роли: {0} . Убедитесь, что имя возможности роли написано правильно и является допустимым свойством конфигурации сессии. + Недопустимый ключ возможностей роли: {0} . Убедитесь, что имя возможности роли написано правильно и является допустимым свойством конфигурации сеанса. - Недопустимый тип ключа возможностей роли: {0} . Ключи прав доступа к ролям должны представлять собой строки, идентифицирующие допустимое свойство конфигурации сессии. + Недопустимый тип ключа возможностей роли: {0} . Ключи прав доступа к ролям должны представлять собой строки, идентифицирующие допустимое свойство конфигурации сеанса. Недопустимый тип ключа роли: {0} . Ключи ролей должны представлять собой строки, идентифицирующие группу безопасности. @@ -1709,19 +1710,20 @@ Аргумент Runspace в функции Create должен представлять собой ненулевой объект RemoteRunspace. - Хэш-таблица конфигурации сессии содержит недопустимый тип ключа. Ключи должны быть строкового типа. + Хэш-таблица конфигурации сеанса содержит недопустимый тип ключа. Ключи должны быть строкового типа. - Файл конфигурации сессии содержит неподдерживаемый параметр конфигурации: {0} . Это параметр конфигурации удаленной конечной точки, который не применяется к состоянию сеанса PowerShell. + Файл конфигурации сеанса содержит неподдерживаемый параметр конфигурации: {0} . Это параметр конфигурации удаленной конечной точки, который не применяется к состоянию сеанса PowerShell. - Файл конфигурации сессии содержит неизвестный параметр конфигурации: {0} . + Файл конфигурации сеанса содержит неизвестный параметр конфигурации: {0} . Оценка выразительности может оказаться неудачной - Для создания объекта PowerShell из блока скрипта может потребоваться оценка некоторых выражений внутри этого блока. В режиме ограниченного языка вычисление выражения завершится без предупреждения и вернет значение 'null', если только выражение не представляет собой константу. + Для создания объекта PowerShell из блока скрипта может потребоваться оценка некоторых выражений внутри этого блока. В режиме ConstrainedLanguage вычисление выражения завершится без предупреждения и вернет значение "null", если только выражение не представляет собой константу. + {StrContains="ConstrainedLanguage"} Не удалось получить состояние виртуальной машины Hyper-V. Значение имело тип {0} , но ожидалось, что оно будет Microsoft.HyperV.PowerShell.VMState или System.String. diff --git a/src/System.Management.Automation/resources/ru/RunspacePoolStrings.ru.resx b/src/System.Management.Automation/resources/ru/RunspacePoolStrings.ru.resx index 23f2d93afaf..7fb0f64492e 100644 --- a/src/System.Management.Automation/resources/ru/RunspacePoolStrings.ru.resx +++ b/src/System.Management.Automation/resources/ru/RunspacePoolStrings.ru.resx @@ -142,7 +142,7 @@ Не удается освободить пространство выполнения в текущий пул, так как это пространство выполнения не принадлежит текущему пулу. - Это свойство нельзя изменить после открытия пула пространства выполнения. + Это свойство нельзя изменить после открытия пула пространств выполнения. Это пространство выполнения не поддерживает операции отключения и подключения. diff --git a/src/System.Management.Automation/resources/ru/RunspaceStrings.ru.resx b/src/System.Management.Automation/resources/ru/RunspaceStrings.ru.resx index aad8128d283..2aafcb43f33 100644 --- a/src/System.Management.Automation/resources/ru/RunspaceStrings.ru.resx +++ b/src/System.Management.Automation/resources/ru/RunspaceStrings.ru.resx @@ -172,7 +172,7 @@ Параметры потока можно изменить, только если используется многопотоковое подразделение (MTA), текущие параметры — UseNewThread или UseCurrentThread, а новое значение — ReuseThread. - {0} не может иметь значение false, если языковой режим — {1} или {2}. + {0} не может иметь значение false, если режим языка — {1} или {2}. Невозможно отключить пространство выполнения, доступное только локально. @@ -184,7 +184,8 @@ Сеанс занят. Подключение к сеансу будет установлено, как только он станет доступным. Чтобы отменить команду Enter-PSSession, нажмите Ctrl-C. - Не удается выполнить команду. В этой конфигурации сеанса вызов сценария не поддерживается. Это может происходить, если конфигурация сеанса работает в режиме без языка. + Не удается выполнить команду. Вызов сценария не поддерживается в этой конфигурации сеанса. Это может произойти, если конфигурация сеанса находится в режиме NoLanguage. + {StrContains="NoLanguage"} Операции отключения и подключения не разрешается использовать в локальных пространствах выполнения. diff --git a/src/System.Management.Automation/resources/ru/SecuritySupportStrings.ru.resx b/src/System.Management.Automation/resources/ru/SecuritySupportStrings.ru.resx index f3f4eabd1a1..f32af9def99 100644 --- a/src/System.Management.Automation/resources/ru/SecuritySupportStrings.ru.resx +++ b/src/System.Management.Automation/resources/ru/SecuritySupportStrings.ru.resx @@ -164,5 +164,6 @@ Файл сценария {0} не является доверенным политикой и будет работать в режиме ConstrainedLanguage. + {StrContains="ConstrainedLanguage"} \ No newline at end of file diff --git a/src/System.Management.Automation/resources/ru/SessionStateStrings.ru.resx b/src/System.Management.Automation/resources/ru/SessionStateStrings.ru.resx index eaa87fc7490..2a12c80a0b9 100644 --- a/src/System.Management.Automation/resources/ru/SessionStateStrings.ru.resx +++ b/src/System.Management.Automation/resources/ru/SessionStateStrings.ru.resx @@ -653,5 +653,6 @@ В режиме ConstrainedLanguage будет запрещено устанавливать или изменять значение AllScope для области переменной "{0}". + {StrContains="ConstrainedLanguage"} \ No newline at end of file diff --git a/src/System.Management.Automation/resources/tr/AutomationExceptions.tr.resx b/src/System.Management.Automation/resources/tr/AutomationExceptions.tr.resx index a967ee1156d..481299486f6 100644 --- a/src/System.Management.Automation/resources/tr/AutomationExceptions.tr.resx +++ b/src/System.Management.Automation/resources/tr/AutomationExceptions.tr.resx @@ -205,6 +205,7 @@ Derlenmiş Betik Bloğu Dot Source - Geçerli kapsamdaki ' {0}' betik bloğu çağrısına, Kısıtlanmış Dil modunda izin verilmeyecek. Betik dili modu: {1}, Bağlam dili modu: {2}. + Geçerli kapsama betik bloğu '{0}' çağrısına ConstrainedLanguage modda izin verilmez. Betik dili modu: {1}, Bağlam dili modu: {2}. + {StrContains="ConstrainedLanguage"} \ No newline at end of file diff --git a/src/System.Management.Automation/resources/tr/CatalogStrings.tr.resx b/src/System.Management.Automation/resources/tr/CatalogStrings.tr.resx index 1a7685e15c2..d4fa19004a7 100644 --- a/src/System.Management.Automation/resources/tr/CatalogStrings.tr.resx +++ b/src/System.Management.Automation/resources/tr/CatalogStrings.tr.resx @@ -151,7 +151,8 @@ Katalog sürümü geçerli değil. Yalnızca katalog sürüm {0} ve sürüm {1} desteklenir. - '{0}' is a version catalog that uses SHA0 or SHA1. Consider regenerating this catalog with '-CatalogVersion 2'. + '{0}', zayıf SHA-1 karma algoritmasını kullanan 1. sürüm bir katalogdur. Bu kataloğu '-CatalogVersion 2' ile yeniden oluşturmayı göz önünde bulundurun. + {StrContains="SHA-1"}{StrContains="-CatalogVersion 2"} Katalog tanım dosyası açılamıyor. diff --git a/src/System.Management.Automation/resources/tr/CommandBaseStrings.tr.resx b/src/System.Management.Automation/resources/tr/CommandBaseStrings.tr.resx index 4e1b9966f8a..7e87204f008 100644 --- a/src/System.Management.Automation/resources/tr/CommandBaseStrings.tr.resx +++ b/src/System.Management.Automation/resources/tr/CommandBaseStrings.tr.resx @@ -232,12 +232,14 @@ Reviewed by TArcher on 2010-07-20 Betik Bloğu İşleme Dot-Source Denetimi - Betik bloğu '{0}' için Dot-Source işleme, dil modu '{1}' geçerli dil modu '{2}' ile eşleşmediği için Kısıtlı Dil modunda başarısız olur. + '{0}' betik bloğunun dil modu '{1}' geçerli dil modu '{2}' ile eşleşmediğinden, ConstrainedLanguage modunda Dot-Source işleme başarısız olacaktır. + {StrContains="ConstrainedLanguage"} Komut Arayıcı - '{1}' modülündeki '{0}' komutuna güvenilmiyor ve Kısıtlı Dil modunda erişilebilir olmayacak. + '{1}' modülündeki '{0}' komutuna güvenilmiyor ve ConstrainedLanguage modunda erişilebilir olmayacak. + {StrContains="ConstrainedLanguage"} \ No newline at end of file diff --git a/src/System.Management.Automation/resources/tr/ExtendedTypeSystem.tr.resx b/src/System.Management.Automation/resources/tr/ExtendedTypeSystem.tr.resx index 29427f38e7f..9004c44a5d2 100644 --- a/src/System.Management.Automation/resources/tr/ExtendedTypeSystem.tr.resx +++ b/src/System.Management.Automation/resources/tr/ExtendedTypeSystem.tr.resx @@ -396,11 +396,13 @@ PS> [System.Collections.Generic.Comparer``1]::get_Default() HashTable'dan '{0}' türüne dönüştürme, ConstrainedLanguage modunda izin verilmeyecektir. + {StrContains="ConstrainedLanguage"} Genişletilmiş Tür Sistemi Hashtable Dönüşümü - KısıtlanmışDil modunda '{0}' türünden '{1}' türüne dönüştürmeye izin verilmeyecek. + ConstrainedLanguage modunda '{0}' türünden '{1}' türüne dönüştürmeye izin verilmeyecek. + {StrContains="ConstrainedLanguage"} \ No newline at end of file diff --git a/src/System.Management.Automation/resources/tr/InternalCommandStrings.tr.resx b/src/System.Management.Automation/resources/tr/InternalCommandStrings.tr.resx index d737425fbca..170b1b1bbde 100644 --- a/src/System.Management.Automation/resources/tr/InternalCommandStrings.tr.resx +++ b/src/System.Management.Automation/resources/tr/InternalCommandStrings.tr.resx @@ -145,13 +145,15 @@ "{0}" giriş adı bir yönteme çözümlenemiyor. - Kısıtlı dil modunda yöntem çağrılamaz. + RestrictedLanguage modunda yöntem çağrılamaz. + {StrContains="RestrictedLanguage"} -WhatIf ve -Confirm parametreleri betik blokları için desteklenmez. - Kısıtlı Dil modunda '{0}' işlemine izin verilmiyor. + RestrictedLanguage modunda '{0}' işlemine izin verilmiyor. + {StrContains="RestrictedLanguage"} Belirtilen iki değeri karşılaştırmak için bir işleç gerekiyor. Komuta geçerli bir işleç ekleyin ve sonra komutu yeniden deneyin. Örneğin, Get-Process | Where-Object -Property Name -eq Idle @@ -188,6 +190,7 @@ ErrorAction, WarningAction, InformationAction, PipelineVariable ForEach-Object Cmdlet'i - Kısıtlı Dil modunda çalıştırıldığında, '{0}' türünde yöntem çağrısına izin verilmez. + ConstrainedLanguage modunda çalıştırıldığında, '{0}' türünde yöntem çağrısına izin verilmez. + {StrContains="ConstrainedLanguage"} \ No newline at end of file diff --git a/src/System.Management.Automation/resources/tr/Metadata.tr.resx b/src/System.Management.Automation/resources/tr/Metadata.tr.resx index 2b9f481c3fd..97678770117 100644 --- a/src/System.Management.Automation/resources/tr/Metadata.tr.resx +++ b/src/System.Management.Automation/resources/tr/Metadata.tr.resx @@ -262,6 +262,7 @@ ValidateTrustedData Öznitelik Denetimi Hatası - “{0}" parametre bağımsız değişkeni güvenilir değil ve Kısıtlanmış Dil modunda ValidateTrustedData parametre özniteliği denetiminde başarısız olacak. + “{0}" parametre bağımsız değişkeni güvenilir değil ve ConstrainedLanguage modunda ValidateTrustedData parametre özniteliği denetiminde başarısız olacak. + {StrContains="ValidateTrustedData"}{StrContains="ConstrainedLanguage"} \ No newline at end of file diff --git a/src/System.Management.Automation/resources/tr/Modules.tr.resx b/src/System.Management.Automation/resources/tr/Modules.tr.resx index e3ec0cb6379..a22075ed902 100644 --- a/src/System.Management.Automation/resources/tr/Modules.tr.resx +++ b/src/System.Management.Automation/resources/tr/Modules.tr.resx @@ -626,6 +626,7 @@ ConstrainedLanguage modunda *.ps1 dosyalarının modül olarak içeri aktarılmasına izin verilmiyor. + {StrContains="ConstrainedLanguage"} {0} betik modülü, modül bildiriminden farklı bir dil moduna sahip olduğundan betik modülü yüklenirken bir hata oluştu. Bildirim dil modu {1} ve modül dil modu {2}. Tüm modül dosyalarının imzalı olduğundan veya uygulamanızın izin verilenler listesi yapılandırmasının bir parçası olduğundan emin olun. @@ -638,6 +639,7 @@ Oturum ConstrainedLanguage modundayken yeni modül oluşturulamaz. + {StrContains="ConstrainedLanguage"} 'Core' sürümüyle uyumlu yerleşik '{0}' modülü bulunamıyor. Lütfen PowerShell yerleşik modüllerinin kullanılabilir olduğundan emin olun. Bunlar genellikle PowerShell paketinin içinde, $PSHOME modül yolunun altında yer alır ve PowerShell’in düzgün çalışması için gereklidir. @@ -646,42 +648,49 @@ Export-ModuleMember Cmdlet'i - '{0}' modülü, geçerli '{2}' oturumundan farklı olan '{1}' dil moduna sahip olduğundan modül üyelerinin dışarı aktarılması Kısıtlı Dil modunda başarısız olur. + '{0}' modülü, geçerli oturum '{2}' farklı bir dil modu '{1}' sahip olduğundan, modül üyelerinin dışarı aktarılması ConstrainedLanguage modda başarısız olur. + {StrContains="ConstrainedLanguage"} Modül Örtük İşlev Dışarı Aktarma - '{0}' modülü güvenilir (Tam Dil modunda çalışıyor) ancak oturum güvenilir olmadığından (Kısıtlı Dil modunda çalışıyor) bu modül için örtük işlev dışarı aktarma işlemi reddedilecek. En iyi uygulama olarak, modül işlevlerini her zaman tam ada göre tek tek dışarı aktarın. + '{0}' modülü güvenilir (FullLanguage modunda çalışıyor) ancak oturum güvenilir olmadığından (ConstrainedLanguage modunda çalışıyor) bu modül için örtük işlev dışarı aktarma işlemi reddedilecek. En iyi uygulama olarak, modül işlevlerini her zaman tam ada göre tek tek dışarı aktarın. + {StrContains="FullLanguage"}{StrContains="ConstrainedLanguage"} Betik Dosyası Modül Olarak İçeri Aktarılıyor '{0}' betik dosyasının modül olarak içeri aktarılmasına ConstrainedLanguage modunda izin verilmeyecek. + {StrContains="ConstrainedLanguage"} Modül Nokta Kaynak İşleci İçeriyor - '{0}' modülünün içeri aktarılması, joker karakterler kullanırken aynı zamanda nokta kaynak işlecini de kullanarak işlevleri dışarı aktardığından Kısıtlı Dil modunda başarısız olacak. + '{0}' modülünün içeri aktarılması, joker karakterler kullanırken aynı zamanda nokta kaynak işlecini de kullanarak işlevleri dışarı aktardığından ConstrainedLanguage modunda başarısız olacak. + {StrContains="ConstrainedLanguage"} - "Modül Dışarı Aktaran İşlevler + Modül Dışarı Aktaran İşlevler - '{0}' modülü, işlevleri ad joker karakterleri kullanarak dışarı aktarır. Kısıtlı Dil modunda çalıştırıldığında iç içe modül işlev adlarının tümü kaldırılır. + '{0}' modülü, işlevleri ad joker karakterleri kullanarak dışarı aktarır. ConstrainedLanguage modunda çalıştırıldığında iç içe modül işlev adlarının tümü kaldırılır. + {StrContains="ConstrainedLanguage"} - "Yeni Modül Cmdlet'i + Yeni-Modül Cmdlet'i - Güvenilmeyen bir Kısıtlı Dil oturumundaki yeni bir modülün FullLanguage betik bloğu sağlaması engellenir. + Güvenilmeyen bir ConstrainedLanguage oturumundaki yeni bir modülün FullLanguage betik bloğu sağlaması engellenir. + {StrContains="ConstrainedLanguage"}{StrContains="FullLanguage"} - "Modül Eşleşmeyen Dil Modları + Modül Eşleşmeyen Dil Modları - Üst modülden farklı bir dil moduna sahip bağımlı bir modül yükleniyor. Kısıtlı Dil modunda buna izin verilmez. + Üst modülden farklı bir dil moduna sahip bağımlı bir modül yükleniyor. ConstrainedLanguage modunda buna izin verilmez. + {StrContains="ConstrainedLanguage"} \ No newline at end of file diff --git a/src/System.Management.Automation/resources/tr/ParameterBinderStrings.tr.resx b/src/System.Management.Automation/resources/tr/ParameterBinderStrings.tr.resx index 52e7725a336..fd93588f6cb 100644 --- a/src/System.Management.Automation/resources/tr/ParameterBinderStrings.tr.resx +++ b/src/System.Management.Automation/resources/tr/ParameterBinderStrings.tr.resx @@ -250,12 +250,14 @@ Yöntem veya Özellik Çağrısına İzin Verilmiyor - Güvenilmeyen betikler için Kısıtlı Dil modunda, '{1}' türündeki '{0}' Yöntemi veya Özelliğinin çağrılmasına izin verilmez. + Güvenilmeyen betikler için '{1}' türünde Yöntem veya Özellik '{0}' çağrılmasına ConstrainedLanguage modda izin verilmez. + {StrContains="ConstrainedLanguage"} Tür Oluşturmaya İzin Verilmiyor - Güvenilmeyen betikler için Kısıtlı Dil modunda parametre bağlama sırasında '{0}' türünün oluşturulmasına izin verilmez. + Güvenilmeyen betikler için ConstrainedLanguage modunda parametre bağlama sırasında '{0}' Türünün oluşturulmasına izin verilmez. + {StrContains="ConstrainedLanguage"} \ No newline at end of file diff --git a/src/System.Management.Automation/resources/tr/ParserStrings.tr.resx b/src/System.Management.Automation/resources/tr/ParserStrings.tr.resx index dee6a5afee9..05561863058 100644 --- a/src/System.Management.Automation/resources/tr/ParserStrings.tr.resx +++ b/src/System.Management.Automation/resources/tr/ParserStrings.tr.resx @@ -402,7 +402,8 @@ Doğru biçim: foreach ($a in $b) {...} Betik çok karmaşık olduğundan işlem durduruldu. - Söz dizimi bu çalışma alanı tarafından desteklenmiyor. Bu durum, çalışma alanı dilsiz moddaysa oluşabilir. + Söz dizimi bu çalışma alanı tarafından desteklenmiyor. Bu durum, çalışma alanı NoLanguage modundaysa oluşabilir. + {StrContains="NoLanguage"} -split işleciyle kullanılan seçenek birleşimi geçerli değil. @@ -580,85 +581,112 @@ Doğru biçim: foreach ($a in $b) {...} Değişken adlarında { yerine `{ kullanın. - Veri bölümünün deyim bloğu eksik. + Data bölümünün deyim bloğu eksik. + {StrContains="Data"} - Veri bölümünün "{0}" parametresi geçerli değil. Geçerli Veri bölümü parametresi SupportedCommand'dir. + Data bölümünün "{0}" parametresi geçerli değil. Geçerli Data bölümü parametresi SupportedCommand'dir. + {StrContains="Data"}{StrContains="SupportedCommand"} - Kısıtlı dil modunda veya bir Veri bölümünde dizi başvurularına izin verilmez. + RestrictedLanguage modunda veya bir Data bölümünde dizi başvurularına izin verilmez. + {StrContains="RestrictedLanguage"}{StrContains="Data"} - Kısıtlı dil modunda veya bir Veri bölümünde atama deyimlerine izin verilmez. + RestrictedLanguage modunda veya bir Data bölümünde atama deyimlerine izin verilmez. + {StrContains="RestrictedLanguage"}{StrContains="Data"} - Kısıtlı dil modunda veya bir Veri bölümünde yeniden yönlendirmeye izin verilmez. + RestrictedLanguage modunda veya bir Data bölümünde yeniden yönlendirmeye izin verilmez. + {StrContains="RestrictedLanguage"}{StrContains="Data"} - Kısıtlı dil modunda veya bir Veri bölümünde Do ve While deyimlerine izin verilmez. + RestrictedLanguage modunda veya bir Data bölümünde Do ve While deyimlerine izin verilmez. + {StrContains="Do"}{StrContains="While"}{StrContains="RestrictedLanguage"}{StrContains="Data"} - Kısıtlı dil modunda veya bir Veri bölümünde genişletilebilir dizelere izin verilmez. + RestrictedLanguage modunda veya bir Data bölümünde genişletilebilir dizelere izin verilmez. + {StrContains="RestrictedLanguage"}{StrContains="Data"} - Kısıtlı dil modunda veya bir Veri bölümünde '{0}' işlecine izin verilmez. + '{0}' işlecine RestrictedLanguage modunda veya Data bölümünde izin verilmez. + {StrContains="RestrictedLanguage"}{StrContains="Data"} - Kısıtlı dil modunda veya bir Veri bölümünde Trap deyimine izin verilmez. + RestrictedLanguage modunda veya bir Data bölümünde Trap deyimine izin verilmez. + {StrContains="Trap"}{StrContains="RestrictedLanguage"}{StrContains="Data"} - Kısıtlı dil modunda veya bir Veri bölümünde Try deyimine izin verilmez. + RestrictedLanguage modunda veya bir Data bölümünde Try deyimine izin verilmez. + {StrContains="Try"}{StrContains="RestrictedLanguage"}{StrContains="Data"} - Break, Continue, Return, Exit ve Throw gibi akış denetimi deyimlerine kısıtlı dil modunda veya Veri bölümünde izin verilmez. + Break, Continue, Return, Exit ve Throw gibi akış denetimi deyimlerine RestrictedLanguage modunda veya Data bölümünde izin verilmez. + {StrContains="Break"}{StrContains="Continue"}{StrContains="Return"}{StrContains="Exit"}{StrContains="Throw"}{StrContains="RestrictedLanguage"}{StrContains="Data"} - Kısıtlı dil modunda veya bir Veri bölümünde foreach deyimlerine izin verilmez. + RestrictedLanguage modunda veya bir Data bölümünde Foreach deyimlerine izin verilmez. + {StrContains="Foreach"}{StrContains="RestrictedLanguage"}{StrContains="Data"} - Kısıtlı dil modunda veya bir Veri bölümünde For ve While deyimlerine izin verilmez. + RestrictedLanguage modunda veya bir Data bölümünde For ve While deyimlerine izin verilmez. + {StrContains="For"}{StrContains="While"}{StrContains="RestrictedLanguage"}{StrContains="Data"} - Kısıtlı dil modunda veya bir Veri bölümünde işlev bildirimlerine izin verilmez. + RestrictedLanguage modunda veya bir Data bölümünde Function bildirimlerine izin verilmez. + {StrContains="Function"}{StrContains="RestrictedLanguage"}{StrContains="Data"} - Kısıtlı dil modunda veya bir Veri bölümünde Metot çağrılarına izin verilmez. + RestrictedLanguage modunda veya bir Data bölümünde Metot çağrılarına izin verilmez. + {StrContains="RestrictedLanguage"}{StrContains="Data"} - Kısıtlı dil modunda veya bir Veri bölümünde parametre bildirimlerine izin verilmez. + RestrictedLanguage modunda veya bir Data bölümünde parametre bildirimlerine izin verilmez. + {StrContains="RestrictedLanguage"}{StrContains="Data"} - Kısıtlı dil modunda veya bir Veri bölümünde özellik başvurularına izin verilmez. + RestrictedLanguage modunda veya bir Data bölümünde özellik başvurularına izin verilmez. + {StrContains="RestrictedLanguage"}{StrContains="Data"} - Kısıtlı dil modunda veya bir Veri bölümünde Betik bloğu değişmez değerine izin verilmez. + RestrictedLanguage modunda veya bir Data bölümünde Betik bloğu değişmez değerine izin verilmez. + {StrContains="RestrictedLanguage"}{StrContains="Data"} - Kısıtlı dil modunda veya bir Veri bölümünde Switch deyimine izin verilmez. + RestrictedLanguage modunda veya bir Data bölümünde Switch deyimine izin verilmez. + {StrContains="Switch"}{StrContains="RestrictedLanguage"}{StrContains="Data"} - Kısıtlı dil modunda veya Veri bölümünde başvurulamayan bir değişkene başvuruluyor. Başvurulabilecek değişkenler şunlardır: {0}. + RestrictedLanguage modunda veya Data bölümünde başvurulamayan bir değişkene başvuruluyor. Başvurulabilecek değişkenler şunlardır: {0}. + {StrContains="RestrictedLanguage"}{StrContains="Data"} - Kısıtlı dil modunda veya bir Veri bölümünde '{0}' komutuna izin verilmez. + RestrictedLanguage modunda veya bir Data bölümünde '{0}' komutuna izin verilmez. + {StrContains="RestrictedLanguage"}{StrContains="Data"} - Veri deyimine kısıtlı dil modunda veya başka bir Veri bölümünde izin verilmez. + RestrictedLanguage modunda veya başka bir Data bölümünde Veri deyimine izin verilmez. + {StrContains="RestrictedLanguage"}{StrContains="Data"} - Veri bölümünün SupportedCommand parametresinde bir değer eksik. Parametreye bir cmdlet veya işlev adı sağlayın. + Data bölümünün SupportedCommand parametresinde bir değer eksik. Parametreye bir cmdlet veya işlev adı sağlayın. + {StrContains="SupportedCommand"}{StrContains="Data"} - Veri bölümünde Begin deyim bloğu, Process deyim bloğu veya parametre deyimi kullanılamaz. + Data bölümünde Begin deyim bloğu, Process deyim bloğu veya Param deyimi kullanılamaz. + {StrContains="Begin"}{StrContains="Process"}{StrContains="Param"}{StrContains="Data"} - Kısıtlı dil modunda veya Veri bölümünde "{0}" karakterden uzun dize çarpma sonuçlarına izin verilmez. + RestrictedLanguage modunda veya Data bölümünde "{0}" karakterden uzun dize çarpma sonuçlarına izin verilmez. + {StrContains="RestrictedLanguage"}{StrContains="Data"} - Kısıtlı dil modunda veya Veri bölümünde, {0} öğeden fazla sonuç veren dizi çarpımına izin verilmez. + RestrictedLanguage modunda veya Data bölümünde, {0} öğeden fazla sonuç veren dizi çarpımına izin verilmez. + {StrContains="RestrictedLanguage"}{StrContains="Data"} - Kısıtlı dil modunda veya bir Veri bölümünde dot sourcing kullanımına izin verilmez. + RestrictedLanguage modunda veya bir Data bölümünde dot sourcing kullanımına izin verilmez. + {StrContains="RestrictedLanguage"}{StrContains="Data"} Öznitelik bağımsız değişkeni sabit veya betik bloğu olmalıdır. @@ -721,10 +749,12 @@ Doğru biçim: foreach ($a in $b) {...} Karma sabit değerinde null anahtara izin verilmez. - Kısıtlı dil modunda veya bir Veri bölümünde özniteliklere izin verilmez. + RestrictedLanguage modunda veya bir Data bölümünde özniteliklere izin verilmez. + {StrContains="RestrictedLanguage"}{StrContains="Data"} - Kısıtlı dil modunda veya bir Veri bölümünde {0} türüne izin verilmez. + RestrictedLanguage modunda veya bir Data bölümünde {0} türüne izin verilmez. + {StrContains="RestrictedLanguage"}{StrContains="Data"} '{0}' salt okunur bir özelliktir. @@ -784,7 +814,8 @@ Doğru biçim: foreach ($a in $b) {...} '{0}' anahtar sözcüğü sonrasında deyim gövdesi eksik. - Kısıtlanmış dil modunda veya Veri bölümünde paralel ve sıralı bloklara izin verilmez. + RestrictedLanguage modunda veya Data bölümünde Parallel ve Sequence bloklarına izin verilmez. + {StrContains="Parallel"}{StrContains="Sequence"}{StrContains="RestrictedLanguage"}{StrContains="Data"} Beklenmeyen '{0}' anahtar sözcüğü. @@ -796,7 +827,8 @@ Doğru biçim: foreach ($a in $b) {...} Metot çağrılamaz. - Hashtable, şu türde bir nesneye dönüştürülemiyor: {0}. Hashtable-to-Object dönüşümü, kısıtlı dil modunda veya Veri bölümünde desteklenmez. + Hashtable, şu türde bir nesneye dönüştürülemiyor: {0}. Hashtable-to-Object dönüşümü, RestrictedLanguage modunda veya Data bölümünde desteklenmez. + {StrContains="RestrictedLanguage"}{StrContains="Data"} Bağımsız değişken sabit olmalıdır. @@ -842,7 +874,8 @@ Doğru biçim: foreach ($a in $b) {...} Şema dosyası {0} bulunamadı. Yapılandırma deyiminde belirtilen tüm modüllerin schema.mof dosyası içerdiğini doğrulayın ve betiği yeniden çalıştırmayı deneyin. - Veri bölümü tanımlanamıyor. Bu dil modunda ek desteklenen komutların tanımlanması desteklenmiyor. + Data bölümü tanımlanamıyor. Bu dil modunda ek desteklenen komutların tanımlanması desteklenmiyor. + {StrContains="Data"} Yapılandırma deyiminde '{' eksik. @@ -935,7 +968,8 @@ ModuleVersion : İçeri aktarılacak modülün sürümü. Kullanılırsa, Module '{0}' kaynağı yüklenemiyor: Kaynak bulunamadı. - Configuration anahtar sözcüğü constrainedLanguage modunda kullanılamaz. + Configuration anahtar sözcüğü ConstrainedLanguage modunda kullanılamaz. + {StrContains="ConstrainedLanguage"} Yapılandırma adı '{0}' geçerli değil. Standart adlar yalnızca harfler (a-z, A-Z), sayılar (0-9), nokta (.), kısa çizgi (-) ve alt çizgi (_) içerebilir. Ad null veya boş olamaz ve bir harfle başlamalıdır. @@ -1321,6 +1355,7 @@ ModuleVersion : İçeri aktarılacak modülün sürümü. Kullanılırsa, Module Class anahtar sözcüğü ConstrainedLanguage modunda kullanılamaz. + {StrContains="Class"}{StrContains="ConstrainedLanguage"} Üçlü ifadede ':' eksik. @@ -1338,37 +1373,43 @@ ModuleVersion : İçeri aktarılacak modülün sürümü. Kullanılırsa, Module Ayrıştırıcı Yapılandırma Anahtar Sözcüğü - Configuration anahtar sözcüğüne, güvenilmeyen betikler için Kısıtlı Dil modunda izin verilmez. + Configuration anahtar sözcüğüne, güvenilmeyen betikler için ConstrainedLanguage modunda izin verilmez. + {StrContains="Configuration"}{StrContains="ConstrainedLanguage"} Ayrıştırıcı Sınıf Anahtar Sözcüğü - Class anahtar sözcüğüne, güvenilmeyen betikler için Kısıtlı Dil modunda izin verilmez. + Class anahtar sözcüğüne, güvenilmeyen betikler için ConstrainedLanguage modunda izin verilmez. + {StrContains="Class"}{StrContains="ConstrainedLanguage"} Ayrıştırıcı Veri Bölümü Desteklenen Komut - SupportedCommand parametresini içeren Veri Bölümü, güvenilmeyen betikler için Kısıtlı Dil modunda kullanılamaz. + SupportedCommand parametresini içeren Data Bölümü, güvenilmeyen betikler için ConstrainedLanguage modunda kullanılamaz. + {StrContains="Data"}{StrContains="SupportedCommand"}{StrContains="ConstrainedLanguage"} Modül Kapsamı Çağrı İşleci - Modül kapsamı çağrı işleci, Kısıtlı Dil modunda reddedilecek. + Modül kapsamı çağrı işleci, ConstrainedLanguage modunda reddedilecek. + {StrContains="ConstrainedLanguage"} ForEach Anahtar Sözcüğü Metot Çağrısı - ForEach anahtar sözcüğü, Kısıtlı Dil modunda çalıştırıldığında '{0}' yineleme öğesi metot çağrısında başarısız olur. + ForEach anahtar sözcüğü, ConstrainedLanguage modunda çalıştırıldığında '{0}' yineleme öğesi metot çağrısında başarısız olur. + {StrContains="ForEach"}{StrContains="ConstrainedLanguage"} İfade Değerlendirmesi Başarısız Olabilir - Bir betik bloğundan basamaklanabilir işlem hattı oluşturmak, betik bloğu içindeki bazı ifadelerin değerlendirilmesini gerektirebilir. İfade değerlendirmesi, ifade sabit bir değer temsil etmediği sürece Kısıtlı Dil modunda sessizce başarısız olur ve 'null' döndürür. + Bir betik bloğundan basamaklanabilir işlem hattı oluşturmak, betik bloğu içindeki bazı ifadelerin değerlendirilmesini gerektirebilir. İfade değerlendirmesi, ifade sabit bir değer temsil etmediği sürece ConstrainedLanguage modunda sessizce başarısız olur ve 'null' döndürür. + {StrContains="ConstrainedLanguage"} Configuration anahtar sözcüğü ARM64 işlemcilerde desteklenmiyor. diff --git a/src/System.Management.Automation/resources/tr/RemotingErrorIdStrings.tr.resx b/src/System.Management.Automation/resources/tr/RemotingErrorIdStrings.tr.resx index 3cd661b708b..4d66c4fb539 100644 --- a/src/System.Management.Automation/resources/tr/RemotingErrorIdStrings.tr.resx +++ b/src/System.Management.Automation/resources/tr/RemotingErrorIdStrings.tr.resx @@ -737,7 +737,7 @@ Devam etmek istiyor musunuz? 1. WinRM hizmetini durdurun ve devre dışı bırakın. 2. Herhangi bir IP adresindeki istekleri kabul eden dinleyiciyi silin. 3. WS-Management iletişimleri için güvenlik duvarı özel durumlarını devre dışı bırakın. - 4. LocalAccountTokenFilterPolicy değerini 0 olarak geri yükleyin. Bu, bilgisayardaki Yönetici grubunun üyelerine uzak erişimi kısıtlar. + 4. LocalAccountTokenFilterPolicy değerini 0 olarak geri yükleyin. Bu, bilgisayardaki Yönetici grubunun üyelerine uzaktan erişimi kısıtlar. Erişim reddedildi. Bu cmdlet'i çalıştırmak için PowerShell'i "Yönetici olarak çalıştır" seçeneğiyle başlatın. @@ -1022,6 +1022,7 @@ Microsoft.PowerShell gibi PowerShell oturum yapılandırmalarına ve Register-PS Bir oturuma uygulandığında uygulanacak dil modu. 'NoLanguage' (önerilen), 'RestrictedLanguage', 'ConstrainedLanguage' veya 'FullLanguage' olabilir + {StrContains="NoLanguage"}{StrContains="RestrictedLanguage"}{StrContains="ConstrainedLanguage"}{StrContains="FullLanguage"} Bir oturuma uygulandığında içeri aktarılacak modüller @@ -1721,7 +1722,8 @@ SSH istemci işlemi, bağlantı kurulamadan önce sonlandırıldı. İfade Değerlendirmesi Başarısız Olabilir - Bir betik bloğundan PowerShell nesnesi oluşturmak, betik bloğu içindeki bazı ifadelerin değerlendirilmesini gerektirebilir. İfade değerlendirmesi, ifade sabit bir değer temsil etmediği sürece Kısıtlı Dil modunda sessizce başarısız olur ve 'null' döndürür. + Bir betik bloğundan PowerShell nesnesi oluşturmak, betik bloğu içindeki bazı ifadelerin değerlendirilmesini gerektirebilir. İfade değerlendirmesi, ifade sabit bir değer temsil etmediği sürece ConstrainedLanguage modunda sessizce başarısız olur ve 'null' döndürür. + {StrContains="ConstrainedLanguage"} Hyper-V VM Durumu alınamadı. Değer {0} türündeydi, ancak Microsoft.HyperV.PowerShell.VMState veya System.String olması bekleniyordu. diff --git a/src/System.Management.Automation/resources/tr/RunspaceStrings.tr.resx b/src/System.Management.Automation/resources/tr/RunspaceStrings.tr.resx index 83cb75ae192..215b9ac0dae 100644 --- a/src/System.Management.Automation/resources/tr/RunspaceStrings.tr.resx +++ b/src/System.Management.Automation/resources/tr/RunspaceStrings.tr.resx @@ -184,7 +184,8 @@ Oturum meşgul. Kullanılabilir olduğu anda oturuma bağlanacaksınız. Enter-PSSession komutunu iptal etmek için Ctrl-C tuşlarına basın. - Komut tamamlanamıyor. Betik çağrısı bu oturum yapılandırmasında desteklenmiyor. Oturum yapılandırması dil yok modundaysa bu durum oluşabilir. + Komut tamamlanamıyor. Betik çağrısı bu oturum yapılandırmasında desteklenmiyor. Oturum yapılandırması NoLanguage moddaysa bu durum oluşabilir. + {StrContains="NoLanguage"} Yerel çalışma alanlarında Bağlantıyı Kes ve Bağlan işlemlerini kullanamazsınız. diff --git a/src/System.Management.Automation/resources/tr/SecuritySupportStrings.tr.resx b/src/System.Management.Automation/resources/tr/SecuritySupportStrings.tr.resx index 22ac9e48b7e..2034483102f 100644 --- a/src/System.Management.Automation/resources/tr/SecuritySupportStrings.tr.resx +++ b/src/System.Management.Automation/resources/tr/SecuritySupportStrings.tr.resx @@ -164,5 +164,6 @@ '{0}' betik dosyasına ilke tarafından güvenilmiyor ve ConstrainedLanguage modunda çalışacak. + {StrContains="ConstrainedLanguage"} \ No newline at end of file diff --git a/src/System.Management.Automation/resources/tr/SessionStateStrings.tr.resx b/src/System.Management.Automation/resources/tr/SessionStateStrings.tr.resx index 90f700ff9a1..d2f6f36a6cb 100644 --- a/src/System.Management.Automation/resources/tr/SessionStateStrings.tr.resx +++ b/src/System.Management.Automation/resources/tr/SessionStateStrings.tr.resx @@ -653,5 +653,6 @@ ConstrainedLanguage modunda, '{0}' değişkeninin kapsamını AllScope olarak değiştirmek veya bu kapsamda oluşturmak engellenir. + {StrContains="ConstrainedLanguage"} \ No newline at end of file diff --git a/src/System.Management.Automation/resources/zh-Hans/AutomationExceptions.zh-Hans.resx b/src/System.Management.Automation/resources/zh-Hans/AutomationExceptions.zh-Hans.resx index 1e5c0c6728a..1675c303f1d 100644 --- a/src/System.Management.Automation/resources/zh-Hans/AutomationExceptions.zh-Hans.resx +++ b/src/System.Management.Automation/resources/zh-Hans/AutomationExceptions.zh-Hans.resx @@ -205,6 +205,7 @@ 编译的脚本块点源 - 在“受约束语言”模式下,将不允许在当前范围中调用脚本块 "{0}"。脚本语言模式: {1},上下文语言模式: {2}。 + 在 ConstrainedLanguage 模式下,将不允许对当前作用域调用脚本块 '{0}'。脚本语言模式: {1},上下文语言模式: {2}。 + {StrContains="ConstrainedLanguage"} \ No newline at end of file diff --git a/src/System.Management.Automation/resources/zh-Hans/CatalogStrings.zh-Hans.resx b/src/System.Management.Automation/resources/zh-Hans/CatalogStrings.zh-Hans.resx index 3b954f69a92..1935ac6dd85 100644 --- a/src/System.Management.Automation/resources/zh-Hans/CatalogStrings.zh-Hans.resx +++ b/src/System.Management.Automation/resources/zh-Hans/CatalogStrings.zh-Hans.resx @@ -151,7 +151,8 @@ 目录版本无效。我们仅支持目录版本 {0} 和版本 {1}。 - '{0}' is a version catalog that uses SHA0 or SHA1. Consider regenerating this catalog with '-CatalogVersion 2'. + “{0}”是使用弱 SHA-1 哈希算法的版本 1 目录。请考虑使用 '-CatalogVersion 2' 重新生成此目录。 + {StrContains="SHA-1"}{StrContains="-CatalogVersion 2"} 无法打开目录定义文件。 diff --git a/src/System.Management.Automation/resources/zh-Hans/CommandBaseStrings.zh-Hans.resx b/src/System.Management.Automation/resources/zh-Hans/CommandBaseStrings.zh-Hans.resx index 8e2c977e3f8..c63af398ccd 100644 --- a/src/System.Management.Automation/resources/zh-Hans/CommandBaseStrings.zh-Hans.resx +++ b/src/System.Management.Automation/resources/zh-Hans/CommandBaseStrings.zh-Hans.resx @@ -232,12 +232,14 @@ Reviewed by TArcher on 2010-07-20 脚本块处理点源检查 - 脚本块“{0}”的点源处理将会在受约束语言模式下失败,因为其语言模式“{1}”与当前语言模式“{2}”不匹配。 + 在 ConstrainedLanguage 模式下,脚本块 '{0}' 的点源处理将会失败,因为其语言模式 '{1}' 与当前语言模式 '{2}' 不匹配。 + {StrContains="ConstrainedLanguage"} 命令搜索器 模块“{1}”中的命令“{0}”不受信任,无法在 ConstrainedLanguage 模式下访问。 + {StrContains="ConstrainedLanguage"} \ No newline at end of file diff --git a/src/System.Management.Automation/resources/zh-Hans/ExtendedTypeSystem.zh-Hans.resx b/src/System.Management.Automation/resources/zh-Hans/ExtendedTypeSystem.zh-Hans.resx index f4707e3d69c..045b5439c87 100644 --- a/src/System.Management.Automation/resources/zh-Hans/ExtendedTypeSystem.zh-Hans.resx +++ b/src/System.Management.Automation/resources/zh-Hans/ExtendedTypeSystem.zh-Hans.resx @@ -396,11 +396,13 @@ PS> [System.Collections.Generic.Comparer``1]::get_Default() 在 ConstrainedLanguage 模式下,不允许将类型从 HashTable 转换为“{0}”。 + {StrContains="ConstrainedLanguage"} 扩展类型系统哈希表转换 在 ConstrainedLanguage 模式下,不允许将类型从“{0}”转换为“{1}”。 + {StrContains="ConstrainedLanguage"} \ No newline at end of file diff --git a/src/System.Management.Automation/resources/zh-Hans/InternalCommandStrings.zh-Hans.resx b/src/System.Management.Automation/resources/zh-Hans/InternalCommandStrings.zh-Hans.resx index 6223104bb0c..2f2718cc63b 100644 --- a/src/System.Management.Automation/resources/zh-Hans/InternalCommandStrings.zh-Hans.resx +++ b/src/System.Management.Automation/resources/zh-Hans/InternalCommandStrings.zh-Hans.resx @@ -145,13 +145,15 @@ 无法将输入名称“{0}”解析为方法。 - 无法在受限语言模式下调用方法。 + 无法在 RestrictedLanguage 模式下调用方法。 + {StrContains="RestrictedLanguage"} 脚本块不支持 -WhatIf 和 -Confirm 参数。 RestrictedLanguage 模式下不允许执行“{0}”操作。 + {StrContains="RestrictedLanguage"} 需要使用运算符来比较两个指定的值。在命令中包含有效的运算符,然后重试该命令。例如,Get-Process | Where-Object -Property Name -eq Idle @@ -188,6 +190,7 @@ ErrorAction、WarningAction、 InformationAction、PipelineVariable ForEach-Object Cmdlet - 在约束语言模式下运行时,不允许对类型“{0}”进行方法调用。 + 在 ConstrainedLanguage 模式下运行时,不允许在类型 '{0}' 上进行方法调用。 + {StrContains="ConstrainedLanguage"} \ No newline at end of file diff --git a/src/System.Management.Automation/resources/zh-Hans/Metadata.zh-Hans.resx b/src/System.Management.Automation/resources/zh-Hans/Metadata.zh-Hans.resx index e7f3dcaf233..76d1ec7faac 100644 --- a/src/System.Management.Automation/resources/zh-Hans/Metadata.zh-Hans.resx +++ b/src/System.Management.Automation/resources/zh-Hans/Metadata.zh-Hans.resx @@ -262,6 +262,7 @@ ValidateTrustedData 属性检查失败 - 参数实参“{0}”不受信任,且在约束语言模式下无法通过 ValidateTrustedData 参数属性检查。 + 参数实参 '{0}' 不受信任,且在 ConstrainedLanguage 模式下无法通过 ValidateTrustedData 参数属性检查。 + {StrContains="ValidateTrustedData"}{StrContains="ConstrainedLanguage"} \ No newline at end of file diff --git a/src/System.Management.Automation/resources/zh-Hans/Modules.zh-Hans.resx b/src/System.Management.Automation/resources/zh-Hans/Modules.zh-Hans.resx index 1643903efc3..0fb3e863f5f 100644 --- a/src/System.Management.Automation/resources/zh-Hans/Modules.zh-Hans.resx +++ b/src/System.Management.Automation/resources/zh-Hans/Modules.zh-Hans.resx @@ -626,6 +626,7 @@ 在 ConstrainedLanguage 模式下,不允许将 *.ps1 文件作为模块导入。 + {StrContains="ConstrainedLanguage"} 加载脚本模块 {0} 时发生错误,因为它的语言模式与模块清单不同。清单语言模式为 {1},模块语言模式为 {2}。请确保所有模块文件都已签名,或以其他方式包含在应用允许列表配置中。 @@ -638,6 +639,7 @@ 当会话处于 ConstrainedLanguage 模式时,无法创建新模块。 + {StrContains="ConstrainedLanguage"} 找不到与“核心”版本兼容的内置模块 "{0}"。请确保 PowerShell 内置模块可用。它们通常随 PowerShell 包一起位于 $PSHOME 模块路径下,并且是 PowerShell 正常运行所必需的。 @@ -646,42 +648,49 @@ Export-ModuleMember Cmdlet - 在 Constrained Language 模式下导出模块成员将会失败,因为模块 "{0}" 的语言模式 "{1}" 与当前会话 "{2}" 的模式不同。 + 在 ConstrainedLanguage 模式下,导出模块成员将会失败,因为模块 '{0}' 的语言模式 '{1}' 与当前会话 '{2}' 的模式不同。 + {StrContains="ConstrainedLanguage"} 模块隐式函数导出 - 由于模块 "{0}" 受信任(在完整语言模式下运行),但会话不受信任(在受约束语言模式下运行),因此将拒绝隐式导出函数。最佳做法是始终按完整名称单独导出模块函数。 + 模块 '{0}' 的隐式函数导出将被拒绝,因为它受信任 (在 FullLanguage 模式下运行) 但会话不受信任 (在 ConstrainedLanguage 模式下运行)。最佳做法是始终按全名单独导出模块函数。 + {StrContains="FullLanguage"}{StrContains="ConstrainedLanguage"} 正在将脚本文件作为模块导入 - 在 ConstrainedLanguage 模式下,不允许将脚本文件 "{0}" 作为模块导入。 + 在 ConstrainedLanguage 模式下,不允许将脚本文件“{0}”作为模块导入。 + {StrContains="ConstrainedLanguage"} 模块包含点源运算符 - 模块 "{0}" 的导入在 Constrained Language 模式下会失败,因为它在使用点源运算符的同时,还使用通配符导出函数。 + 模块 '{0}' 导入将处于失败 ConstrainedLanguage 模式,因为它使用通配符导出函数,同时还使用 dot-source 运算符。 + {StrContains="ConstrainedLanguage"} - “模块导出函数 + 模块导出函数 - 模块 "{0}" 使用名称通配符导出函数。在 Constrained Language 模式下运行时,任何嵌套模块的函数名称都将被删除。 + 模块 '{0}' 使用名称通配符导出函数。在 ConstrainedLanguage 模式下运行时,将删除任何嵌套的模块函数名称。 + {StrContains="ConstrainedLanguage"} - "New-Module Cmdlet + New-Module Cmdlet - 系统将阻止来自不受信任的 Constrained Language 会话的新模块提供 FullLanguage 脚本块。 + 系统将阻止来自不受信任的 ConstrainedLanguage 会话的新模块提供 FullLanguage 脚本块。 + {StrContains="ConstrainedLanguage"}{StrContains="FullLanguage"} - “模块语言模式不匹配 + 模块语言模式不匹配 - 正在加载的依赖模块的语言模式与父模块的不同。在受约束语言模式下,不允许这样做。 + 正在加载的依赖模块的语言模式与父模块不同。在 ConstrainedLanguage 模式下,将不允许这样做。 + {StrContains="ConstrainedLanguage"} \ No newline at end of file diff --git a/src/System.Management.Automation/resources/zh-Hans/ParameterBinderStrings.zh-Hans.resx b/src/System.Management.Automation/resources/zh-Hans/ParameterBinderStrings.zh-Hans.resx index 2407ad71e59..e7e83b1089b 100644 --- a/src/System.Management.Automation/resources/zh-Hans/ParameterBinderStrings.zh-Hans.resx +++ b/src/System.Management.Automation/resources/zh-Hans/ParameterBinderStrings.zh-Hans.resx @@ -250,12 +250,14 @@ 不允许方法或属性调用 - 对于不受信任的脚本,在受约束语言模式下,不允许调用类型 '{1}' 上的方法或属性 '{0}'。 + 对于不受信任的脚本,不允许在 ConstrainedLanguage 模式调用类型 '{1}' 上的方法或属性 '{0}'。 + {StrContains="ConstrainedLanguage"} 不允许创建类型 - 在受约束语言模式下,不允许在为不受信任的脚本进行参数绑定时创建类型 '{0}'。 + 对于不受信任的脚本,不允许在 ConstrainedLanguage 模式进行参数绑定期间创建类型 '{0}'。 + {StrContains="ConstrainedLanguage"} \ No newline at end of file diff --git a/src/System.Management.Automation/resources/zh-Hans/ParserStrings.zh-Hans.resx b/src/System.Management.Automation/resources/zh-Hans/ParserStrings.zh-Hans.resx index 8027311c2ed..9811cf1915b 100644 --- a/src/System.Management.Automation/resources/zh-Hans/ParserStrings.zh-Hans.resx +++ b/src/System.Management.Automation/resources/zh-Hans/ParserStrings.zh-Hans.resx @@ -402,7 +402,8 @@ 由于脚本过于复杂,已停止处理。 - 此运行空间不支持该语法。如果运行空间处于无语言模式,则可能会发生这种情况。 + 此运行空间不支持该语法。如果运行空间处于 NoLanguage 模式,则可能会发生这种情况。 + {StrContains="NoLanguage"} -split 运算符与所选选项的组合无效。 @@ -580,85 +581,112 @@ 变量名称中应使用 `{ 而不是 {。 - Data 节缺少语句块。 + Data 段缺少语句块。 + {StrContains="Data"} - Data 节的 "{0}" 参数无效。有效的 Data 节参数为 SupportedCommand。 + Data 段的“{0}”参数无效。有效的 Data 段参数为 SupportedCommand。 + {StrContains="Data"}{StrContains="SupportedCommand"} - 受限语言模式或 Data 节中不允许使用数组引用。 + RestrictedLanguage 模式或 Data 段中不允许使用数组引用。 + {StrContains="RestrictedLanguage"}{StrContains="Data"} - 受限语言模式或 Data 节中不允许使用赋值语句。 + RestrictedLanguage 或 Data 段中不允许使用赋值语句。 + {StrContains="RestrictedLanguage"}{StrContains="Data"} - 在受限语言模式或数据部分中不允许重定向。 + 不允许在 RestrictedLanguage 模式或 Data 节中重定向。 + {StrContains="RestrictedLanguage"}{StrContains="Data"} - 受限语言模式或 Data 节中不允许使用 Do 和 While 语句。 + RestrictedLanguage 模式或 Data 段中不允许使用 Do 和 While 语句。 + {StrContains="Do"}{StrContains="While"}{StrContains="RestrictedLanguage"}{StrContains="Data"} - 在受限语言模式或数据部分中不允许使用可扩展字符串。 + RestrictedLanguage 模式或 Data 段中不允许使用可扩展字符串。 + {StrContains="RestrictedLanguage"}{StrContains="Data"} - 在受限语言模式或 Data 节中不允许使用“{0}”运算符。 + 不允许在 RestrictedLanguage 模式或 Data 节中使用 '{0}' 运算符。 + {StrContains="RestrictedLanguage"}{StrContains="Data"} - 在受限语言模式或 Data 节中不允许使用 Trap 语句。 + 不允许在 RestrictedLanguage 模式或 Data 节中使用 Trap 语句。 + {StrContains="Trap"}{StrContains="RestrictedLanguage"}{StrContains="Data"} - 在受限语言模式或 Data 节中不允许使用 Try 语句。 + 不允许在 RestrictedLanguage 模式或 Data 节中使用 Try 语句。 + {StrContains="Try"}{StrContains="RestrictedLanguage"}{StrContains="Data"} - 不允许在受限语言模式或 Data 节中使用 Break、Continue、Return、Exit 和 Throw 等流控制语句。 + RestrictedLanguage 模式或 Data 段中不允许使用 Break、Continue、Return、Exit 和 Throw 等流控制语句。 + {StrContains="Break"}{StrContains="Continue"}{StrContains="Return"}{StrContains="Exit"}{StrContains="Throw"}{StrContains="RestrictedLanguage"}{StrContains="Data"} - 不允许在受限语言模式或 Data 节中使用 Foreach 语句。 + RestrictedLanguage 模式或 Data 段中不允许使用 Foreach 语句。 + {StrContains="Foreach"}{StrContains="RestrictedLanguage"}{StrContains="Data"} - 受限语言模式或 Data 节中不允许使用 For 和 While 语句。 + RestrictedLanguage 模式或 Data 段中不允许使用 For 和 While 语句。 + {StrContains="For"}{StrContains="While"}{StrContains="RestrictedLanguage"}{StrContains="Data"} - 在受限语言模式或 Data 节中不允许函数声明。 + 不允许在 RestrictedLanguage 模式或 Data 节中使用 Function 声明。 + {StrContains="Function"}{StrContains="RestrictedLanguage"}{StrContains="Data"} - 受限语言模式或 Data 节中不允许使用方法调用。 + RestrictedLanguage 模式或 Data 段中不允许使用方法调用。 + {StrContains="RestrictedLanguage"}{StrContains="Data"} - 在受限语言模式或 Data 节中不允许使用参数声明。 + RestrictedLanguage 模式或 Data 段中不允许使用参数声明。 + {StrContains="RestrictedLanguage"}{StrContains="Data"} - 受限语言模式或 Data 节中不允许使用属性引用。 + RestrictedLanguage 模式或 Data 段中不允许使用属性引用。 + {StrContains="RestrictedLanguage"}{StrContains="Data"} - 在受限语言模式或数据部分中不允许使用脚本块文本。 + 不允许在 RestrictedLanguage 模式或 Data 节中使用脚本块文本。 + {StrContains="RestrictedLanguage"}{StrContains="Data"} - 在受限语言模式或 Data 节中不允许使用 switch 语句。 + RestrictedLanguage 模式或 Data 段中不允许使用 Switch 语句。 + {StrContains="Switch"}{StrContains="RestrictedLanguage"}{StrContains="Data"} - 所引用的变量不能在受限语言模式或 Data 节中引用。可引用的变量包括以下内容: {0}。 + 正在引用的变量不能在 RestrictedLanguage 模式或 Data 节中引用。可以引用的变量包括: {0}。 + {StrContains="RestrictedLanguage"}{StrContains="Data"} - 受限语言模式或 Data 节中不允许使用命令“{0}”。 + 不允许在 RestrictedLanguage 模式或 Data 节中使用命令 '{0}'。 + {StrContains="RestrictedLanguage"}{StrContains="Data"} - 受限语言模式或另一个 Data 节中不允许使用 data 语句。 + 不允许在 RestrictedLanguage 模式或其他 Data 节中使用 Data 语句。 + {StrContains="RestrictedLanguage"}{StrContains="Data"} - Data 节的 SupportedCommand 参数缺少值。请为该参数提供 cmdlet 或函数名称。 + Data 段的 SupportedCommand 参数缺少值。请为该参数提供 cmdlet 或函数名称。 + {StrContains="SupportedCommand"}{StrContains="Data"} - 在 Data 节中不允许使用 Begin 语句块、Process 语句块或参数语句。 + Data 段中不允许使用 Begin 语句块、Process 语句块或 Param 语句。 + {StrContains="Begin"}{StrContains="Process"}{StrContains="Param"}{StrContains="Data"} - 受限语言模式或 Data 节中不允许字符串乘法结果超过“{0}”个字符。 + RestrictedLanguage 模式或 Data 段中不允许使用会产生超过 {0} 个字符的字符串乘法。 + {StrContains="RestrictedLanguage"}{StrContains="Data"} - 在受限语言模式或 Data 节中,不允许数组乘法产生超过 {0} 个元素。 + RestrictedLanguage 模式或 Data 段中不允许使用会产生超过 {0} 个元素的数组乘法。 + {StrContains="RestrictedLanguage"}{StrContains="Data"} - 受限语言模式或 Data 节中不允许使用点源语法。 + 不允许在 RestrictedLanguage 模式或 Data 部分中使用点采购。 + {StrContains="RestrictedLanguage"}{StrContains="Data"} 特性参数必须是常量或脚本块。 @@ -721,10 +749,12 @@ 哈希文本中不允许使用空键。 - 受限语言模式或 Data 节中不允许使用属性。 + RestrictedLanguage 模式或 Data 段中不允许使用属性。 + {StrContains="RestrictedLanguage"}{StrContains="Data"} - 在受限语言模式或数据节中不允许使用该类型 {0}。 + 不允许在 RestrictedLanguage 模式或 Data 节中使用类型 {0}。 + {StrContains="RestrictedLanguage"}{StrContains="Data"} “{0}”是 ReadOnly 属性。 @@ -784,7 +814,8 @@ 关键字'{0}'后缺少语句体。 - 受限语言模式或 Data 节中不允许使用 parallel 和 sequence 块。 + RestrictedLanguage 模式或 Data 段中不允许使用 Parallel 块和 Sequence 块。 + {StrContains="Parallel"}{StrContains="Sequence"}{StrContains="RestrictedLanguage"}{StrContains="Data"} 意外的关键字 '{0}'。 @@ -796,7 +827,8 @@ 无法调用该方法。 - 无法将哈希表转换为以下类型的对象: {0}。在受限语言模式或 Data 节中不支持哈希表到对象的转换。 + 无法将哈希表转换为以下类型的对象: {0}。在 RestrictedLanguage 模式或 Data 节中不支持哈希表到对象的转换。 + {StrContains="RestrictedLanguage"}{StrContains="Data"} 参数必须是常量。 @@ -842,7 +874,8 @@ 找不到架构文件 {0}。请验证配置语句中指定的所有模块是否都包含 schema.mof 文件,然后再次尝试运行脚本。 - 无法定义数据节。此语言模式不支持定义其他受支持的命令。 + 无法定义 Data 节。此语言模式不支持定义其他受支持的命令。 + {StrContains="Data"} 配置语句中缺少“{”。 @@ -935,7 +968,8 @@ ModuleVersion: 要导入的模块版本。如果使用 ModuleName,则它只能 无法加载资源“{0}”:找不到资源。 - constrainedLanguage 模式下不允许使用配置关键字。 + ConstrainedLanguage 模式下不允许使用 Configuration 关键字。 + {StrContains="ConstrainedLanguage"} 配置名称 '{0}' 无效。Standard 名称只能包含字母(a-z、A-Z)、数字(0-9)、句点(.)、连字符(-)和下划线(_)。名称不能为空或空白,并且应以字母开头。 @@ -1320,7 +1354,8 @@ ModuleVersion: 要导入的模块版本。如果使用 ModuleName,则它只能 不能使用“&”或“.”运算符跨语言边界调用模块作用域命令。 - ConstrainedLanguage 模式下不允许使用类关键字。 + ConstrainedLanguage 模式下不允许使用 Class 关键字。 + {StrContains="Class"}{StrContains="ConstrainedLanguage"} 三元表达式中缺少“:”。 @@ -1338,37 +1373,43 @@ ModuleVersion: 要导入的模块版本。如果使用 ModuleName,则它只能 解析器配置关键字 - 对于不受信任的脚本,在 Constrained Language 模式下不允许使用 Configuration 关键字。 + 对于不受信任的脚本,不允许在 ConstrainedLanguage 模式下使用 Configuration 关键字。 + {StrContains="Configuration"}{StrContains="ConstrainedLanguage"} 解析器类关键字 - 对于不受信任的脚本,在 Constrained Language 模式下不允许使用 Class 关键字。 + 对于不受信任的脚本,不允许在 ConstrainedLanguage 模式下使用 Class 关键字。 + {StrContains="Class"}{StrContains="ConstrainedLanguage"} - 解析器数据节 SupportedCommand + 分析程序数据段 SupportedCommand - 对于不受信任的脚本,在 Constrained Language 模式下,不允许包含 SupportedCommand 参数的数据节。 + 在不受信任的脚本的 ConstrainedLanguage 模式下,不允许包含 SupportedCommand 参数的 Data 节。 + {StrContains="Data"}{StrContains="SupportedCommand"}{StrContains="ConstrainedLanguage"} 模块范围调用运算符 - 在 Constrained Language 模式下,将拒绝模块范围调用运算符。 + 在 ConstrainedLanguage 模式下将拒绝模块范围调用运算符。 + {StrContains="ConstrainedLanguage"} ForEach 关键字方法调用 - 在 Constrained Language 模式下运行时,ForEach 关键字对“{0}”迭代项的方法调用将失败。 + 在 ConstrainedLanguage 模式下运行时,ForEach 关键字对 '{0}' 迭代项的方法调用将失败。 + {StrContains="ForEach"}{StrContains="ConstrainedLanguage"} 表达式计算可能失败 - 从脚本块创建可步进管道可能需要计算脚本块中的某些表达式。除非表达式表示常量值,否则在“受限语言”模式下,表达式计算会静默失败并返回 'null'。 + 基于脚本块创建可步进管道可能需要计算脚本块中的某些表达式。在 ConstrainedLanguage 模式下,除非表达式表示常量值,否则表达式计算会静默失败并返回 'null'。 + {StrContains="ConstrainedLanguage"} ARM64 处理器上不支持配置关键字。 diff --git a/src/System.Management.Automation/resources/zh-Hans/RemotingErrorIdStrings.zh-Hans.resx b/src/System.Management.Automation/resources/zh-Hans/RemotingErrorIdStrings.zh-Hans.resx index 917ffd46890..30d39b208fa 100644 --- a/src/System.Management.Automation/resources/zh-Hans/RemotingErrorIdStrings.zh-Hans.resx +++ b/src/System.Management.Automation/resources/zh-Hans/RemotingErrorIdStrings.zh-Hans.resx @@ -1022,6 +1022,7 @@ 应用于会话时要应用的语言模式。可以是 'NoLanguage' (推荐)、'RestrictedLanguage'、'ConstrainedLanguage' 或 'FullLanguage' + {StrContains="NoLanguage"}{StrContains="RestrictedLanguage"}{StrContains="ConstrainedLanguage"}{StrContains="FullLanguage"} 应用于会话时要导入的模块 @@ -1069,7 +1070,7 @@ 应用于会话时要显示的外部命令(脚本和应用程序) - PSSession 配置文件路径 '{0}' 无效。路径自变量必须解析为文件系统中具有 '.pssc' 扩展名的单个文件。请修复路径规范,然后重试。 + PSSession 配置文件路径“{0}”无效。路径自变量必须解析为文件系统中具有 '.pssc' 扩展名的单个文件。请修复路径规范,然后重试。 角色功能文件路径 '{0}' 无效。路径自变量必须解析为文件系统中具有 '.psrc' 扩展名的单个文件。请修复路径规范,然后重试。 @@ -1721,7 +1722,8 @@ SSH 客户端进程已在建立连接之前终止。 表达式计算可能失败 - 基于脚本块创建 PowerShell 对象可能需要计算脚本块中的某些表达式。除非表达式表示常量值,否则在“受限语言”模式下,表达式计算会静默失败并返回 'null'。 + 从脚本块创建 PowerShell 对象可能需要评估脚本块中的某些表达式。表达式计算将以静默方式失败,并在 ConstrainedLanguage 模式下返回 “null”,除非表达式表示常量值。 + {StrContains="ConstrainedLanguage"} 未能获取 Hyper-V VM 状态。该值的类型为 {0},但应为 Microsoft.HyperV.PowerShell.VMState 或 System.String。 diff --git a/src/System.Management.Automation/resources/zh-Hans/RunspaceStrings.zh-Hans.resx b/src/System.Management.Automation/resources/zh-Hans/RunspaceStrings.zh-Hans.resx index bccbac4a172..528c6bd3e2e 100644 --- a/src/System.Management.Automation/resources/zh-Hans/RunspaceStrings.zh-Hans.resx +++ b/src/System.Management.Automation/resources/zh-Hans/RunspaceStrings.zh-Hans.resx @@ -184,7 +184,8 @@ 会话正忙。会话可用后,你将立即连接到会话。若要取消 Enter-PSSession 命令,请按 Ctrl-C。 - 无法完成该命令。此会话配置中不支持脚本调用。如果会话配置处于无语言模式,则可能会发生这种情况。 + 无法完成该命令。此会话配置中不支持脚本调用。如果会话配置处于 NoLanguage 模式,则可能会发生这种情况。 + {StrContains="NoLanguage"} 无法在本地运行空间上使用 Disconnect 和 Connect 操作。 diff --git a/src/System.Management.Automation/resources/zh-Hans/SecuritySupportStrings.zh-Hans.resx b/src/System.Management.Automation/resources/zh-Hans/SecuritySupportStrings.zh-Hans.resx index 6a7008ed704..ae2a7988019 100644 --- a/src/System.Management.Automation/resources/zh-Hans/SecuritySupportStrings.zh-Hans.resx +++ b/src/System.Management.Automation/resources/zh-Hans/SecuritySupportStrings.zh-Hans.resx @@ -164,5 +164,6 @@ 脚本文件“{0}”不受策略信任,将在 ConstrainedLanguage 模式下运行。 + {StrContains="ConstrainedLanguage"} \ No newline at end of file diff --git a/src/System.Management.Automation/resources/zh-Hans/SessionStateStrings.zh-Hans.resx b/src/System.Management.Automation/resources/zh-Hans/SessionStateStrings.zh-Hans.resx index a7eef750830..071d0f99243 100644 --- a/src/System.Management.Automation/resources/zh-Hans/SessionStateStrings.zh-Hans.resx +++ b/src/System.Management.Automation/resources/zh-Hans/SessionStateStrings.zh-Hans.resx @@ -652,6 +652,7 @@ 会话状态变量 - 在 ConstrainedLanguage 模式下,更改或创建变量 '{0}' 的作用域为 AllScope 将被阻止。 + 在 ConstrainedLanguage 模式下,更改或创建变量“{0}”的作用域为 AllScope 将被阻止。 + {StrContains="ConstrainedLanguage"} \ No newline at end of file diff --git a/src/System.Management.Automation/resources/zh-Hant/AutomationExceptions.zh-Hant.resx b/src/System.Management.Automation/resources/zh-Hant/AutomationExceptions.zh-Hant.resx index c1d7833ade0..d22f9334f27 100644 --- a/src/System.Management.Automation/resources/zh-Hant/AutomationExceptions.zh-Hant.resx +++ b/src/System.Management.Automation/resources/zh-Hant/AutomationExceptions.zh-Hant.resx @@ -205,6 +205,7 @@ 編譯的指令碼區塊點來源 - 在受限語言模式中,將不允許將指令碼區塊 '{0}' 呼叫至目前範圍。指令碼語言模式: {1},內容語言模式: {2}。 + 在 ConstrainedLanguage 模式中,將不允許指令碼區塊 '{0}' 引動到目前的範圍。指令碼語言模式: {1},內容語言模式: {2}。 + {StrContains="ConstrainedLanguage"} \ No newline at end of file diff --git a/src/System.Management.Automation/resources/zh-Hant/CatalogStrings.zh-Hant.resx b/src/System.Management.Automation/resources/zh-Hant/CatalogStrings.zh-Hant.resx index 1d91bcb7549..982154753c3 100644 --- a/src/System.Management.Automation/resources/zh-Hant/CatalogStrings.zh-Hant.resx +++ b/src/System.Management.Automation/resources/zh-Hant/CatalogStrings.zh-Hant.resx @@ -151,7 +151,8 @@ 目錄版本無效。我們只支援目錄版本 {0} 和版本 {1}。 - '{0}' is a version catalog that uses SHA0 or SHA1. Consider regenerating this catalog with '-CatalogVersion 2'. + '{0}' 是使用弱式 SHA-1 雜湊演算法的版本 1 目錄。請考慮使用 '-CatalogVersion 2' 重新產生此目錄。 + {StrContains="SHA-1"}{StrContains="-CatalogVersion 2"} 無法開啟目錄定義檔。 diff --git a/src/System.Management.Automation/resources/zh-Hant/CommandBaseStrings.zh-Hant.resx b/src/System.Management.Automation/resources/zh-Hant/CommandBaseStrings.zh-Hant.resx index 13ba4e1f789..24fe6c4830a 100644 --- a/src/System.Management.Automation/resources/zh-Hant/CommandBaseStrings.zh-Hant.resx +++ b/src/System.Management.Automation/resources/zh-Hant/CommandBaseStrings.zh-Hant.resx @@ -232,12 +232,14 @@ Reviewed by TArcher on 2010-07-20 指令碼區塊處理 Dot-Source 檢查 - 在受限語言模式中,指令碼區塊 '{0}' 的 Dot-Source 處理將會失敗,因為其語言模式 '{1}' 與目前的語言模式 '{2}' 不符。 + 在 ConstrainedLanguage 模式中,指令碼區塊 '{0}' 的 Dot-Source 處理將會失敗,因為其語言模式 '{1}' 與目前的語言模式 '{2}' 不符。 + {StrContains="ConstrainedLanguage"} 命令搜尋程式 模組 '{1}' 中的命令 '{0}' 不受信任,因此無法在 ConstrainedLanguage 模式中存取。 + {StrContains="ConstrainedLanguage"} \ No newline at end of file diff --git a/src/System.Management.Automation/resources/zh-Hant/Credential.zh-Hant.resx b/src/System.Management.Automation/resources/zh-Hant/Credential.zh-Hant.resx index 240973d4c73..4e72447398d 100644 --- a/src/System.Management.Automation/resources/zh-Hant/Credential.zh-Hant.resx +++ b/src/System.Management.Automation/resources/zh-Hant/Credential.zh-Hant.resx @@ -118,12 +118,12 @@ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - Cannot serialize the credential. If this command is starting a workflow, the credentials cannot be persisted, because the process in which the workflow is started does not have permission to serialize credentials. + 無法序列化認證。如果此命令正在啟動工作流程,則無法保留認證,因為啟動工作流程的處理序沒有序列化認證的權限。 --- If the workflow was started in a PSSession to the local computer, add the EnableNetworkAccess parameter to the command that created the session. --- If the workflow was started in a PSSession to a remote computer, add the Authentication parameter with a value of CredSSP to the command that created the session. Or, connect to a session configuration that has a RunAsUser property value. +-- 如果工作流程是在本機電腦的 PSSession 中啟動,請將 EnableNetworkAccess 參數新增至建立該工作階段的命令。 +-- 如果工作流程是在遠端電腦的 PSSession 中啟動,請在建立該工作階段的命令中新增 Authentication 參數,並將其值設為 CredSSP。或者,請連線到具有 RunAsUser 屬性值的工作階段組態。 - The value for UserName is not in the correct format. + UserName 的值格式不正確。 \ No newline at end of file diff --git a/src/System.Management.Automation/resources/zh-Hant/ExtendedTypeSystem.zh-Hant.resx b/src/System.Management.Automation/resources/zh-Hant/ExtendedTypeSystem.zh-Hant.resx index 977149a8dca..84e5b734221 100644 --- a/src/System.Management.Automation/resources/zh-Hant/ExtendedTypeSystem.zh-Hant.resx +++ b/src/System.Management.Automation/resources/zh-Hant/ExtendedTypeSystem.zh-Hant.resx @@ -396,11 +396,13 @@ PS> [System.Collections.Generic.Comparer``1]::get_Default() ConstrainedLanguage 模式不允許類型從 HashTable 轉換為 '{0}'。 + {StrContains="ConstrainedLanguage"} 延伸類型系統雜湊表轉換 ConstrainedLanguage 模式不允許類型從 '{0}' 轉換為 '{1}'。 + {StrContains="ConstrainedLanguage"} \ No newline at end of file diff --git a/src/System.Management.Automation/resources/zh-Hant/InternalCommandStrings.zh-Hant.resx b/src/System.Management.Automation/resources/zh-Hant/InternalCommandStrings.zh-Hant.resx index 484132cb17e..ef27344ac1b 100644 --- a/src/System.Management.Automation/resources/zh-Hant/InternalCommandStrings.zh-Hant.resx +++ b/src/System.Management.Automation/resources/zh-Hant/InternalCommandStrings.zh-Hant.resx @@ -145,13 +145,15 @@ 輸入名稱 "{0}" 無法解析為方法。 - 無法在受限制的語言模式中呼叫方法。 + 無法在 RestrictedLanguage 模式中呼叫方法。 + {StrContains="RestrictedLanguage"} 指令碼區塊不支援 -WhatIf 和 -Confirm 參數。 在 RestrictedLanguage 模式中,不允許 '{0}' 作業。 + {StrContains="RestrictedLanguage"} 需要運算子來比較這兩個指定值。請在命令中加入有效的運算子,然後再試一次。例如,Get-Process | Where-Object -Property Name -eq Idle @@ -188,6 +190,7 @@ ErrorAction、WarningAction、InformationAction、PipelineVariable ForEach-Object Cmdlet - 在 Constrained Language 模式下執行時,不允許對類型 '{0}' 呼叫方法。 + 在 ConstrainedLanguage 模式下執行時,不允許對類型 '{0}' 呼叫方法。 + {StrContains="ConstrainedLanguage"} \ No newline at end of file diff --git a/src/System.Management.Automation/resources/zh-Hant/Metadata.zh-Hant.resx b/src/System.Management.Automation/resources/zh-Hant/Metadata.zh-Hant.resx index c54193b62dd..efcfecd8a96 100644 --- a/src/System.Management.Automation/resources/zh-Hant/Metadata.zh-Hant.resx +++ b/src/System.Management.Automation/resources/zh-Hant/Metadata.zh-Hant.resx @@ -262,6 +262,7 @@ ValidateTrustedData 屬性檢查失敗 - 參數引數 '{0}' 不受信任,且在限制語言模式下將無法通過 ValidateTrustedData 參數屬性檢查。 + 參數引數 '{0}' 不受信任,且在 ConstrainedLanguage 模式下將無法通過 ValidateTrustedData 參數屬性檢查。 + {StrContains="ValidateTrustedData"}{StrContains="ConstrainedLanguage"} \ No newline at end of file diff --git a/src/System.Management.Automation/resources/zh-Hant/Modules.zh-Hant.resx b/src/System.Management.Automation/resources/zh-Hant/Modules.zh-Hant.resx index 198d85777d7..3447d6b3487 100644 --- a/src/System.Management.Automation/resources/zh-Hant/Modules.zh-Hant.resx +++ b/src/System.Management.Automation/resources/zh-Hant/Modules.zh-Hant.resx @@ -626,6 +626,7 @@ 在 ConstrainedLanguage 模式中,不允許將 *.ps1 檔案匯入為模組。 + {StrContains="ConstrainedLanguage"} 載入指令碼模組 {0} 時發生錯誤,因為其語言模式與模組資訊清單不同。資訊清單語言模式為 {1},而模組語言模式為 {2}。請確定所有模組檔案都已簽署,或已納入應用程式允許清單設定中。 @@ -638,6 +639,7 @@ 當工作階段處於 ConstrainedLanguage 模式時,無法建立新模組。 + {StrContains="ConstrainedLanguage"} 找不到與 'Core' 版本相容的內建模組 '{0}'。請確認 PowerShell 內建模組可供使用。它們通常隨 PowerShell 套件一起提供,位於 $PSHOME 模組路徑下,而且是 PowerShell 正常運作所需。 @@ -646,42 +648,49 @@ Export-ModuleMember Cmdlet - 在限制語言模式中匯出模組成員將會失敗,因為模組 '{0}' 的語言模式 '{1}' 與目前的工作階段 '{2}' 的語言模式不同。 + 在 ConstrainedLanguage 模式中匯出模組成員將會失敗,因為模組 '{0}' 的語言模式 '{1}' 與目前的工作階段 '{2}' 的語言模式不同。 + {StrContains="ConstrainedLanguage"} 模組隱含函式匯出 - 模組 '{0}' 的隱含函式匯出將會遭到拒絕,因為它是受信任的 (以完整語言模式執行),但工作階段不是受信任的 (以限制語言模式執行)。最佳做法是一律以完整名稱個別匯出模組函式。 + 模組 '{0}' 的隱含函式匯出將會遭到拒絕,因為它是受信任的 (以 FullLanguage 模式執行),但工作階段不是受信任的 (以 ConstrainedLanguage 模式執行)。最佳做法是一律以完整名稱個別匯出模組函式。 + {StrContains="FullLanguage"}{StrContains="ConstrainedLanguage"} 正在將指令檔匯入為模組 在 ConstrainedLanguage 模式中,不允許將指令碼檔案 '{0}' 匯入為模組。 + {StrContains="ConstrainedLanguage"} 模組包含 Dot-Source 運算子 - 模組 '{0}' 的匯入在限制語言模式中將會失敗,因為它使用萬用字元匯出函式,同時也使用 dot-source 運算子。 + 模組 '{0}' 的匯入在 ConstrainedLanguage 模式中將會失敗,因為它使用萬用字元匯出函式,同時也使用 dot-source 運算子。 + {StrContains="ConstrainedLanguage"} - "模組匯出函式 + 模組匯出函式 - 模組 '{0}' 使用名稱萬用字元匯出函式。在限制語言模式下執行時,任何巢狀模組函式名稱都會移除。 + 模組 '{0}' 使用名稱萬用字元匯出函式。在 ConstrainedLanguage 模式中執行時,將會移除任何巢狀模組函式名稱。 + {StrContains="ConstrainedLanguage"} - "New-Module Cmdlet + 新模組 Cmdlet - 來自未受信任的限制語言工作階段的新模組,將無法提供 FullLanguage 指令碼區塊。 + 來自未受信任的 ConstrainedLanguage 工作階段的新模組,將無法提供 FullLanguage 指令碼區塊。 + {StrContains="ConstrainedLanguage"}{StrContains="FullLanguage"} - "模組語言模式不相符 + 模組語言模式不相符 - 正在載入的相依模組與父模組的語言模式不同。在限制語言模式中將不允許此動作。 + 正在載入的依存模組與父系的語言模式不同。在 ConstrainedLanguage 模式下將不允許此情況。 + {StrContains="ConstrainedLanguage"} \ No newline at end of file diff --git a/src/System.Management.Automation/resources/zh-Hant/ParameterBinderStrings.zh-Hant.resx b/src/System.Management.Automation/resources/zh-Hant/ParameterBinderStrings.zh-Hant.resx index 0aaf9b920c3..f844166dd15 100644 --- a/src/System.Management.Automation/resources/zh-Hant/ParameterBinderStrings.zh-Hant.resx +++ b/src/System.Management.Automation/resources/zh-Hant/ParameterBinderStrings.zh-Hant.resx @@ -250,12 +250,14 @@ 不允許叫用方法或屬性 - 在未受信任指令碼的限制語言模式中,不允許在類型 '{1}' 上叫用方法或屬性 '{0}'。 + 在未受信任指令碼的 ConstrainedLanguage 模式中,不允許在類型 '{1}' 上叫用方法或屬性 '{0}'。 + {StrContains="ConstrainedLanguage"} 不允許建立類型 - 在未受信任指令碼的限制語言模式中,不允許在參數繫結其間建立類型 '{0}'。 + 在 ConstrainedLanguage 模式中為不受信任的指令碼繫結參數期間,將不允許建立類型 '{0}'。 + {StrContains="ConstrainedLanguage"} \ No newline at end of file diff --git a/src/System.Management.Automation/resources/zh-Hant/ParserStrings.zh-Hant.resx b/src/System.Management.Automation/resources/zh-Hant/ParserStrings.zh-Hant.resx index 58202256c46..6d653ce5664 100644 --- a/src/System.Management.Automation/resources/zh-Hant/ParserStrings.zh-Hant.resx +++ b/src/System.Management.Automation/resources/zh-Hant/ParserStrings.zh-Hant.resx @@ -402,7 +402,8 @@ 已停止處理,因為指令碼太複雜。 - 此 Runspace 不支援此語法。如果 Runspace 處於無語言模式,就會發生這種情況。 + 此 Runspace 不支援此語法。如果 Runspace 處於 NoLanguage 模式,就會發生這種情況。 + {StrContains="NoLanguage"} 選項與 -split 運算子的組合無效。 @@ -581,84 +582,111 @@ Data 區段缺少陳述式區塊。 + {StrContains="Data"} Data 區段的 "{0}" 參數無效。有效的 Data 區段參數為 SupportedCommand。 + {StrContains="Data"}{StrContains="SupportedCommand"} - 限制語言模式或 Data 區段中不允許陣列參考。 + RestrictedLanguage 模式或 Data 區段中不允許陣列參考。 + {StrContains="RestrictedLanguage"}{StrContains="Data"} - 限制語言模式或 Data 區段中不允許 Assignment 陳述式。 + RestrictedLanguage 模式或 Data 區段中不允許 Assignment 陳述式。 + {StrContains="RestrictedLanguage"}{StrContains="Data"} - 限制語言模式或 Data 區段中不允許重新導向。 + RestrictedLanguage 模式或 Data 區段中不允許重新導向。 + {StrContains="RestrictedLanguage"}{StrContains="Data"} - 限制語言模式或 Data 區段中不允許 Do 和 While 陳述式。 + RestrictedLanguage 模式或 Data 區段中不允許 Do 和 While 陳述式。 + {StrContains="Do"}{StrContains="While"}{StrContains="RestrictedLanguage"}{StrContains="Data"} - 限制語言模式或 Data 區段中不允許可擴充字串。 + RestrictedLanguage 模式或 Data 區段中不允許可擴充字串。 + {StrContains="RestrictedLanguage"}{StrContains="Data"} - 限制語言模式或 Data 區段中不允許 '{0}' 運算子。 + RestrictedLanguage 模式或 Data 區段中不允許 '{0}' 運算子。 + {StrContains="RestrictedLanguage"}{StrContains="Data"} - 限制語言模式或 Data 區段中不允許 Trap 陳述式。 + RestrictedLanguage 模式或 Data 區段中不允許 Trap 陳述式。 + {StrContains="Trap"}{StrContains="RestrictedLanguage"}{StrContains="Data"} - 限制語言模式或 Data 區段中不允許 Try 陳述式。 + RestrictedLanguage 模式或 Data 區段中不允許 Try 陳述式。 + {StrContains="Try"}{StrContains="RestrictedLanguage"}{StrContains="Data"} - 限制語言模式中或 Data 區段中不允許流程控制陳述式,例如 Break、Continue、Return、Exit 和 Throw。 + RestrictedLanguage 模式中或 Data 區段中不允許流程控制陳述式,例如 Break、Continue、Return、Exit 和 Throw。 + {StrContains="Break"}{StrContains="Continue"}{StrContains="Return"}{StrContains="Exit"}{StrContains="Throw"}{StrContains="RestrictedLanguage"}{StrContains="Data"} - 限制語言模式或 Data 區段中不允許 Foreach 陳述式。 + RestrictedLanguage 模式或 Data 區段中不允許 Foreach 陳述式。 + {StrContains="Foreach"}{StrContains="RestrictedLanguage"}{StrContains="Data"} - 限制語言模式或 Data 區段中不允許 For 和 While 陳述式。 + RestrictedLanguage 模式或 Data 區段中不允許 For 和 While 陳述式。 + {StrContains="For"}{StrContains="While"}{StrContains="RestrictedLanguage"}{StrContains="Data"} - 限制語言模式或 Data 區段中不允許函式宣告。 + RestrictedLanguage 模式或 Data 區段中不允許 Function 宣告。 + {StrContains="Function"}{StrContains="RestrictedLanguage"}{StrContains="Data"} - 限制語言模式或 Data 區段中不允許方法呼叫。 + RestrictedLanguage 模式或 Data 區段中不允許方法呼叫。 + {StrContains="RestrictedLanguage"}{StrContains="Data"} - 限制語言模式或 Data 區段中不允許參數宣告。 + RestrictedLanguage 模式或 Data 區段中不允許參數宣告。 + {StrContains="RestrictedLanguage"}{StrContains="Data"} - 限制語言模式或 Data 區段中不允許屬性參考。 + RestrictedLanguage 模式或 Data 區段中不允許屬性參考。 + {StrContains="RestrictedLanguage"}{StrContains="Data"} - 限制語言模式或 Data 區段中不允許指令碼區塊文字。 + RestrictedLanguage 模式或 Data 區段中不允許指令碼區塊常值。 + {StrContains="RestrictedLanguage"}{StrContains="Data"} - 限制語言模式或 Data 區段中不允許 switch 陳述式。 + RestrictedLanguage 模式或 Data 區段中不允許 Switch 陳述式。 + {StrContains="Switch"}{StrContains="RestrictedLanguage"}{StrContains="Data"} - 正在參考無法在限制語言模式或 Data 區段中參考的變數。可參考的變數包括下列項目: {0}。 + 無法在 RestrictedLanguage 模式中參考的變數或正在參考的 Data 區段。可參考的變數包括: {0}。 + {StrContains="RestrictedLanguage"}{StrContains="Data"} - 限制語言模式或 Data 區段中不允許命令 '{0}'。 + RestrictedLanguage 模式或 Data 區段中不允許命令 '{0}'。 + {StrContains="RestrictedLanguage"}{StrContains="Data"} - 限制語言模式或其他 Data 區段中不允許資料陳述式。 + RestrictedLanguage 模式或其他 Data 區段中不允許資料陳述式。 + {StrContains="RestrictedLanguage"}{StrContains="Data"} Data 區段的 SupportedCommand 參數缺少值。請為該參數提供 Cmdlet 或函數名稱。 + {StrContains="SupportedCommand"}{StrContains="Data"} - Data 區段中不允許 Begin 陳述式區塊、Process 陳述式區塊或參數陳述式。 + Data 區段中不允許 Begin 陳述式區塊、Process 陳述式區塊或 Param 陳述式。 + {StrContains="Begin"}{StrContains="Process"}{StrContains="Param"}{StrContains="Data"} - 限制語言模式或 Data 區段中不允許超過 "{0}" 個字元的字串乘法結果。 + RestrictedLanguage 模式或 Data 區段中不允許超過 "{0}" 個字元的字串乘法結果。 + {StrContains="RestrictedLanguage"}{StrContains="Data"} - 限制語言模式中或 Data 區段中不允許陣列相乘導致超過 {0} 個元素。 + RestrictedLanguage 模式中或 Data 區段中不允許陣列相乘導致超過 {0} 個元素。 + {StrContains="RestrictedLanguage"}{StrContains="Data"} - 限制語言模式或 Data 區段中不允許點來源。 + RestrictedLanguage 模式或 Data 區段中不允許點執行。 + {StrContains="RestrictedLanguage"}{StrContains="Data"} 屬性引數必須是常數或指令碼區塊。 @@ -721,10 +749,12 @@ 雜湊常值中不允許使用 null 索引鍵。 - 限制語言模式或 Data 區段中不允許屬性。 + RestrictedLanguage 模式或 Data 區段中不允許屬性。 + {StrContains="RestrictedLanguage"}{StrContains="Data"} - 限制語言模式或 Data 區段中不允許類型 {0}。 + RestrictedLanguage 模式或 Data 區段中不允許類型 {0}。 + {StrContains="RestrictedLanguage"}{StrContains="Data"} '{0}' 是唯讀屬性。 @@ -784,7 +814,8 @@ 關鍵字 '{0}' 後面缺少陳述式主體。 - 限制語言模式或 Data 區段中不允許平行和循序區塊。 + RestrictedLanguage 模式或 Data 區段中不允許 Parallel 和 Sequence 區塊。 + {StrContains="Parallel"}{StrContains="Sequence"}{StrContains="RestrictedLanguage"}{StrContains="Data"} 未預期的關鍵字 '{0}'。 @@ -796,7 +827,8 @@ 無法叫用此方法。 - 無法將雜湊表轉換為下列類型的物件: {0}。限制語言模式中或 Data 區段不支援 Hashtable-to-Object 轉換。 + 無法將雜湊表轉換為下列類型的物件: {0}。RestrictedLanguage 模式中或 Data 區段不支援 Hashtable-to-Object 轉換。 + {StrContains="RestrictedLanguage"}{StrContains="Data"} 引數必須是常數。 @@ -842,7 +874,8 @@ 找不到結構描述檔案 {0}。請確認組態陳述式中指定的任何模組都包含 schema.mof 檔案,然後再次嘗試執行指令碼。 - 無法定義資料區段。此語言模式不支援定義額外支援的命令。 + 無法定義 Data 區段。此語言模式不支援定義其他支援的命令。 + {StrContains="Data"} 組態陳述式中缺少 '{'。 @@ -936,6 +969,7 @@ ModuleVersion: 要匯入的模組版本。如果使用這個參數,ModuleName ConstrainedLanguage 模式中不允許使用 Configuration 關鍵字。 + {StrContains="ConstrainedLanguage"} 設定名稱 '{0}' 無效。Standard 名稱只能包含字母 (a-z、A-Z)、數字 (0-9)、句點 (.)、連字號 (-) 和底線 (_)。名稱不可為 null 或空白,且應以字母開頭。 @@ -1321,6 +1355,7 @@ ModuleVersion: 要匯入的模組版本。如果使用這個參數,ModuleName ConstrainedLanguage 模式中不允許使用 Class 關鍵字。 + {StrContains="Class"}{StrContains="ConstrainedLanguage"} 三元運算式中遺漏 ':'。 @@ -1338,37 +1373,43 @@ ModuleVersion: 要匯入的模組版本。如果使用這個參數,ModuleName 剖析器組態關鍵字 - 在 Constrained Language 模式中,不受信任的指令碼不允許使用 Configuration 關鍵字。 + 在 ConstrainedLanguage 模式中,不受信任的指令碼不允許使用 Configuration 關鍵字。 + {StrContains="Configuration"}{StrContains="ConstrainedLanguage"} 剖析器類別關鍵字 - 在 Constrained Language 模式中,不受信任的指令碼不允許使用 Class 關鍵字。 + 在 ConstrainedLanguage 模式中,不受信任的指令碼不允許使用 Class 關鍵字。 + {StrContains="Class"}{StrContains="ConstrainedLanguage"} 剖析器資料區段 SupportedCommand - 對於不受信任的指令碼,在 Constrained Language 模式中不允許包含 SupportedCommand 參數的 Data 區段。 + 對於不受信任的指令碼,在 ConstrainedLanguage 模式中不允許包含 SupportedCommand 參數的 Data 區段。 + {StrContains="Data"}{StrContains="SupportedCommand"}{StrContains="ConstrainedLanguage"} 模組範圍呼叫運算子 - 在 Constrained Language 模式中,模組範圍呼叫運算子將會被拒絕。 + 在 ConstrainedLanguage 模式中,模組範圍呼叫運算子將會被拒絕。 + {StrContains="ConstrainedLanguage"} ForEach 關鍵字方法呼叫 - 在 Constrained Language 模式中執行時,ForEach 關鍵字會使 '{0}' 反覆項目項目方法叫用失敗。 + 在 ConstrainedLanguage 模式中執行時,ForEach 關鍵字會使 '{0}' 反覆項目項目方法叫用失敗。 + {StrContains="ForEach"}{StrContains="ConstrainedLanguage"} 運算式評估可能失敗 - 從指令碼區塊建立可逐步執行管線可能需要評估指令碼區塊中的一些運算式。除非運算式代表常數值,否則在受限語言模式下,運算式評估會悄悄失敗,並傳回 'null'。 + 從指令碼區塊建立可逐步執行管線可能需要評估指令碼區塊中的一些運算式。除非運算式代表常數值,否則在 ConstrainedLanguage 模式下,運算式評估會悄悄失敗,並傳回 'null'。 + {StrContains="ConstrainedLanguage"} ARM64 處理器不支援 Configuration 關鍵字。 diff --git a/src/System.Management.Automation/resources/zh-Hant/RemotingErrorIdStrings.zh-Hant.resx b/src/System.Management.Automation/resources/zh-Hant/RemotingErrorIdStrings.zh-Hant.resx index 002e6ad7b83..2aa72d2b427 100644 --- a/src/System.Management.Automation/resources/zh-Hant/RemotingErrorIdStrings.zh-Hant.resx +++ b/src/System.Management.Automation/resources/zh-Hant/RemotingErrorIdStrings.zh-Hant.resx @@ -654,19 +654,19 @@ 必須同時指定 "{0}" 和 "{1}",或兩者都不指定。 - 找不到工作階段設定 "{0}"。 + 找不到工作階段組態 "{0}"。 - 工作階段設定 "{0}" 不是以 PowerShell 為基礎的殼層。 + 工作階段組態 "{0}" 不是以 PowerShell 為基礎的殼層。 - 工作階段設定 "{0}" 是以 PowerShell 為基礎的殼層。請使用 PowerShell 6+ 加以修改。 + 工作階段組態 "{0}" 是以 PowerShell 為基礎的殼層。請使用 PowerShell 6+ 加以修改。 - 工作階段設定 "{0}" 是以 Windows PowerShell 為基礎的殼層。請使用 Windows PowerShell 加以修改。 + 工作階段組態 "{0}" 是以 Windows PowerShell 為基礎的殼層。請使用 Windows PowerShell 加以修改。 - 沒有任何工作階段設定符合條件 "{0}"。 + 沒有任何工作階段組態符合條件 "{0}"。 {0} @@ -687,25 +687,25 @@ 無法將殼層設定資料寫入暫存檔案 {0}。失敗原因: {1}。 - 正在執行命令 "{0}" 以建立新工作階段設定。 + 正在執行命令 "{0}" 以建立新工作階段組態。 名稱: {0} SDDL: {1}。這可讓所選使用者從遠端在此電腦上執行 PowerShell 命令。 - 正在執行命令 "{0}" 以移除工作階段設定。 + 正在執行命令 "{0}" 以移除工作階段組態。 - 正在執行命令 "{0}" 以取得以 PowerShell 為基礎的工作階段設定。 + 正在執行命令 "{0}" 以取得以 PowerShell 為基礎的工作階段組態。 - 正在執行命令 "{0}" 以更新工作階段設定屬性。 + 正在執行命令 "{0}" 以更新工作階段組態屬性。 名稱: {0} SDDL: {1} - 正在執行命令 "{0}" 以啟用工作階段設定。 + 正在執行命令 "{0}" 以啟用工作階段組態。 WinRM 快速設定 @@ -727,13 +727,13 @@ 名稱: {0} SDDL: {1}。這可讓所選使用者從遠端在此電腦上執行 PowerShell 命令。 - 正在執行命令 "{0}" 以停用工作階段設定。 + 正在執行命令 "{0}" 以停用工作階段組態。 - 名稱: {0} SDDL: {1}。這會拒絕所有人存取此工作階段設定。 + 名稱: {0} SDDL: {1}。這會拒絕所有人存取此工作階段組態。 - 停用工作階段設定不會復原由 Enable-PSRemoting 或 Enable-PSSessionConfiguration Cmdlet 所做的所有變更。您可能必須依照下列步驟手動還原這些變更: + 停用工作階段組態不會復原由 Enable-PSRemoting 或 Enable-PSSessionConfiguration Cmdlet 所做的所有變更。您可能必須依照下列步驟手動還原這些變更: 1. 停止並停用 WinRM 服務。 2. 刪除接受任何 IP 位址上之要求的接聽程式。 3. 停用 WS-Management 通訊的防火牆例外。 @@ -755,10 +755,10 @@ 必須重新啟動 WinRM 服務,才能顯示 SecurityDescriptor 選取的 UI。重新啟動 WinRM 服務,然後執行下列命令: "{0}" - 正在註冊工作階段設定 + 正在註冊工作階段組態 - 找不到工作階段設定 "{0}"。正在執行命令 "{1}" 以建立 "{0}" 工作階段設定。執行此命令會重新啟動 WinRM 服務。 + 找不到工作階段組態 "{0}"。正在執行命令 "{1}" 以建立 "{0}" 工作階段組態。執行此命令會重新啟動 WinRM 服務。 不能同時指定 "{0}" 和 "{1}" 參數。請指定 "{0}" 或 "{1}" 參數。 @@ -940,7 +940,7 @@ {0} 如果最近已取消註冊使用此名稱的設定,可能需要重新啟動 WinRM 服務,因為某些系統資料結構可能仍在快取中。在那樣的情況下,可能需要重新啟動 WinRM。 -所有連線至 PowerShell 工作階段設定 (例如 Microsoft.PowerShell,以及使用 Register-PSSessionConfiguration Cmdlet 建立的工作階段設定) 的 WinRM 工作階段都會中斷連線。 +所有連線至 PowerShell 工作階段組態 (例如 Microsoft.PowerShell,以及使用 Register-PSSessionConfiguration Cmdlet 建立的工作階段組態) 的 WinRM 工作階段都會中斷連線。 您正在遠端工作階段中執行,且已選取 Force 選項,這表示 WinRM 服務可能會重新啟動。如果 WinRM 服務重新啟動,此遠端工作階段就會終止,而您需要建立新的工作階段才能繼續 @@ -967,7 +967,7 @@ 執行用戶端方法的遠端 Runspace 未指定用戶端電腦。 - 名稱: {0} SDDL: {1}。這會拒絕此工作階段設定的遠端存取權。 + 名稱: {0} SDDL: {1}。這會拒絕此工作階段組態的遠端存取權。 已啟用: False。這會將 WS-Management 服務設定為拒絕連線要求。 @@ -1012,16 +1012,17 @@ 用於唯一識別此文件的識別碼 - 此工作階段設定要套用的工作階段類型預設值。可以是 'RestrictedRemoteServer' (建議)、'Empty' 或 'Default' + 此工作階段組態要套用的工作階段類型預設值。可以是 'RestrictedRemoteServer' (建議)、'Empty' 或 'Default' - 放置此工作階段設定的工作階段文字記錄的目錄 + 放置此工作階段組態的工作階段文字記錄的目錄 - 是否要以電腦的 (虛擬) 系統管理員帳戶執行此工作階段設定 + 是否要以電腦的 (虛擬) 系統管理員帳戶執行此工作階段組態 套用到工作階段時要使用的語言模式。可以是 'NoLanguage'(建議)、'RestrictedLanguage'、'ConstrainedLanguage' 或 'FullLanguage' + {StrContains="NoLanguage"}{StrContains="RestrictedLanguage"}{StrContains="ConstrainedLanguage"}{StrContains="FullLanguage"} 套用到工作階段時要匯入的模組 @@ -1078,7 +1079,7 @@ 'Roles' 項目必須是雜湊表,但實際上是 {0}。 - 無法將 '{0}' 角色項目的值轉換成雜湊表。'Roles' 項目必須是以群組名稱作為索引鍵的雜湊表,其中與每個索引鍵相關聯的值,都是該角色的工作階段設定屬性所構成的另一個雜湊表。 + 無法將 '{0}' 角色項目的值轉換成雜湊表。'Roles' 項目必須是以群組名稱作為索引鍵的雜湊表,其中與每個索引鍵相關聯的值,都是該角色的工作階段組態屬性所構成的另一個雜湊表。 找不到角色功能 '{0}'。角色功能必須是目前模組路徑中模組內 'RoleCapabilities' 目錄中的檔案 '{1}'。 @@ -1259,7 +1260,7 @@ -AutoRemoveJob 參數必須搭配 -Wait 參數使用 - WS-Management 服務無法處理該要求。在 {0} 電腦上的 WSMan: 磁碟機中找不到 {1} 工作階段設定。如需詳細資訊,請參閱 about_Remote_Troubleshooting 說明主題。 + WS-Management 服務無法處理該要求。在 {0} 電腦上的 WSMan: 磁碟機中找不到 {1} 工作階段組態。如需詳細資訊,請參閱 about_Remote_Troubleshooting 說明主題。 無法從 {0} 規格建立工作,因為所提供的 runspace 不是本機 runspace。請改用本機 runspace,或指定 RunspaceMode 引數。 @@ -1277,7 +1278,7 @@ {1} is a placeholder for the minimum allowed idletimeout value - 在工作階段設定檔中指定 "{2}"、"{3}"、"{4}" 或 "{5}" 索引鍵時,不能存在 Cmdlet "{0}" 或別名 "{1}"。 + 在工作階段組態檔中指定 "{2}"、"{3}"、"{4}" 或 "{5}" 索引鍵時,不能存在 Cmdlet "{0}" 或別名 "{1}"。 「傳輸選項無效。只有當參數 "{0}" 設定為 true 時,參數 "{1}" 才可以是非零值。」 @@ -1321,7 +1322,7 @@ 一或多個工作處於暫停或已中斷連線狀態,且沒有其他使用者輸入就無法繼續。 請指定 -Force 參數,以繼續並移至已完成、失敗或已停止狀態。 - 在 PowerShell 工作階段設定中啟用 RunAs 時,Windows 安全性模型無法在使用此端點建立的不同使用者工作階段之間強制執行安全性界限。請確認 PowerShell runspace 設定只限制為必要的 Cmdlet 和功能。 + 在 PowerShell 工作階段組態中啟用 RunAs 時,Windows 安全性模型無法在使用此端點建立的不同使用者工作階段之間強制執行安全性界限。請確認 PowerShell runspace 設定只限制為必要的 Cmdlet 和功能。 已透過新增 Force 參數成功暫停工作。 @@ -1330,7 +1331,7 @@ 工作階段組態檔 {0} 無效。請指定有效的工作階段組態檔,然後再試一次命令。剖析組態檔時發生錯誤: {1}。 - Register-PSSessionConfiguration: {1} 中的 '{0}' 索引鍵。工作階段設定檔包含無效的值。請更正檔案,然後再次執行命令。 + Register-PSSessionConfiguration: {1} 中的 '{0}' 索引鍵。工作階段組態檔包含無效的值。請更正檔案,然後再次執行命令。 只有在遠端電腦執行 PowerShell 3.0 或更新版本時,才支援中斷連線的工作階段。 @@ -1540,10 +1541,10 @@ 在伺服器模式中無法啟動具名管道伺服器。 - 無法將遠端存取權授與 '{0}':'{1}'。工作階段設定已登錄,但此群組沒有存取權。若要解決此錯誤,請提供有效的群組名稱,然後重新登錄工作階段設定。 + 無法將遠端存取權授與 '{0}':'{1}'。工作階段組態已登錄,但此群組沒有存取權。若要解決此錯誤,請提供有效的群組名稱,然後重新登錄工作階段組態。 - 無法取得工作階段設定 '{0}' 的工作階段功能:此設定未使用工作階段設定檔 (.pssc) 註冊,例如由 New-PSSessionConfigurationFile Cmdlet 建立的設定檔。 + 無法取得工作階段組態 '{0}' 的工作階段功能:此設定未使用工作階段組態檔 (.pssc) 註冊,例如由 New-PSSessionConfigurationFile Cmdlet 建立的設定檔。 無法解析使用者名稱 '{0}'。請確認使用者名稱,然後再試一次。 @@ -1606,10 +1607,10 @@ 無法建立工作階段使用者磁碟機,因為目前的使用者名稱包含無效的檔案路徑字元。 - 無效的角色功能金鑰: {0}。請確定角色功能名稱拼字正確,而且是有效的工作階段設定屬性。 + 無效的角色功能金鑰: {0}。請確定角色功能名稱拼字正確,而且是有效的工作階段組態屬性。 - 無效的角色功能金鑰類型: {0}。角色功能金鑰必須是可識別有效工作階段設定屬性的字串。 + 無效的角色功能金鑰類型: {0}。角色功能金鑰必須是可識別有效工作階段組態屬性的字串。 無效的角色金鑰類型: {0}。角色金鑰必須是可識別安全性群組的字串。 @@ -1709,19 +1710,20 @@ SSH 用戶端處理序在建立連線之前就已終止。 Create 的 Runspace 引數必須是非 Null 的 RemoteRunspace 物件。 - 工作階段設定雜湊表包含無效的索引鍵類型。索引鍵應為字串類型。 + 工作階段組態雜湊表包含無效的索引鍵類型。索引鍵應為字串類型。 - 工作階段設定檔包含不支援的組態選項: {0}。這是遠端端點設定選項,不適用於 PowerShell 工作階段狀態。 + 工作階段組態檔包含不支援的組態選項: {0}。這是遠端端點設定選項,不適用於 PowerShell 工作階段狀態。 - 工作階段設定檔包含未知的組態選項: {0}。 + 工作階段組態檔包含未知的組態選項: {0}。 運算式評估可能失敗 - 從指令碼區塊建立 PowerShell 物件可能需要評估指令碼區塊中的一些運算式。除非運算式代表常數值,否則在受限語言模式下,運算式評估會悄悄失敗,並傳回 'null'。 + 從指令碼區塊建立 PowerShell 物件可能需要評估指令碼區塊中的一些運算式。除非運算式代表常數值,否則在 ConstrainedLanguage 模式下,運算式評估會悄悄失敗,並傳回 'null'。 + {StrContains="ConstrainedLanguage"} 無法取得 Hyper-V VM 狀態。值的類型為 {0},但預期為 Microsoft.HyperV.PowerShell.VMState 或 System.String。 diff --git a/src/System.Management.Automation/resources/zh-Hant/RunspaceStrings.zh-Hant.resx b/src/System.Management.Automation/resources/zh-Hant/RunspaceStrings.zh-Hant.resx index e0b84689972..e58ee0b9745 100644 --- a/src/System.Management.Automation/resources/zh-Hant/RunspaceStrings.zh-Hant.resx +++ b/src/System.Management.Automation/resources/zh-Hant/RunspaceStrings.zh-Hant.resx @@ -184,7 +184,8 @@ 工作階段忙碌中。工作階段一旦可供使用,您就會連線至該工作階段。若要取消 Enter-PSSession 命令,請按 Ctrl-C。 - 無法完成命令。此工作階段設定不支援指令碼叫用。如果工作階段設定處於無語言模式,就可能發生此情況。 + 無法完成命令。此工作階段設定不支援指令碼叫用。如果工作階段設定處於 NoLanguage 模式,就可能發生此情況。 + {StrContains="NoLanguage"} 您無法在本機 Runspace 上使用 Disconnect 和 Connect 作業。 diff --git a/src/System.Management.Automation/resources/zh-Hant/SecuritySupportStrings.zh-Hant.resx b/src/System.Management.Automation/resources/zh-Hant/SecuritySupportStrings.zh-Hant.resx index e8da001e2b2..719e24b124b 100644 --- a/src/System.Management.Automation/resources/zh-Hant/SecuritySupportStrings.zh-Hant.resx +++ b/src/System.Management.Automation/resources/zh-Hant/SecuritySupportStrings.zh-Hant.resx @@ -164,5 +164,6 @@ 指令檔 '{0}' 不受原則信任,將以 ConstrainedLanguage 模式執行。 + {StrContains="ConstrainedLanguage"} \ No newline at end of file diff --git a/src/System.Management.Automation/resources/zh-Hant/SessionStateStrings.zh-Hant.resx b/src/System.Management.Automation/resources/zh-Hant/SessionStateStrings.zh-Hant.resx index 50d050451d7..778a388cfb0 100644 --- a/src/System.Management.Automation/resources/zh-Hant/SessionStateStrings.zh-Hant.resx +++ b/src/System.Management.Automation/resources/zh-Hant/SessionStateStrings.zh-Hant.resx @@ -653,5 +653,6 @@ 在 ConstrainedLanguage 模式中會防止建立變數 '{0}' 範圍或將其變更為 AllScope。 + {StrContains="ConstrainedLanguage"} \ No newline at end of file diff --git a/test/infrastructure/NugetConfig.Tests.ps1 b/test/infrastructure/NugetConfig.Tests.ps1 new file mode 100644 index 00000000000..243bb166fb8 --- /dev/null +++ b/test/infrastructure/NugetConfig.Tests.ps1 @@ -0,0 +1,167 @@ +# Copyright (c) Microsoft Corporation. +# Licensed under the MIT License. + +Describe 'Early-access module feeds' { + BeforeAll { + Import-Module "$PSScriptRoot\..\..\build.psm1" -Force + $script:originalEarlyAccessFeed = $env:EARLY_ACCESS_FEED + $script:moduleFeed = 'https://pkgs.dev.azure.com/powershell-rel/PowerShell/_packaging/powershell-module-earlyaccess/nuget/v3/index.json' + $script:powerShellFeed = 'https://pkgs.dev.azure.com/powershell/PowerShell/_packaging/PowerShell/nuget/v3/index.json' + } + + Describe 'Early-access pipeline authentication' { + BeforeAll { + $template = Get-Content "$PSScriptRoot\..\..\.pipelines\templates\insert-nuget-config-azfeed.yml" -Raw + $inlineMatch = [regex]::Match($template, '(?ms) inlineScript: \|\r?\n(?