Skip to content

Commit 7190650

Browse files
authored
Fix overlocalization of language elements (#9209)
1 parent da5047d commit 7190650

File tree

16 files changed

+348
-340
lines changed

16 files changed

+348
-340
lines changed

reference/5.1/Microsoft.PowerShell.Core/About/about_Language_Modes.md

Lines changed: 55 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
description: Explains language modes and their effect on PowerShell sessions.
33
Locale: en-US
44
ms.date: 08/03/2021
5+
no-loc: [FullLanguage, ConstrainedLanguage, RestrictedLanguage, NoLanguage]
56
online version: https://docs.microsoft.com/powershell/module/microsoft.powershell.core/about/about_language_modes?view=powershell-5.1&WT.mc_id=ps-gethelp
67
schema: 2.0.0
78
title: about Language Modes
@@ -23,7 +24,7 @@ PowerShell supports the following language modes:
2324
- **RestrictedLanguage**
2425
- **NoLanguage**
2526

26-
### WHAT IS A LANGUAGE MODE?
27+
### What is a language mode?
2728

2829
The language mode determines the language elements that are permitted in the
2930
session.
@@ -44,13 +45,13 @@ language mode of the session. To specify the session configuration of a
4445
PSSession, use the ConfigurationName parameter of cmdlets that create a
4546
session.
4647

47-
### LANGUAGE MODES
48+
### Language modes
4849

4950
This section describes the language modes in PowerShell sessions.
5051

51-
#### FULL LANGUAGE (FullLanguage)
52+
#### Full language (FullLanguage)
5253

53-
The FullLanguage mode permits all language elements in the session.
54+
The **FullLanguage** mode permits all language elements in the session.
5455
FullLanguage is the default language mode for default sessions on all versions
5556
of Windows except for Windows RT.
5657

@@ -79,7 +80,7 @@ permitted.
7980

8081
#### No language (NoLanguage)
8182

82-
NoLanguage mode can only be used through the API. NoLanguage mode means no
83+
**NoLanguage** mode can only be used through the API. NoLanguage mode means no
8384
script text of any form is permitted. This precludes the use of the
8485
**AddScript()** method which sends fragments of PowerShell script to be parsed
8586
and executed. You can only use **AddCommand()** and **AddParameter()** which
@@ -139,58 +140,58 @@ The features of **ConstrainedLanguage** mode are as follows:
139140
- **Scripting.FileSystemObject**
140141
- **VBScript.RegExp**
141142

142-
The following types are permitted in ConstrainedLanguage mode. Users
143+
The following types are permitted in **ConstrainedLanguage** mode. Users
143144
can get properties, invoke methods, and convert objects to these types.
144145

145146
Allowed Types:
146147

147-
- AliasAttribute
148-
- AllowEmptyCollectionAttribute
149-
- AllowEmptyStringAttribute
150-
- AllowNullAttribute
151-
- Array
152-
- Bool
153-
- byte
154-
- char
155-
- CmdletBindingAttribute
156-
- DateTime
157-
- decimal
158-
- DirectoryEntry
159-
- DirectorySearcher
160-
- double
161-
- float
162-
- Guid
163-
- Hashtable
164-
- int
165-
- Int16
166-
- long
167-
- ManagementClass
168-
- ManagementObject
169-
- ManagementObjectSearcher
170-
- NullString
171-
- OutputTypeAttribute
172-
- ParameterAttribute
173-
- PSCredential
174-
- PSDefaultValueAttribute
175-
- PSListModifier
176-
- PSObject
177-
- PSPrimitiveDictionary
178-
- PSReference
179-
- PSTypeNameAttribute
180-
- Regex
181-
- SByte
182-
- string
183-
- SupportsWildcardsAttribute
184-
- SwitchParameter
185-
- System.Globalization.CultureInfo
186-
- System.Net.IPAddress
187-
- System.Net.Mail.MailAddress
188-
- System.Numerics.BigInteger
189-
- System.Security.SecureString
190-
- TimeSpan
191-
- UInt16
192-
- UInt32
193-
- UInt64
148+
- `[AliasAttribute]`
149+
- `[AllowEmptyCollectionAttribute]`
150+
- `[AllowEmptyStringAttribute]`
151+
- `[AllowNullAttribute]`
152+
- `[Array]`
153+
- `[Bool]`
154+
- `[byte]`
155+
- `[char]`
156+
- `[CmdletBindingAttribute]`
157+
- `[DateTime]`
158+
- `[decimal]`
159+
- `[DirectoryEntry]`
160+
- `[DirectorySearcher]`
161+
- `[double]`
162+
- `[float]`
163+
- `[Guid]`
164+
- `[Hashtable]`
165+
- `[int]`
166+
- `[Int16]`
167+
- `[long]`
168+
- `[ManagementClass]`
169+
- `[ManagementObject]`
170+
- `[ManagementObjectSearcher]`
171+
- `[NullString]`
172+
- `[OutputTypeAttribute]`
173+
- `[ParameterAttribute]`
174+
- `[PSCredential]`
175+
- `[PSDefaultValueAttribute]`
176+
- `[PSListModifier]`
177+
- `[PSObject]`
178+
- `[PSPrimitiveDictionary]`
179+
- `[PSReference]`
180+
- `[PSTypeNameAttribute]`
181+
- `[Regex]`
182+
- `[SByte]`
183+
- `[String]`
184+
- `[SupportsWildcardsAttribute]`
185+
- `[SwitchParameter]`
186+
- `[System.Globalization.CultureInfo]`
187+
- `[System.Net.IPAddress]`
188+
- `[System.Net.Mail.MailAddress]`
189+
- `[System.Numerics.BigInteger]`
190+
- `[System.Security.SecureString]`
191+
- `[TimeSpan]`
192+
- `[UInt16]`
193+
- `[UInt32]`
194+
- `[UInt64]`
194195

195196
### Finding the language mode of a session configuration
196197

@@ -204,7 +205,7 @@ FullLanguage
204205
```
205206

206207
On other session configurations, you can find the language mode indirectly by
207-
finding the language mode of a session that is created by using the session
208+
finding the language mode of a session that is created using the session
208209
configuration.
209210

210211
### Finding the language mode of a session

reference/5.1/Microsoft.PowerShell.Core/About/about_Line_Editing.md

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
description: Describes how to edit commands at the PowerShell command prompt.
33
Locale: en-US
4-
ms.date: 07/10/2019
4+
ms.date: 09/12/2022
55
online version: https://docs.microsoft.com/powershell/module/microsoft.powershell.core/about/about_line_editing?view=powershell-5.1&WT.mc_id=ps-gethelp
66
schema: 2.0.0
77
title: about Line Editing
@@ -27,16 +27,15 @@ continuation prompt. Press <kbd>Enter</kbd> to execute the command.
2727

2828
### Move left and right
2929

30-
To move the cursor one character to the left, press the <kbd>Left arrow</kbd>.
30+
To move the cursor one character to the left, press the <kbd>LeftArrow</kbd>.
3131

32-
To move the cursor one word to the left, press <kbd>Ctrl</kbd>+<kbd>Left
33-
arrow</kbd>.
32+
To move the cursor one word to the left, press
33+
<kbd>Ctrl</kbd>+<kbd>LeftArrow</kbd>.
3434

35-
To move the cursor one character to the right, press the <kbd>Right
36-
arrow</kbd>.
35+
To move the cursor one character to the right, press the <kbd>RightArrow</kbd>.
3736

38-
To move the cursor one word to the right, press <kbd>Ctrl</kbd>+<kbd>Right
39-
arrow</kbd>.
37+
To move the cursor one word to the right, press
38+
<kbd>Ctrl</kbd>+<kbd>RightArrow</kbd>.
4039

4140
### Move to a line's beginning or end
4241

reference/5.1/Microsoft.PowerShell.Core/About/about_Numeric_Literals.md

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
---
22
description: Both integer and real numeric literals can have type and multiplier suffixes.
33
Locale: en-US
4-
ms.date: 11/15/2021
4+
ms.date: 09/12/2022
5+
no-loc: [482gb]
56
online version: https://docs.microsoft.com/powershell/module/microsoft.powershell.core/about/about_numeric_literals?view=powershell-5.1&WT.mc_id=ps-gethelp
67
schema: 2.0.0
78
title: about Numeric Literals
@@ -20,12 +21,12 @@ Integer literals can have a type suffix and a multiplier suffix.
2021

2122
| Suffix | Meaning |
2223
| ------ | ------------------- |
23-
| l | long data type |
24-
| kb | kilobyte multiplier |
25-
| mb | megabyte multiplier |
26-
| gb | gigabyte multiplier |
27-
| tb | terabyte multiplier |
28-
| pb | petabyte multiplier |
24+
| `l` | long data type |
25+
| `kb` | kilobyte multiplier |
26+
| `mb` | megabyte multiplier |
27+
| `gb` | gigabyte multiplier |
28+
| `tb` | terabyte multiplier |
29+
| `Pb` | petabyte multiplier |
2930

3031
The type of an integer literal is determined by its value, the type suffix, and
3132
the numeric multiplier suffix.
@@ -62,12 +63,12 @@ Real literals can have a type suffix and a multiplier suffix.
6263

6364
| Suffix | Meaning |
6465
| ------ | ------------------- |
65-
| d | decimal data type |
66-
| kb | kilobyte multiplier |
67-
| mb | megabyte multiplier |
68-
| gb | gigabyte multiplier |
69-
| tb | terabyte multiplier |
70-
| pb | petabyte multiplier |
66+
| `d` | decimal data type |
67+
| `kb` | kilobyte multiplier |
68+
| `mb` | megabyte multiplier |
69+
| `gb` | gigabyte multiplier |
70+
| `tb` | terabyte multiplier |
71+
| `pb` | petabyte multiplier |
7172

7273
There are two kinds of real literal: double and decimal. These are indicated by
7374
the absence or presence, respectively, of decimal-type suffix. PowerShell does

reference/5.1/Microsoft.PowerShell.Core/About/about_Output_Streams.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
---
22
description: Explains the availability and purpose of output streams in PowerShell.
33
Locale: en-US
4-
ms.date: 12/13/2021
4+
ms.date: 09/12/2022
5+
no-loc: [Success, Error, Warning, Verbose, Debug, Information, Progress]
56
online version: https://docs.microsoft.com/powershell/module/microsoft.powershell.core/about/about_output_streams?view=powershell-5.1&WT.mc_id=ps-gethelp
67
schema: 2.0.0
78
title: about Output Streams

0 commit comments

Comments
 (0)