Skip to content

Commit 2f63abb

Browse files
authored
add language slugs (#11227)
1 parent b1b2a02 commit 2f63abb

File tree

5 files changed

+19
-60
lines changed

5 files changed

+19
-60
lines changed

xml/System.Globalization/CultureInfo.xml

+5-7
Original file line numberDiff line numberDiff line change
@@ -1279,21 +1279,19 @@ You might choose to override some of the values associated with the current cult
12791279
<format type="text/markdown"><![CDATA[
12801280
12811281
## Remarks
1282-
In the .NET Framework 4 and previous versions, by default, the UI culture of all threads is set to the Windows system culture. For applications whose current UI culture differs from the default system culture, this behavior is often undesirable. In the .NET Framework 4.5, the <xref:System.Globalization.CultureInfo.DefaultThreadCurrentUICulture%2A> property lets you define the default UI culture of all threads in an application domain.
1282+
In the .NET Framework 4 and previous versions, by default, the UI culture of all threads is set to the Windows system culture. For applications whose current UI culture differs from the default system culture, this behavior is often undesirable. In .NET Framework 4.5+, the <xref:System.Globalization.CultureInfo.DefaultThreadCurrentUICulture%2A> property lets you define the default UI culture of all threads in an application domain.
12831283
12841284
> [!IMPORTANT]
12851285
> If you have not explicitly set the UI culture of any existing threads executing in an application domain, setting the <xref:System.Globalization.CultureInfo.DefaultThreadCurrentUICulture%2A> property also changes the culture of these threads. However, if these threads execute in another application domain, their culture is defined by the <xref:System.Globalization.CultureInfo.DefaultThreadCurrentUICulture%2A> property in that application domain or, if no default value is defined, by the default system culture. Because of this, we recommend that you always explicitly set the culture of your main application thread and do not rely on the <xref:System.Globalization.CultureInfo.DefaultThreadCurrentUICulture%2A> property to define the culture of the main application thread.
12861286
12871287
Unless it is set explicitly, the value of the <xref:System.Globalization.CultureInfo.DefaultThreadCurrentUICulture%2A> property is `null`, and the current culture of all threads in an application domain that have not been assigned an explicit culture is defined by the default Windows system culture.
12881288
1289-
For more information about cultures, threads, and application domains, see the "Culture and threads" and "Culture and application domains" sections in the <xref:System.Globalization.CultureInfo> reference page.
1290-
1291-
1289+
For more information about cultures, threads, and application domains, see the "Culture and threads" and "Culture and application domains" sections of <xref:System.Globalization.CultureInfo>.
12921290
12931291
## Examples
1294-
The following example illustrates the default behavior of the .NET Framework in defining the current culture of a new thread. It uses English and Russian language resources. The following text file named GreetingStrings.txt contains the English language resources:
1292+
The following example illustrates the default behavior of .NET in defining the current culture of a new thread. It uses English and Russian language resources. The following text file named GreetingStrings.txt contains the English language resources:
12951293
1296-
```
1294+
```txt
12971295
greeting =Hello again!
12981296
newGreeting=Hello!
12991297
```
@@ -1306,7 +1304,7 @@ resgen greetingstrings.txt
13061304
13071305
The following text file named GreetingStrings.ru-RU.txt contains the Russian language resources:
13081306
1309-
```
1307+
```txt
13101308
greeting=Еще раз привет!
13111309
newGreeting=Привет!
13121310
```

xml/System.IO.MemoryMappedFiles/MemoryMappedFile.xml

+12-23
Original file line numberDiff line numberDiff line change
@@ -896,38 +896,27 @@
896896
## Remarks
897897
Use this method to create a memory-mapped file that is not persisted (that is, not associated with a file on disk), which you can use to share data between processes.
898898
899-
900-
901899
## Examples
902900
The following example is composed of three separate processes (console applications) that write `Boolean` values to a memory-mapped file. The following sequence of actions occur:
903901
904-
1. Process A creates the memory-mapped file and writes a value to it.
905-
906-
2. Process B opens the memory-mapped file and writes a value to it.
907-
908-
3. Process C opens the memory-mapped file and writes a value to it.
909-
910-
4. Process A reads and displays the values from the memory-mapped file.
911-
912-
5. After Process A is finished with the memory-mapped file, the file is immediately reclaimed by garbage collection.
902+
1. Process A creates the memory-mapped file and writes a value to it.
903+
2. Process B opens the memory-mapped file and writes a value to it.
904+
3. Process C opens the memory-mapped file and writes a value to it.
905+
4. Process A reads and displays the values from the memory-mapped file.
906+
5. After Process A is finished with the memory-mapped file, the file is immediately reclaimed by garbage collection.
913907
914908
To run this example, do the following:
915909
916-
1. Compile the applications and open three Command windows.
917-
918-
2. In the first Command window, run Process A.
919-
920-
3. In the second Command window, run Process B.
921-
922-
4. Return to Process A and press ENTER.
923-
924-
5. In the third Command window, run Process C.
925-
926-
6. Return to Process A and press ENTER.
910+
1. Compile the applications and open three Command windows.
911+
2. In the first Command window, run Process A.
912+
3. In the second Command window, run Process B.
913+
4. Return to Process A and press ENTER.
914+
5. In the third Command window, run Process C.
915+
6. Return to Process A and press ENTER.
927916
928917
The output of Process A is as follows:
929918
930-
```
919+
```txt
931920
Start Process B and press ENTER to continue.
932921
Start Process C and press ENTER to continue.
933922
Process A says: True

xml/System.IO/BufferedStream.xml

-28
Original file line numberDiff line numberDiff line change
@@ -743,34 +743,6 @@ Flushing the stream will not flush its underlying encoder unless you explicitly
743743
744744
Attempting to manipulate a stream after it has been closed might throw an <xref:System.ObjectDisposedException>.
745745
746-
## Examples
747-
This code example is part of a larger example provided for the <xref:System.IO.BufferedStream> class.
748-
749-
```vb
750-
' When bufStream is closed, netStream is in turn
751-
' closed, which in turn shuts down the connection
752-
' and closes clientSocket.
753-
Console.WriteLine(vbCrLf & "Shutting down the connection.")
754-
bufStream.Close()
755-
```
756-
757-
```csharp
758-
// When bufStream is closed, netStream is in turn
759-
// closed, which in turn shuts down the connection
760-
// and closes clientSocket.
761-
Console.WriteLine("\nShutting down the connection.");
762-
bufStream.Close();
763-
```
764-
765-
```cpp
766-
// When bufStream is closed, netStream is in turn closed,
767-
// which in turn shuts down the connection and closes
768-
// clientSocket.
769-
Console::WriteLine( "\nShutting down connection." );
770-
bufStream->Close();
771-
772-
```
773-
774746
]]></format>
775747
</remarks>
776748
<exception cref="T:System.IO.IOException">An error occurred while trying to close the stream.</exception>

xml/System.IO/FileInfo.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@
129129
130130
This example produces output similar to the following.
131131
132-
```
132+
```txt
133133
Hello
134134
And
135135
Welcome

xml/System.IO/Path.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2209,7 +2209,7 @@ Console.WriteLine(result);
22092209
22102210
This example produces output similar to the following.
22112211
2212-
```
2212+
```txt
22132213
C:\Users\UserName\AppData\Local\Temp\
22142214
```
22152215

0 commit comments

Comments
 (0)